Your cart is currently empty!
Outcomes: Write programs that obtain user input Write programs that compute mathematical results Write programs that display numbers formatted according to a given specification Format and comment source code that adheres to a given set of formatting guidelines Use a zip compression tool to combine multiple files Scoring: At a bare minimum, the program…
Outcomes:
Scoring:
At a bare minimum, the program you submit must have the assigned source code, and your source code must compile and run without crashing.
Full credit | No credit or Partial credit | |
Write solutions to the three given problems (15 points) | The programs you submitted solved the specified problems. | The programs you submitted do not solve or only partially solve the specified problems. |
List test cases for the VanCalculator problem (5 points) | You thoroughly tested your VanCalculator code, listing the test cases that do and do not work. | You did not list test cases, or missed important test cases. |
Format output as specified (5 points) | Your output is formatted as specified, including proper spacing, spelling, rounding values to the specified number of places, and so on. | You did not follow some or all of the requirements for output. |
Requirements: You will write three separate Java programs
Note that Scanner objects are good at parsing numbers as shown above. The user could type all 4 values on separate lines, or type them separated with one or more spaces (but not commas), and the Scanner will handle them correctly. You do not need to do anything special to try to “break apart” the two numbers with spaces between them. The Scanner will handle them well. Just call the nextDouble() method two times in a row, and the Scanner will grab each number separately, ignoring the spaces.
There are a variety of ways to solve this problem. Your goal is to find a solution that only involves simple arithmetic (the symbols + – * / %). In order to earn full credit, you should have a solution that does NOT use:
If you write a correct solution but it uses one or more of the ideas from this list, you will only earn partial credit for your solution.
If your program mostly gives correct answers, and you note that in your comments when you do your testing, you can earn 4 out of the 5 points for this problem.
Note that this part of the assignment is worth 5 points. You can get full credit for this, even if your VanCalculator class does not always produce the correct answer.
Note: If you submit your work and decide to modify one of your programs, you need to resubmit a new zip file containing all three source code files (even if you only modified one of them). Do not rename your source code files. Do not rename the zip file. Canvas may add a number to the name of your zip file. That is fine. But you should keep all filenames the same.