We Have Numbers Of Free Samples

For Each Subject To Make A Difference In Your Grade

 
 
 
 

Python, Design Documentation – Referral Assignment

Total 42 Views

Introduction-

User test application consists of the features which include certain main aspects which are a student can take test, then it’s result will be saved in the file, which can be viewed for later use and delete the previous test results if taken by student from the system.

Procedure

Before entering the for the test user is provided with the menu which contains of the following option, from which user can select one and can proceeded further. Here we will discuss on the implementation of all the steps and the checks which are kept in place to proceed for the smooth performance of the application.

  1. Start test
  2. View previous test results.
  3. Delete previous test results
  1. Start test-

The application consists of to collect the student information in the form of first and last name together with their date of birth. The date of birth is used to determine the users age to present, such that to provide the questions as per the certain criteria which are of at a sensible level.

Number of questions user wants to attend are collected for the user and condition has been provided that the entry is valid if it is multiple of four only then user will be allowed to proceed. Users complete a test which is contained requests which can be either addition, subtraction, multiplication or division. There are an equal number of each question type in a test.

A check has been implemented to certain this that whenever user enter the number of questions it wants to attend then the check executes that the number entered by the user is multiple of four or not, if it is the user gets proceeded with the test but if the entry made available by the user is not of multiple of four then the user is again asked to enter the correct value.

There are certain age criteria is provided as suggested in the application development which is

  • If the user is less than 10 years, the numbers used for the calculations will be between 1 and 10.
  • If user is between 11 and 15 years then the numbers used for the calculations will be between 1 and 50
  • If user is 16 years and over, then the numbers used for the calculations will be between 1 and 99

To determine age is checked correctly function is implemented at the time when user is asked to provide the date of birth user’s age is calculated at the same time so that user can be provided the questions which fall in its criteria.

The number in questions are randomly generated on the basis of the sequence above mentioned on the basis of age.

Consideration has also been made that if the answer can come as negative then question can be changed, in this way the question provided to the user will never hold any negative answer.

As suggested in the document, anytime if the user wants to cancel the test can do by simply entering –1. Then they will be asked to verify if they really want to exit the test. If they enter yes application will get terminated and whatever the test they have entered will not be reordered and they will exit from the test. If they enter no, test will continue as it is.

Once the user completes the test, its test record will be saved in a text file and name of the file will be in format of result_firstname_lastname_dob.txt.  So, every user who takes test will have their one individual file. If same user again takes the test then the test will be recorded in the previous file, no new file will be created.

Information in the file is stored is stored in the following format-

  • Date and time when the test was taken
  • First name and the surname of the user
  • Date of birth provided by the user
  • Total number of questions attended by the user
  • Correct number of answers for the questions related to addition
  • Correct number of answers for the questions related to subtraction
  • Correct number of answers for the questions related to multiplication
  • Correct number of answers for the questions related to division

Only those tests are recorded which are fully completed and not those which are terminated in between by the user.

  1. View previous test results-

All the previous tests results can be viewed by the user. To view same, user will be asked to provide the following information-

  • Firstname
  • Lastname
  • Date of birth

After the user provided the above information, a path is generated which gets submitted in the code from where if the file of the user is present the result will be presented in console.

Result displayed will have the following entries-

  • Date and time when the test was taken
  • First name and the surname of the user
  • Date of birth provided by the user
  • Total number of questions attended by the user
  • Correct number of answers for the questions related to addition
  • Correct number of answers for the questions related to subtraction
  • Correct number of answers for the questions related to multiplication
  • Correct number of answers for the questions related to division
  • Percentage of the total correct answers
  1. Delete previous test records-

To delete the user will be asked to provide the following parameters-

  • Firstname
  • Lastname
  • Date of birth

After the user provided the above information, a path is generated which gets submitted in the code from where if the file of the user is present the result will be obtained, user will be again asked to confirm if he wants to proceed with the record delete, if they enter yes record will be deleted and if no then the user will be redirected to the main menu again.

  1. Exit the application

If the user does not want to continue with the application and wants to exit it anytime then from the main menu, they can select the option then the application will get terminated successfully.

Class diagram

Activity diagram-

Use case diagram

BookMyEssay offers python assignment help for those students who are facing complication while completing their work within deadline. Seeking assistance for assignment writing by our renowned experts is one of the surest ways to secure high grades in exams.

Download

232

Size

140.91 KB

File Type


Cite This Work

Essay, Bookmy. (August 2018). Python, Design Documentation – Referral Assignment. Retrieved from https://www.samples.bookmyessay.com/python-design-documentation-referral-assignment/

"Python, Design Documentation – Referral Assignment." Bookmyessay.com. 11 2018. All Answers Ltd. 09 2019 < https://www.samples.bookmyessay.com/python-design-documentation-referral-assignment/ >.

Essays, BookMy. (November 2018). Python, Design Documentation – Referral Assignment. Retrieved from https://www.samples.bookmyessay.com/python-design-documentation-referral-assignment/

Bookmyessay. November 2018. Python, Design Documentation – Referral Assignment. [online]. Available from: https://www.samples.bookmyessay.com/python-design-documentation-referral-assignment/ [ Accessed Wednesday 3rd March 2021].

Essays, BookMy. (November 2018). Python, Design Documentation – Referral Assignment. Retrieved from https://www.samples.bookmyessay.com/python-design-documentation-referral-assignment/

Essays, Bookmy. (November 2018). Python, Design Documentation – Referral Assignment. Retrieved from https://www.samples.bookmyessay.com/python-design-documentation-referral-assignment/

All Answers ltd, 'Python, Design Documentation – Referral Assignment' (Bookmyessays.com, September 2019) https://www.samples.bookmyessay.com/python-design-documentation-referral-assignment/ accessed Wednesday 3rd March 2021

Get Guaranteed Higher Grades
Book Your Order