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

  Develop a technique for machines

For artificial intelligence systems to adapt to new conditions, the 1st task is to construct a technique for machines to resolve problems 'on their own'. To do this, one requires to develop a generic method to resolve generic troubles

  What are these configurations used for

Using your experiences with different kinds of networks, discuss your thoughts about the importance of visualization of the network, the design of the network in the overall success of a network installation or upgrade.

  Explain the process of characterizing a new internetwork

Explain the process of characterizing a new internetwork using the OSI model as its foundation. What tools would you use to assist in your planning efforts.

  Write the equations of motion for the double-pendulum

The pendulum rods are taken to be massless, of length I, and the springs are attached three-fourths of the way down.

  Narrative description of the interview setting

Provide a list of people you have or will interview. Provide a narrative description of the interview setting and the intended process, before, during and following the interview.

  How might a general-purpose request/reply protocol address

How might a general-purpose request/reply protocol address this?

  How much cpu time each user process has had recently

Modify the MINIX 3 scheduler to keep track of how much CPU time each user process has had recently. When no task or server wants to run, pick the user process that has had the smallest share of the CPU.

  Determine the contents of the relocation

A program was initally loaded into memory starting at address 500. Determine the contents of the relocation register after the program is moved to address 200?

  Compare swing java gui components to awt components

Compare Swing Java GUI components to AWT components. Explain at least one way the components are similar and at least one way they are different. Provide examples to support your rationale.

  Organizational of communication and risk

Introduction: project name, a brief description of the project, and deliverables of the project.

  Secure encrypted communications

Transmitting personal and business data and information over secure communication channels is critical. In some cases it is required, especially when personally identifiable information is being transmitted. Credit card numbers, Social Security Numbe..

  Find movie information

1.You can find movie information at http://www.imdb.com/chart/top2.Create a new MS Excel spreadsheet and enter the following information about ten movies of the last decade (2003-2012) with the highest IMDB rating

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