Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

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

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

What main difficulty occurs with contiguous allocation?

Answered: 1 week ago

Question

2. Why has the conflict escalated?

Answered: 1 week ago

Question

1. What might have led to the misinformation?

Answered: 1 week ago