Flow of control in java

Assignment Help Basic Computer Science
Reference no: EM131174495

Flow of Control in Java

When processing data, it is necessary to make comparisons and validate the information entered. This week those skills will be learned by understanding the if-else and looping statements (while, do-while, and for-loop).

Assignment:

Part I:

Modify the program in Example 5.4 on page 225-226 to implement the new grading system below. Change the program by making the variable letterGrade a String variable instead of a character (char) variable, and change the if-else statement to assign the appropriate grade for the test score entered.

Grade

Minimum Percentage

A+

97

A

93

A-

90

B+

87

B

83

B-

80

C+

77

C

73

C-

70

D+

67

D

65

D-

60

F

0

Part II: Read section 6.5, Type-Safe Input Using Scanner, on page 310. Review the code in Example 6.10 on page 313 and modify the input in the above program to make sure the test score entered is an integer.

Run the program and enter 75.1, J, and 75.

Make a screenshot of the output and include it as an attachment to the Week 3 Assignment. Also, include the program code in a text file to run on another computer. Make sure to add comments to your code for full credit (see page 45).

Reference no: EM131174495

Questions Cloud

Form that the computer can understand : Devices convert a sketch or a figure into a form that the computer can understand?
Discuss the possibility of switching suppliers : Bargaining power of suppliers: What is the importance of raw materials, components, labor, and services that are required for the industry, and are there substitutes for those inputs? Discuss the possibility of switching suppliers, if necessary.
Central computer at the same time : What is required when more than one persons use a central computer at the same time?
Determine what the resistance coefficient k of the valve : A 160-mm pipe branches into a 100-mm and a 50-mm pipe as shown in Fig. 12.10. Both pipes are hydraulic copper tubing and 30 m long. (The fluid is water at 10°C.) Determine what the resistance coefficient K of the valve must be to obtain equal volu..
Flow of control in java : Flow of Control in Java When processing data, it is necessary to make comparisons and validate the information entered. This week those skills will be learned by understanding the if-else and looping statements (while, do-while, and for-loop).
Write a paper assignment on bacillus anthracis : Write the Paper Assignment.-  Title: Bacillus Anthracis - Bacillus anthracis is a gram-positive spore forming bacterium that causes anthrax, an acute, often fatal infection.
Compare and contrast public and in-house cas : Compare and contrast public and in-house CAs. Include the positive and negative characteristics of each type of certificate authority, and provide a sound recommendation of and a justification for which you would consider implementing within your ..
Explain what will happen to consumer and producer surplus : Explain what will happen to consumer and producer surplus and deadweight loss if the government imposes a tax on sellers for each radio they produce in order to raise government income? Include in your answer an explanation of the three concepts -..
Assignment on outline a new it security policy : You have been hired by the Board of Directors of RollinOn, Inc as the new IT Security Manager. RollinOn is a designer of premade and custom designed skates and skateboards.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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