Unformatted text preview:

C Sc 127A Project 1: Four PrintoutsCollaboration is Solo This is a Programming Project, not a Lab. Complete this project by yourself with help from section leaders only. Do not work with anyone else, do not copy any code directly, do not copy code indirectly through reading, do not give your code to anyone. Begin early, preferably during this week's lab.GoalsUse Eclipse to write, compile, and run Java ApplicationsFix compile time errors as you typeBecome familiar with running programs with standard input and output.Solve problems that follow the Input, Process, Output (IPO) patternC Sc 127A Project 1: Four PrintoutsCollaboration is Solo This is a Programming Project, not a Lab. Complete this project by yourself with help from section leaders only. Do not work with anyone else, do not copy any code directly, do not copy code indi-rectly through reading, do not give your code to anyone. Begin early, preferably during this week's lab. Goals•Use Eclipse to write, compile, and run Java Applications •Fix compile time errors as you type•Become familiar with running programs with standard input and output.•Solve problems that follow the Input, Process, Output (IPO) patternThis project asks you to implement four programs as Java classes with a main method. Keep all four pro-grams in one Eclipse Java Project named something like FourPrintouts.1) Simple AverageImplement and test a Java program that finds the average of three tests of equal weight. One dialog must look like this (input shown here in Bold-Italic):Enter test 1: 90.0 Enter test 2: 80.0 Enter test 3: 70.0 Average = 80.0☞ After testing with at least three different test cases, print out this file 2) Course GradeImplement and test a Java program that determines a course grade using this weighted scale:Quiz average 20%Midterm 20%Lab grade 35%Final exam 25%One dialog must look like this (input shown here in BoldItalic): Enter Quiz Average: 90.0 Enter Midterm: 80.0 Enter Lab Grade: 100.0 Enter Final Exam: 70.0 Course Average = 86.5 ☞ After testing with at least three different test cases, print out this file3) GradePointAverage Write a Java program that compute a student’s cumulative grade point average (GPA) for three courses. Credits range from 0.5 to 15.0. Grades can be 0.0, 1.0, 2.0, 3.0, or 4.0. Test your program by running it with several different inputs where you know the expected results. Your dialog must look like this (input shown here in Bold-Italic):Credits for course 1: 2.0 Grade for course 1: 2.0Credits for course 2: 3.0 Grade for course 2: 4.0Credits for course 3: 3.0 Grade for course 3: 4.0GPA: 3.5☞ After testing with at least three different test cases, print out this file 4) MinimumCoinsWrite a Java program that prompts for an integer that represents the amount of change (in cents) to be handedback to a customer in the United States. Display the minimum number of half dollars, quarters, dimes, nick-els, and pennies that make the correct change. Hint: With increasingly longer expressions, you could use / and % to evaluate the amount of each coin. Or you could calculate the total number of coins with / and the remaining change with %. Verify that your program works correctly by running it with a variety of input. Your dialog must look like this (input shown here in Bold-Italic): Enter change [0..99]: 83 Half(ves) : 1 Quarter(s): 1 Dime(s): 0 Nickel(s): 1 Penny(ies): 3 ☞ After testing with at least three different test cases, print out this file Grading Criteria (subject to change)___/ 8 You turned in a printout for each of the four problems and each printout appears to compile and it is a worthy attempt to solve the problem (2 pts each)___/ 4 You have stapled or otherwise attached all three printouts together (-4 if not stapled)___/ 8 Each printout has your name in a comment at the top of the file (2pts each)___/ 8 Each file is formatted (use Ctrl+Shift+F or choose Source > Format) (2pts each)___/ 72 Each problem is correct (16 points correctness each, 2 pts for output matching


View Full Document

UA CSC 127A - Project 1: Four Printouts

Documents in this Course
Load more
Download Project 1: Four Printouts
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Project 1: Four Printouts and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Project 1: Four Printouts 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?