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

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)

    1. 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)
    2. read three integer scores (must call the method three times, once for each of the scores)
    3. calculate the total (value returning method)
    4. calculate average (value returning method)
    5. 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)
    6. 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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres the Java code for the two separate programs you described Program 1 Product of Odd Integers Ja... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!