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

  Calculate the total price based on several key parts

Calculate the total price based on several key parts required to build a state-of-the-art gaming computer. The user will have the option of selecting different parts.

  Create the behavioral vhdl model for thirty two-bit alu

Create the behavioral VHDL model for 32-bit ALU. The ALU has 4-bit "op" control singal. Relationship between the "op" and operations of ALU.

  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.

  Input number by user and display positive and negative

Input a number entered by the user and display "positive" if it is greater than zero, "negative" if it is less than zero, and "zero" if it is equal to zero.

  Write a function word_counts

Write a function word_counts that parses the string s into words and returns an array (of arrays of the form [word, count]) representing the frequency of each word. Words are case-insensitive:

  Write program to reads student-s name with test scores

Write down a program which reads student's name together with his or her test scores. Program must calculate the average test score for each student and allot the suitable grade.

  Write code for invoking method named sendtwo

Write the code for invoking a method named sendTwo. There are two arguments for this method: a double and an int.

  Write down a macro which writes the single character

Write down a macro named putChar which writes the single character, passed a macro argument, to standard output in assemble language.

  Designing class to denote person-s height

Design a class, PersonHeight, to denote the person's height. Our class will include the following members.

  What is the throughput of the system

what is the throughput of the system

  Program with two functions to solve voting problem

Program with at least two functions to solve following problem. Members of board of small university are considering voting for pay increase for their 10 faculty members.

  Design application that reads arbitary number of integers

Design and implement an application that reads an arbitary number of integers that are in the range of 0 to 50 inclusive and counts how many occurences of each are entered.

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