Declare identifiers for grade point and letter grade

Assignment Help JAVA Programming
Reference no: EM13811533

This program focuses on some basic elements of interactive programming as well as basic programming practices. Among the utilities learned in this assignment are the use of a Dialog Input and a Dialog Message box. This assignment also includes the use of efficient coding techniques for conditional statements, including single testing and a cascading structure. There is also information on avoiding redundant coding.

Begin developing the following program:

a. Declare identifiers for grade point and letter grade. The grade point can be either an integer or a double.

b. Display a table that relates the grade point set to a letter grade.

c. The following is the table of points to letters [Use the underline and the vertical line (|) - the uppercase symbol above the \ key - called a pipe to add the graphics. The output can all be left justified.]:

Letter Grade

Points

A

100 - 94

A-

93 - 88

B

87 - 82

B-

81 - 76

C

75 - 70

C-

69 - 64

D

63 - 58

D-

57 - 52

F

51 - 0

Note: You can use a looping structure and arrays if you wish to generate the above table, but it is not necessary for this assignment since looping and arrays are not yet covered.

d. Using Dialog Input Box, prompt the user for a grade number. [It is assumed for this assignment that the user will not enter a zero, any negative numbers, or a number over 100; therefore do not create tests for these conditions.]

e. Using the value entered by the user, use a cascading conditional structure with a single test in each conditional statement to determine the appropriate letter grade. Review the information at the end of this assignment beginning with Example of Cascading Conditional Structure.

A single test means that within the condition, there is only one test, that is, there would be only

     aNumber < 500

not the following that is three tests

     aNumber > 0 && aNumber < 500

             1          3            2

f. Display in a sentence (1) the grade point inputted and (2) the appropriate letter grade using a Message Dialog box. Be sure there is no redundant code.

g. When a user is reviewing the output of the program the order will be the table of grade points related to letter grades (Item 3. c.), then the input window, and finally the output window with the complete sentence.

h. End the program with a message indicating the end of the program and the purpose of the program.

Reference no: EM13811533

Questions Cloud

Create a test application that creates a controller object : Create a test application that creates a controller object and play the game! Experiment with changing the game parameters and observe how the game reacts
Primary conclusion drawn from the kinetic theory of gases : Will this stress exceed the concrete's strength? What clearance or gap should be allowed between the slabs to avoid buckling up to the 50C - what can you say about these bodies?
How would you define statistics : How would you define statistics? How is statistics used in business decision making?
Stock is expected to pay a dividend-calculate forward price : A stock is expected to pay a dividend of $2.20 per share in 1 months and in 4 months. The current stock price is $51, and the risk-free interest rate is 6% per annum with continuous compounding for all maturities. An investor has just taken a long po..
Declare identifiers for grade point and letter grade : This program focuses on some basic elements of interactive programming as well as basic programming practices. Declare identifiers for grade point and letter grade. The grade point can be either an integer or a double
How much should he set aside today for the purchase : Stephen plans to purchase a car 3 years from now. The car will cost $45,148 at that time. Assume that Stephen can earn 9.95 percent (compounded monthly) on his money. How much should he set aside today for the purchase?
Calculate the value of a right-hares using rights issue : Image Storage Corporation has 1,000,000 shares outstanding. It wishes to issue 500,000 new shares using a (North American) rights issue. If the current stock price is $50 and the subscription price is $47/share, calculate the value of a right.
Paper on an employee benefit issue facing organizations : write a position paper on an employee benefit issue facing organizations.
Interest received at end of period is reinvested next period : You placed $9,560 in a savings account today that earns an annual interest rate of 4.84 percent, compounded semi annually. How much will you have in this account at the end of 5 years? Assume that all interest received at the end of the period is rei..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Cross the dark knight and the living flame of love

What challenges does spain get from the text john of the cross the dark knight and the living flame of love?

  Modify the inventory program by preparing a subclass of the

modify the inventory program by creating a subclass of the product class that uses one additional unique feature of the

  Write a script that reads a four-digit integer

Write a script that reads a four-digit integer entered by the user in a prompt dialog and encrypt it as follows: Replace each digit by (the sum of that digit plus 7) modulus 10.

  In light of wrestling with ethics

In light of "Wrestling With Ethics" and other research/articles that you are able to draw upon, should profitability drive social responsibility? Be sure to support your discussion question responses with evidence from the readings and/or additional ..

  Perform a unit test of the shoutbox

Perform a unit test of the MyClone to test all getters and setters and methods - Perform a unit test of the ShoutBox to test all methods.

  Write a method reversefirstk

Write a method reverseFirstK that accepts an integer k and a queue of integers as parameters and reverses the order of the first k elements of the queue, leaving the other elements in the same relative order.

  How large a value can be stored in an integer variable

Most programming languages have a built-in integer data type. Normally this representation has a fixed size, thus placing a limit on how large a value can be stored in an integer variable

  Write a computer program that prompts the user for a number

Write a computer program that prompts the user for a number, creates an array for that number of random integers, and then uses the sophisticated form of bubble sort to order the array

  Correct example of inheritance

Which of the following relationships is not a correct example of inheritance?  Parent to Children  Aunt to Uncle  Grandparent to Grandchild

  Write an interrupt service routine to output brand name

Evaluate the form of the output depended on the coefficients being input - Consider you would like to use PSoC to display a different brand name on the LCD once every 15 s.

  A java program that reads the records

A java program that reads the records from the golf.dat file and displays them. It also displays the name of the player with the best (lowest) golf score.

  Draw the uml diagram for the class

Draw the UML diagram for the class and then implement the class. Write a program that creates two rectangles objects, one with width 4 and height 40 and the other with width 3.5 and height 35.9

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