Checkout
checkout
view
Your Cart Your Cart: item(s)

Main Method


Main Method

If the user enters 'numbers':
Get input for the grade number in decimal format. i.e. 74.22645 (enter it with 5 decimal places)
Utilize the Math class and round the number to zero decimal places, then use the int cast method  to convert to an integer.
Utilize a switch statement to determine the corresponding letter grade.
Output the corresponding letter grade along with the initial number entered in decimal format utilizing the printf method and format specifiers. Output the number in only 3 decimal places.


if the user enters 'letters':
Get input for the grade letter in String format.
Utilize a switch statement to determine the corresponding output for the letter entered. (ensure you accept both upper and lower case letters.
Use the grading criteria from this course for the numbers. (you must use charAt( ) so the string will work with your switch)
Output the corresponding numbers values for the letter entered along with the letter initially entered.

By OTA:  Champake Mendis, MEngSc

OTA Rating:  4.7/5

Your Price:  $2.49  (original value ~$11.97)

What's included:

  • Plain text response
  • Attachment(s):
    • bm.java
$2.49 Download Add to Cart

Add to Shopping Cart
$2.19 Instant Download
Programming - Cat.java Class File - I need some help with writing this program. In the attached document are all the instructions also a sample of the program to be edited. Hopefully that helps, I'm just at the point to where I'm not understanding. Thanks in advance.

Page generated in 0.0504 seconds

About Us ·  Contact Us ·  Samples ·  Solutions ·  Legal Terms and Conditions ·  Privacy Policy ·  Copyright Notification Policy

©2010 SolutionLibrary.com

Search for Solutions About Us Samples