Use a switch statement to calculate a letter grade

Assignment Help Programming Languages
Reference no: EM13327103

Use a switch statement to calculate a letter grade based on a numeric average up to 100. Allow the numeric score to be entered in a text field. A Grade button will display the corresponding letter grade in a label.

Grading policy:
90-100
80-89
70-79
60-69
< 60

Hint: You can divide the grade by 10 and store the result in an integer field. Use the integer in your swi tch statement.

Create an applet that displays a grading report in a text area. Text fields include student name, three project grades, two quiz grades, and a final exakgrad e* e. The projects are worth 50 percent of the grade and th -u qTz andfinai are worth 25 percent each.

----A-Pro-e'S'gr button should place the numeric average, the letter grade, and the student's name on a line in the text area as well as clear the text fields. See exercise 7.4 for a hint on finding the letter grade. Modify exercise 7.5 by adding a Complete button that will display the overall average for the class and the number of students processed. elnirmrd: Also display the name of the student with the highest grade.

Write any of the preceding exercises using Swing components. Include keyboard shortcuts and ToolTips on the components. Make sure that Your applet will run in both Internet Explorer and Netscape Navigator. Modify the hands-on example it) this chapter to use Swing components..6 Include keyboard shortcuts and ToolTips on the componenth.

Reference no: EM13327103

Questions Cloud

Analyze the advantages and disadvantages of cloud computing : Cloud computing was introduced this week as a giant client server environment. Analyze the advantages and disadvantages of cloud computing on the Internet.
The production possibilities curve below sho the hypothetic : The production possibilities curve below sho the hypothetical relationship between the production of food and clothing in an economy.
How much work is done by the gas in the second situation : For a temperature increase of ?T1, a certain amount of an ideal gas requires 30 J when heated at constant volume, How much work is done by the gas in the second situation
What are the major obstacles in moving this forward : These are called code generators. Analyze the advantages and disadvantages of this trend. What are the major obstacles in moving this forward?
Use a switch statement to calculate a letter grade : Use a switch statement to calculate a letter grade based on a numeric average up to 100. Allow the numeric score to be entered in a text field. A Grade button will display the corresponding letter grade in a label.
What is cost of equity capital with a new capital structure : A firm has zero debt in its capital structure. Its overall cost of capital is 10%. The firm is considering a new capital structure with 80% debt. The interest rate on the debt would be 8%.
Using definition of the production possibility curve : Using definition of the production possibility curve, which line(Curve) is much preferred.The curve that shows underutilized resources,efficiency of resources or overutilized resources?WHY?
Deoxyribonucleic acid or dna is the chemical basis : Question 1. Deoxyribonucleic acid or DNA is the chemical basis of inheritance. It is composed of nucleotides, has a double helix structure and relies on ribonucleic acid or RNA to get its information out to the cell. But the RNA has only one s..
Calculate and without assetwhat is the stock price for with : Consider two firms, With and Without, that have identical assets that generate identical cash flows. Without is an all-equity firm, with 1 million shares outstanding that trade for a price of $24 per share.

Reviews

Write a Review

Programming Languages Questions & Answers

  Develop two single dimension arrays-floating-point numbers

Develop two single dimension arrays which contain 10 floating-point numbers in each array. Develop third single dimension array to hold sum.

  Write a shell script to read students first names

Write a shell script that reads 5 students' first names, last names and grades and then it calculates the average, maximum and minimum grade.

  Write program to use text file to create relative file

Write a program that uses the text file to create a corresponding relative file. Translate the stock code to an appropriate relative record address.

  List various bindings to determine the semantics

List the various bindings that are required to determine the semantics when the statement is executed. For each binding, indicate the binding time used for the language.

  Program to give and take advice on program writing

Write down the program which gives and takes advice on program writing. Program starts by writing the piece of advice to screen and asking user to type in different advice.

  Dishtinguish antigone and what you know of theban saga

How would you dishtinguish Antigone, and what you know of Theban saga, to Oresteia, and what you know of story of Mycenaean saga?

  Write a bioperl-based script

Write a BioPerl-based script ("pick-by-id.pl") to extract sequences by id. It will emulate the "blastdbcmd -db -entry" command. Use "GBB.pep" and "BBA15" as the two arguments.

  Data members to store values of the two loans

A class that represents a person who belongs to a SACCO has two data members to store values of the two loans the person owes the SACCO. Add a parameterized constructor that initializes these loans using the two values passed as arguments.

  Create visual basic windows application

Create Visual Basic Windows application. Use following names for solution and project, respectively: Raise Solution and Raise Project.

  Write program to will read unspecified number of positive

Write a program which will read the unspecified number of positive numbers from keyboard and determine the sum and average of these numbers.

  Building instruction set simulators

Building Instruction Set Simulators

  Identify components that perform distinct service

Identify components that perform a distinct service. Although the details can be quite complex, these details are the basic principles of object-oriented programming

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