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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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