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

  Describing the lcg

Provide the value of a? Specify the restrictions that are required on the seed?

  Challenges in delivering products -information over internet

One of the biggest challenges linked with the delivering products and information over Internet is the ease with which the others can infringe on other's rights. Provide some examples of this.

  Listing the significant investigative approaches

What do you think are the most significant investigative approaches in preparation for these cyber crime cases and what could be the result of the poor investigator planning and preparation before start of the digital evidence collection, and proc..

  Program declaring the variables-using proper variable naming

Your program should declare all the variables and utilize the proper variable naming conventions.

  Eurofins scientific is a bioanalytical service provider

Require a Project plan for the project (it doesn't need to be in ms project, word is fine). Including timelines, tasks and constraints. The project is a fictional business and idea that I needed to come up with and make a project plan, please allo..

  Ethical policy that could be used by a team

Write down a short ethical policy that could be used by a team of IT workers when they encounter spam, email viruses or wish to use the company's denial-of-service rights.

  Dicsuss the business scenario that may call

express a business scenario that might call for an index-organized table.

  How can the average person fight this

Recent news articles are talking about how Internet is being used as a method of posting slanderous, private or simply unverified information.

  How to concern about personal privacy, efficiency

How to concern about personal privacy, efficiency

  Discuss the tester and developer relationship

Discuss the tester and developer relationship within spiral development methodology. You may use your personal experiences to support the arguments.

  What is the goal to exercises in the bluej textbook

What is the goal to exercises in the BlueJ textbook? For the remains of the course, you will answer the questions posed by BlueJ textbook-you will not require downloading an additional worksheet and filling it in as you did for first four units.

  What is a possible downside of making such a choice

The mainframe currently only connects to terminals, but management wants to be able to access it from  desktop. You run a token ring network. The mainframe manufacturer supports Ethernet, but not token ring. maintain an outline of possible solutio..

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