Use the int cast process to convert to an integer

Assignment Help Computer Engineering
Reference no: EM1330390

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.

Reference no: EM1330390

Questions Cloud

Five specific things of ineffective leader : Describe an Ineffective leader: Then, List up to five specific things that the person (your leader) did or said that made you see him or her as a POOR leader?
Government to pretend in ways which socialize financial : Is it ethical for a government to pretend in ways which socialize financial risks or losses.
Explain how do we keep a child off of an adult website : Explain How do we keep a child off of an Adult website and the Federal/State Law enforcement agencies seem to have started some stern crackdowns on Adults that visit children sites
Relationship between hrm and social responsibility : What is the relationship between human resource management and social responsibility and explain at least one social responsibility issue associated with Human Resource outsourcing? Provide an example.
Use the int cast process to convert to an integer : give 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.
The primary moral wrong committed by sexual harassment : Do you believe that there is a single moral wrong that undergirds sexual harassment, or are there several? The primary moral wrong committed by sexual harassment.
Finding out the annuity plan : Find out whether or not the proceeds of home will offer enough to meet the need desired & to make an ordinary annuity plan to build the fund to cover any shortfall in funds.
Explaining the diversity : Discuss your feelings with respect to whether diversity programs are necessary to ensure student diversity either on college campuses.
Illustrate economic evidence is required to determine : Illustrate economic evidence is required to determine whether there are long-run increasing returns to scale in banking.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Developing the modular program

Develop the modular program which asks user in order to enter the monthly costs for following expenses incurred from the operating his or her automobile: loan payment, gas, insurance, oil, tires, and maintenance.

  Generating a brand new database for a company

If you were preparing to generate a brand new database for a company, explain whether you think there is the necessity of interviewing the users to find out what the colors and the designs they like.

  Why is the documentation plan important

What are three essential system components that may be used to devise an implementation strategy in your workplace.

  Advantages and disadvantages of end-user computing

Explain the advantages and disadvantages of the end-user computing and determine if this is an application which should be progressively pursued. Describe your rationale.

  Make a professional-looking document

though, if you have a one page article and a one page summary, then the score would still be high, but may also indicate that you need to use more of your own words in the summary. Also as a reminder, whenever, you copy the words of another author..

  Local v/s network printers

Write down a paper explaining the Windows Printer Model for Server 2008. Explain the local v/s network printers and how to decide which printers to deploy.

  Encipher a message using a keyword

The first program will encipher a message using a keyword and second program will decipher a message using a keyword.

  Give some suggestions for resolving those issues

define some of the issues surrounding widespread access to some of the multiple health knowledge sources available on the internet.

  Employeeexception class whose constructor receives a string

build an Employee class with two fields, idNum and hourlyWage. The Employee constructor requires values for both fields. Upon construction, it throw an EmployeeException if the hourlyWage is less than 6.00 or over 50.00. Save the class as Employee..

  Application to computer science

Find the matrices that represent the relations.

  System analysis and design

In the System Analysis and Design: Mixing Techniques – The question “Whether the structured techniques and object-oriented techniques can be mixed.

  What do you mean by an entity

How is it possible to get more information from the equal amount of data though using a database approach as opposed to a file approach.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd