Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Fundamentals: 50 Points 1. Create a class file named: Starter Fundamentals.java. All work in this part will occur within the main of this file. 2.
Fundamentals: 50 Points 1. Create a class file named: Starter Fundamentals.java. All work in this part will occur within the "main" of this file. 2. (15 Points) While Loop Create a While loop that asks users to enter a name and a grade. Exit the loop when the user enters a negative value for the grade. Print out the name and the grade in every loop except in the last loop. 3. (10 Points) While Create a while loop that asks the user to input odd values (i.e., remainder of one when divided by two). Calculate the average of all odd values. When the user enters an even number stop asking the user for input, and print the average. Do not include the even number in the sum. 4.(15 Points) For Loop and If statement a. Create a for loop that will ask the user via Magic.nextInt() to input 7 values and store the average of those values. b. Create an if..else if..else statement to print out the letter grade based on the student's average. The grades below show where that letter grade's range starts 0 60 64 67 70 74 77 80 84 87 90 94 97 F D D D+ C- C C+ B- B B+ A- A A+ So, if a student got a 74, they'd get a C. However, if they got 73, then they'd have a C- c. If the student gets less than 0 then print out "error". d. If the student gets more than 100 then print out "Couldn't be better
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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