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

  Standardization and naming conventions

A position on whether or not standardization and naming conventions are critical for properly managing files and folders in a Windows environment. Include at least one (1) example or scenario to support your response.

  What does it mean to have integrated requirements models

What does it mean to have integrated requirements models? How should they be used?

  Processes of doing business

There are common change processes that face most organizations. Some of the changes affect the processes of doing business and some of the changes affect the people within the organization. Drawing from this week's lecture and readings

  Complete the anatomy of my computer table

Complete the Anatomy of My Computer table below. In order to gather the information you can look at your computer's documentation or go to the manufacturer's website and search for your computer. Include your findings in the cell to the right of the ..

  Facebook and privacy issues

Smartphones and Teenagers • Facebook and Privacy Issues • Challenges of Sport Organisations in Australia

  What is a hash value

What is a hash value, and why do you think it is important?

  File sharing on a local network

File Sharing on a Local Network

  Design a spreadsheet to understand required funds

Using the parameters in (a), construct a graph showing how the amount required for the order would vary if the unit cost of a package of bandages rose by $0.25, $0.50, and so on, up to $3.00 per package.

  The decryption algorithm

Using RSA, encode the word "cat" by encrypting each letter separately. Choose p=3, q=11 and e=9. Apply then the decryption algorithm. Show all the calculation steps.

  What are the shortest paths from vertex 0

What are the shortest paths from vertex 0 to each vertex of the graph in Figure 20- 24 a?

  Partial and total functions

For each of the following function de?nitions, give the graph of the function. Say whether this is a partial function or a total function on the integers. If the function is partial, say where the function is de?ned and  unde?ned.

  Solve equations and show that no solution exists

Solve the following equations for x and y or show that no solution exists. Show your work (in particular, what division must you carry out to solve each case). (i) 5x + 23  6 mod 47

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