Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use C++ to complete this !!!!! Number of incorrect answers. A list that shows the question numbers of the incorrectly answered questions An Example

please use C++ to complete this !!!!!

image text in transcribed

image text in transcribed

Number of incorrect answers. A list that shows the question numbers of the incorrectly answered questions An Example of Test Run The output of your program might look like this: Project 6. Driver's License Due Date: 11:50 pm on March 5, Friday Objectives To provide students with the experience of using parallel arays, standard functions, reference parameters and value parameters to solve a problem designing and describing algorithms using structure chart. Problems The local Driver's License Office has asked you to write a program that grades the written portion of the driver's exam. The exam has 20 multiple choice questions. A data file contains the correct answers as follows: B D A A B >out Please enter the student's answers for each of the questions. Press Enter after typing each answer. Please enter only an A, B, C, or D for each question. Question 1: B Question 2: D Question 3: A Question 4: A Question 5: X Question 6: B Question 7: 8 Question B: Question 9: C Question 10: D Question 11: B Question 12: B Question 13: D Question 14: A Question 15: D Question 16: D Question 17: A Question 18: B Question 19: D Question 20: A C D B D D Student passed the exam D A Your program should read above correct answers from the file to an array. It should ask the user to enter the student's answers for each of the 20 questions, and the answers should be stored in another array. After the student's answers have been entered the program should display a message indicating whether the student passed or failed the exam. (A student must correctly angwer 15 of the 20 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list of showing the question numbers of the incorrectly answered questions. Correct answers = 15 Incorrect answers = 5 The list below shows the question numbers of the incorrectly answered questions 5 6 12 16 17 Irwut Validation only accept the letters of 4, BC or Das answers. Input Answers of 20 questions Output A message to indicate if the student has passed the exam. Number of correct answers. Requirements 1. Design your algorithm first using a structure chart. Follow Lab 5, 6 and 7 to draw your structure chart . 2. Write the program according to the structure chart in step 1. It should include main function and other functions. 3. Insert comments in the program so that it can be read easily. Don't forget to include your name, your startID section number, file location and a description of the purpose of this program on the top of your program 4. For each function defined for this program, write necessary documentation. You should also include comments about all parameters using pre- and post-conditions. 5. Pre-condition: the conditions that must exist at the beginning of a function Post-condition: the conditions at the end of a function. Here is an example: /** Calculate the total fees for the year. * Pre: The number of credits to be taken each term: fixatieza ascenderm and thirdTerm Post: Returns the annual fees */ int salculatelse (int inatten, int aesondTsum is thirdies) { in fee = texmiss (FirstTeam + termss (assendIsus) + termes (thirdTeem); sua fee: } // end calculatelse 6. Before you test the program, design test data for all possible cases. Explain why you choose these data

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions

Question

2. How were various roles filled?

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago