Chapter 3: Grade Stars | |
Instructions | |
This is a simple program to write from scratch. Your professor is somewhat forgetful, and cannot always remember how many gold stars to assign for each letter grade, so could use a command-line app to help remember. Here are the requirements: Use the Scanner class for input and println for output. Prompt for the letter grade. Output: “A grade of ‘<input letter grade>’ gets <number of stars> star[s]” (note the single quote characters around the grade!) Use this grade-to-stars assignment: A : 5, B : 3, C : 1, D, E, F get zero stars. If it’s a ‘C’ then it should say “1 star”, not “1 stars” but everything else should say “stars” The input grade can be upper or lower case, but should be treated the same, and output is upper case. Any input other than A-F (a-f) should get a message saying it’s not a valid grade. Use a switch/case statement in the solution. How to Submit Your Work Use GradeStarsXY as the class and corresponding .java file name. Compile and test. When you are satisfied it meets all requirements, submit to this Dropbox. |
[Button id=”1″]
If you are seeking for fast and reliable essay help, you got on the right page. You can order essays, discussion, article critique, coursework, projects, case study, term papers, research papers, reaction paper, movie review, research proposal, capstone project, speech/presentation, book report/review, annotated bibliography, and more. From now on, you can stop worry and forget about writing assignments: your college papers are safe with our expert writers
WE WRITE ESSAYS FOR STUDENTS
Tell us about your assignment and we will find the best writer for your project
Write My Essay For Me