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

  Webpage for a take out pizza restaurant

design a webpage for a take out pizza restaurant. use radio buttons to allow customers to select type of pizza, such as vegetarian or meat lover's.

  Define the quicksort algorithm to sort vector v

define the quicksort algorithm to sort vector v. During each pass, list all exchanges of a pair of elements in the lower and upper sublist.

  Recovering passwords from protected files

Recognize the mismatched file headers to the extensions and discuss the techniques you may apply in order to recover the passwords from protected files.

  What a white box testing plan includes

A business letter addressed to the board of Jonesville Library introducing the contents of the document.

  What are the potential benefits of management projects

What are the potential benefits of management projects. What strategies must companies follow to achieve positive results in knowledge management projects.

  Program on strings s1 and s2

Program on strings s1 and s2.

  How to construct a permutationgenerator object

note down  a program that produces random permutations of the numbers 1 to 10. To generate a random permutation, you need to fill an array with the numbers 1 to 10 so that no two entries of \array have the same contents.

  Describe python modules and packages

Describe Python modules and packages

  Registers and risc processor

A RISC processor has 152 total registers, along with the 12 designated as global registers.

  A system that calculates and returns the mean and a method

A system that calculates and returns the mean and a method

  Determining the compliment of a number

Express 64 as the 2’s compliment number. Specify the number of bits you require? With this number of bits, state the largest positive number you may represent?

  Selecting the operating system

What operating system must the library consider for this facility? And also explain why?

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