Reference no: EM13164944
The local driver's license office has asked you to design a java program that grades the written portion of the driver's license exam. The exam has 20 multiple choice questions. Here are the correct answers, in order: B, D, A, A, C, A, B, A, C, D, B, C, D, A, D, C, C, B, D, A. Your program should store these correct answers in an array. (Store each question's correct answer in an element of a string array.) the program should ask the user to enter the student's answers for each of the 20 questions, which 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 answer 15 or more 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 showing the question numbers of the incorrectly answered questions. Use the arrays as we've discussed in class--DO NOT use any list class.
Three most primary forms of loops: the while loop, the do..
: explored the world of loops we have accepted the three most primary forms of loops: the while loop, the do...while loop (even though Python does not use this loop), and the for loop. The for loop has approximately three primary implementations that w..
|
How many wheels are left over
: A manufacturer of bicycles has 4819 wheels, 2305 frames, and 2250 handlebars. How many wheels are left over? How many frames are left over? How many handlebars are left over? Which part limits the production of bicycles?
|
Plan the testing required for the system
: Plan the testing required for the system. You should consider unit, integration, and system testing in your test plan and determine who should participate in the testing.
|
The mode of a list of values is the score
: For this project you will write a program to compute the arithmetic mean (average), median, and mode for the values read in from TopicFin.txt. The program results will be written to TopicFout.txt.
|
The program should ask the user to enter the student'' answer
: Your program should store these correct answers in an array. (Store each question's correct answer in an element of a string array.) the program should ask the user to enter the student's answers for each of the 20 questions, which should be stored i..
|
Calculate the percent yield if the actual yield
: Calculate the percent yield if the actual yield of aluminum oxide is 0.423mol.
|
What is the composition of vapor of a pentane-hexane
: what is the composition of vapor of a pentane-hexane solution that has a vapor pressure of 373 torr at 25 degree celcius? Given is Pure Hexanes and pentanes vapor pressure at 25 degrees celcius. Pentane - 511 torr. Hexane -150 torr.
|
Geographical reach-local-regional and global
: How would you describe the appropriate target market(s) for Banyan Tree? How wide is its geographical reach-local, regional, global?
|
Draw a rough sketch of the energy profile
: Draw a rough sketch of the energy profile for each of the following cases. a. E = +10 kJ/mol, Ea = 25 kJ/mol b. E = -10 kJ/mol, Ea = 50 kJ/mol c.
|