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

  What is a work breakdown structure

What is  a work breakdown structure

  Testing the program

You are a member of SQA group at Ye Olde Fashioned Software. You propose to your manager that inspections be introduced.

  Reducing the project risks

How would an iterative approach reduce the project risks in comparison to the first approach? How might it reduce the risks in comparison to the second approach?

  Describing the views

Explain why do you think that views by themselves are insufficient in order to protect the access by the unauthorized users?

  Creating the object oriented program

Create an abstract Employee class and two pure virtual functions - calculatePay() and displayEmployee(). Abstract Employee class will avoid a programmer from generating an object based on the Employee.

  How can translate into the broader area of business ethics

What responsibility do computing professionals have to society at large and to other members in their profession.how can translate into the broader area of business ethics.

  Proposing the reasonable values

Propose the reasonable values for items in risk register for this asset and threat, and give the justifications for your choices.

  Write a function called is_anagram

Write a function called is_anagram.

  Implementing the java servlet

Write down the Java servlet which utilizes the doGet in order to return a markup document which provides your name, e-mail address, and mailing address along with the brief autobiography.

  Express the worst case scenario for quick sort algorithm

express the worst case scenario for quick sort algorithm.

  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.

  Briefly explain the difference mesh, bus, ring, and star top

Briefly explain the difference, including advantages and disadvantages Ethernet, Token Ring, FDDI, and Wireless.

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