Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me with a java code for this Write a program that asks the user for a percentage score value ( XX ) and

please help me with a java code for this
Write a program that asks the user for a percentage score value (XX) and
converts it to a char grade (X):
A for 90 or above
B for 80-<90
C for 70-<80
D for 60-<70
F for less than 60
The program should print on the screen the following:
A score of XX is equal to a grade of X.
Then the program should print:
o "You did excellent!" for A
o "You did good!" for B
o "You did average." for C
o "At least you are done." for D
o "You can do better." for F
Be sure to test your program with several numbers. Here is one sample
interaction with a user:
What was the score: 75
A score of 75 is equal to a grade of C.
You did average.
What to submit:
1. DONT FORGET TO COMMENT YOUR CODE and FOLLOW CODING
STYLES (5%).
- Minimum comments: your name and a simple description of your
program
- Coding style: properly apply indentations, blank lines, etc. to make
your code readable
2. Screen shots to show how well your program works (10%)
3. A README text file documenting (5%):
- how well you have completed the requirements: what requirements
are fully completed, what are partially completed and what are not
done at all
- where you got help or who you got help from
- What the hard parts were, and what you learned from, etc.
4. Source code .java file (80%)

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

More Books

Students also viewed these Databases questions