value and printed as an integer, as shown. The grade boundaries are: 70+ A. 60+ B, 50+ C, 40+ D, and otherwise F. Your program may use the in-built Java method for rounding a floating point value to...


Keeping in mind, only procedural programming should be done and not OBject-oriented programming.


value and printed as an integer, as shown. The grade boundaries are: 70+ A.<br>60+ B, 50+ C, 40+ D, and otherwise F.<br>Your program may use the in-built Java method for rounding a floating point<br>value to the nearest integer: Math.round (someFloatOrDouble). N.B. this method<br>returns a double.<br>ECŞ401U & ECS401A (2022)<br>Page 11<br>Your program must:<br>• use at least one counter-controlled for-loop.<br>• be a procedural program. (Not an object-oriented program.)<br>• not use global variables. All variables should be declared as locally as<br>possible.<br>• You may assume that the user inputs integer values (and this is all you may<br>assume).<br>To gain a pass mark, your program must include meaningful use of an if-<br>statement and a loop.<br>For a high mark, your program must be functionally and clearly correct, and<br>make good use of methods that take arguments and/or return results. It should<br>have good style generally.<br>For a very high mark, your program must be elegantly written with outstanding<br>style, including good method decomposition.<br>JAN<br>MacBook Pro<br>

Extracted text: value and printed as an integer, as shown. The grade boundaries are: 70+ A. 60+ B, 50+ C, 40+ D, and otherwise F. Your program may use the in-built Java method for rounding a floating point value to the nearest integer: Math.round (someFloatOrDouble). N.B. this method returns a double. ECŞ401U & ECS401A (2022) Page 11 Your program must: • use at least one counter-controlled for-loop. • be a procedural program. (Not an object-oriented program.) • not use global variables. All variables should be declared as locally as possible. • You may assume that the user inputs integer values (and this is all you may assume). To gain a pass mark, your program must include meaningful use of an if- statement and a loop. For a high mark, your program must be functionally and clearly correct, and make good use of methods that take arguments and/or return results. It should have good style generally. For a very high mark, your program must be elegantly written with outstanding style, including good method decomposition. JAN MacBook Pro
10 / 29<br>75%<br>Write a FULL Java procedural program (not JHUB) to test a school student on<br>multiplication tables and print their results. It tests a series of x * y questions<br>where x ranges from x_start...x_end as specified by the user, and y from 1...12<br>(both inclusive).<br>Below are some examples of the required program behaviour: (bold is keyboard<br>input by the student).<br>Enter x start (start>0): 3<br>Enter x end (end>=start): 3<br>What is 3 * 1? 3<br>Correct.<br>What is 3 * 2? 8<br>Incorrect.<br>...<br>What is 3 * 12? 36<br>Correct.<br>You scored 7/12 (58%) C grade.<br>Here is another example run<br>Enter x start (x>0): 5<br>Enter x end (x>=start): 6<br>What is 5 * 1? 5<br>Correct.<br>...<br>What is 5 * 12? 60<br>Correct.<br>What is 6 * 1? 6<br>Correct.<br>...<br>What is 6 * 12? 72<br>Correct.<br>You scored 23/24 (96%) A grade.<br>The final figures and grades are just for illustration. The

Extracted text: 10 / 29 75% Write a FULL Java procedural program (not JHUB) to test a school student on multiplication tables and print their results. It tests a series of x * y questions where x ranges from x_start...x_end as specified by the user, and y from 1...12 (both inclusive). Below are some examples of the required program behaviour: (bold is keyboard input by the student). Enter x start (start>0): 3 Enter x end (end>=start): 3 What is 3 * 1? 3 Correct. What is 3 * 2? 8 Incorrect. ... What is 3 * 12? 36 Correct. You scored 7/12 (58%) C grade. Here is another example run Enter x start (x>0): 5 Enter x end (x>=start): 6 What is 5 * 1? 5 Correct. ... What is 5 * 12? 60 Correct. What is 6 * 1? 6 Correct. ... What is 6 * 12? 72 Correct. You scored 23/24 (96%) A grade. The final figures and grades are just for illustration. The "..." represents lines omitted here due to space limitations. The program starts by asking the student for start and end values of x. The test proceeds by asking the student to enter the answers for each multiplication in the given ranges in order. x_start * 1, ..., x_start * 12, x_end * 1, x_end * 12 one by one. The program states whether the answer is correct or incorrect after each question. Finally, it prints a summary as illustrated above, stating how many the student answered correctly, the percentage correct and the corresponding grade. The percentage should be rounded to the nearest integer value and printed as an integer, as shown. The grade boundaries are: 70+ A, 60+ B, 50+ C, 40+ D, and otherwise F. Your program may use the in-built Java method for rounding a floating point value to the nearest integer: Math.round (someFloatOrDouble). N.B. this method returns a double.
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here