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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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