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)
- 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.
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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started