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

  Define intellectual property and global information

Intellectual Property and Information.(a) Define Intellectual Property and Global Information in an IT context. How are intellectual property rights in conflict with the globalization of information?

  Half sales office and half business office users

Create a 1-page network diagram showing the components and devices needed to build a simple office network based on the following scenario: 50 employees, half Sales office and half Business office users

  Find the transfer function from u to y

Write state equations for the system using the state-variables indicated.

  How can effectively and biblically respond to poverty

Our role as public health professionals often requires us to make recommendations to fellow Christians as to how we can effectively and biblically respond to poverty

  Suppose a c++ compiler for the mips

Suppose a C++ compiler for the MIPS machine associates $s5 with array a and $s6 with variable i. How does it translate a[i] = a[i+1]; into MIPS assembly language?

  Find an evaluation study

Find an evaluation study from http://usableweb.com or one of your own choice. Please answer the questions and submit via the Assignment Link- you may use Zip format for submission. Instructions:

  Propose a solution to the conflicts

Consider at least two (2) software products that you use or have used in the past. Provide at least two (2) examples in which ease of learning conflicted with ease of use. Propose a solution to the conflicts that you have indicated. Justify your resp..

  What is computer forensics

What is computer forensics, what is the purpose of computer forensics, and how does computer forensics complement the COBIT framework?

  What influence the concept of pervasive computing

What you believe the eventually influence will be of concept of "pervasive computing" or"location based services" will be on society.

  Compare iso-iec outline with nist documents

Compare the ISO/IEC 27001 outline with the NIST documents outlined in 'Management of Information Security' (by Michael E. Whitman, Herbert J. Mattord).

  Describe a situation in which this might reasonably happen

Describe a situation in which this might reasonably happen.

  Generate a directory listing showing the structure

Explain what the script will do and who is the author in a comment area - Create the directory structure and create the files as defined in the previous Individual Project.

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