This assignment consists of writing two separate programs . Your first program is to calculate the product
Question:
This assignment consists of writing two separate programs.
Your first program is to calculate the product of odd integers. Write an application that calculates and outputs the product of odd integers from 1 to a user input odd number.
Your second program requires you to use static methods to accomplish each of the following for one or more students (use a while or do...while loop)
- read a user's first and last name (you must call this method twice. First for the first name, then a second time for the last name)
- read three integer scores (must call the method three times, once for each of the scores)
- calculate the total (value returning method)
- calculate average (value returning method)
- determine the letter grade based on the following criteria - Average 90-100 grade is A, 80-89.99 grade is B, 70-79.99 grade is C, all others F (use a nested if in a value returning method)
- output formatted results using printf method. Output must include the full name, the three scores, total, average (to 2 decimal places), and the letter grade (void method)
Go to step 1 if user wants to process another student's grades
You are required to use a static method for each of the steps 1-6 with the first two methods called several times .
Method main should have variable declarations and a while loop with calls to these methods. The first two methods will be called multiple times
This program DOES NOT involve creating a class which was covered in chapter 3.
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates