Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Heres the Java code for the two separate programs you described Program 1 Product of Odd Integers Ja... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Java How To Program Late Objects Version

Authors: Paul Deitel, Deitel & Associates

8th Edition

0136123716, 9780136123712

More Books

Students also viewed these Programming questions