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

  Create a program that has an object type of contact

Create a program that has an object type of Contact. This contact will need to have the following attributes: Name, Birth Date, Phone Number, Address and Eye Color

  Create a virtual directory

Create a Web archive file and attach to this assignment. Do not copy (cut and paste) any example code, create your own code and use the examples as a guide.

  Scanning and parsingimplement the lexical and syntactic

scanning and parsingimplement the lexical and syntactic analysis of minifun programming language. the scanner splits up

  You have in your program an arraylist which contains

you have in your program an arraylist that contains employee salaries double type in arbitrary order. you need to

  Create a new child class and new driver program

In this assignment you will create a new child class and new driver program. Please review that example before continuing with this assignment. You should fully understand the shape program above

  Learn how expressions can be evaluated at run-time

Write a Java program (a collection of Java classes) including a class named ExpressionCalculator that contains a static main method. This main method will prompt the user to enter a constant expression.

  Calculates the total annual compensation of a salesperson

Write a Java application using an Integrated Development Environment (IDE) that calculates the total annual compensation of a salesperson

  Java test program

Write a Java test program, all your code should be in the main method, that determines what type of organization is indicated by a web address. Your program should allow the user to enter a web address

  Describe how you would design a class for it

A class is a blueprint for an object. A class may have a default constructor, a constructor with arguments, accessor methods, public fields, private fields, and mutator methods.

  Create a class representing a student

Create a second class that instantiates the first class with information about yourself. In the second class, create a class method that displays your name and GPA.

  Write a generic class

Write a generic class (using Java generics) called Pair that stores two values of the generic type.  It should have a constructor to set them, two methods getfirst() and getsecond() to retrieve them.

  Create application in java programming

Write method multiple that determines, for a pair of integers, whether the second integer is a multiple of the first.

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