You are to develop a grade calculator that accepts a student's scores for quizzes, mid-term, problems...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You are to develop a grade calculator that accepts a student's scores for quizzes, mid-term, problems and final exam. When "calculate' is pressed the page will display the student's results, including quiz average, course average, and letter grade. Sample screens are as follows (a starter page is also provided): Firefox Student Grade Calculator localhost:8383/SGrades/StudentScores.html Student Score Input Student Number: Q1: Q2: Last Name: Calculation Clear Q3: Mid-Term: Problems: Final: Q4: 8- Google First Name: Q5: Mk-Up: D MMcAfee ? The calculation of the grade is based on the following rules: Quiz Average = simple arithmetic average of the highest 4 quizzes. Course average is a weighted average, as follows: 50% for Quiz Average, 15% for the MidTerm, 10% for the Problems, 25% for the final exam. Letter grade is based on the standard 90/80/70/60 brackets, with rounding .5 up to the next highest whole percent. Except that: a student who received 90 or better on each of the following: Quiz Average, Midterm, and the Problems (that is, on each of those 3 items must be 90+) gets an A and did not have to take the final exam. In such a situation the course average is just the arithmetic average of the three components (Quiz Average, Midterm, and Problems scores). The Clear button resets the form and puts the focus back in the Student Number box. In this program the javascript should check that all values have been entered and that the numeric values are between 0 and 125 for each score. If any bad data is detected, the javascript should inform the user and return the focus to the input box causing the problem. The method to 'inform' of bad data shown above in the example is a area, but you may use simple alerts in the program (the span is an extra credit item). Please note that you should validate the student number as following the STLCC format: (capital 'A' followed by exactly 8 digits, which must not all be zero). An empty last or first name field is also a validation failure. The make-up quiz input field, however, is the only one on the form which may be left blank. (If it is, assign a score of zero to that value for the purposes of calculating the quiz average). All javascript for this application should be put in a separate student.js file containing the functions needed to calculate the student scores and grade. The grade information line shown above (in blue) after the calculation was placed into a area called 'results'. The javascript should access the div area by its id (as is done for other items on the page) and then update the 'innerHTML' property to the output desired. Your javascript file should have normal functions for the various operations, including: validation functions, quiz average calculation function, course average calculation, and letter grade determination. These sub-functions will be called from a primary calculation' function which is activated on the click event for the calculation button. Include the $, Clear, and window.onload functions as was done in the first assignment. Create the application as another HTML type project inside Netbeans called StudentGrades and when finished, zip the full project and post it in blackboard in the usual way. Extra Credit (5 points): As noted above, instead of using simple alert messages for field error notifications, implement the span tag. If attempted, you must use span tags for each input field. You are to develop a grade calculator that accepts a student's scores for quizzes, mid-term, problems and final exam. When "calculate' is pressed the page will display the student's results, including quiz average, course average, and letter grade. Sample screens are as follows (a starter page is also provided): Firefox Student Grade Calculator localhost:8383/SGrades/StudentScores.html Student Score Input Student Number: Q1: Q2: Last Name: Calculation Clear Q3: Mid-Term: Problems: Final: Q4: 8- Google First Name: Q5: Mk-Up: D MMcAfee ? The calculation of the grade is based on the following rules: Quiz Average = simple arithmetic average of the highest 4 quizzes. Course average is a weighted average, as follows: 50% for Quiz Average, 15% for the MidTerm, 10% for the Problems, 25% for the final exam. Letter grade is based on the standard 90/80/70/60 brackets, with rounding .5 up to the next highest whole percent. Except that: a student who received 90 or better on each of the following: Quiz Average, Midterm, and the Problems (that is, on each of those 3 items must be 90+) gets an A and did not have to take the final exam. In such a situation the course average is just the arithmetic average of the three components (Quiz Average, Midterm, and Problems scores). The Clear button resets the form and puts the focus back in the Student Number box. In this program the javascript should check that all values have been entered and that the numeric values are between 0 and 125 for each score. If any bad data is detected, the javascript should inform the user and return the focus to the input box causing the problem. The method to 'inform' of bad data shown above in the example is a area, but you may use simple alerts in the program (the span is an extra credit item). Please note that you should validate the student number as following the STLCC format: (capital 'A' followed by exactly 8 digits, which must not all be zero). An empty last or first name field is also a validation failure. The make-up quiz input field, however, is the only one on the form which may be left blank. (If it is, assign a score of zero to that value for the purposes of calculating the quiz average). All javascript for this application should be put in a separate student.js file containing the functions needed to calculate the student scores and grade. The grade information line shown above (in blue) after the calculation was placed into a area called 'results'. The javascript should access the div area by its id (as is done for other items on the page) and then update the 'innerHTML' property to the output desired. Your javascript file should have normal functions for the various operations, including: validation functions, quiz average calculation function, course average calculation, and letter grade determination. These sub-functions will be called from a primary calculation' function which is activated on the click event for the calculation button. Include the $, Clear, and window.onload functions as was done in the first assignment. Create the application as another HTML type project inside Netbeans called StudentGrades and when finished, zip the full project and post it in blackboard in the usual way. Extra Credit (5 points): As noted above, instead of using simple alert messages for field error notifications, implement the span tag. If attempted, you must use span tags for each input field.
Expert Answer:
Answer rating: 100% (QA)
To create this grade calculator youll need to follow a stepbystep process HTML Form Create an HTML form for inputting student information and scores JavaScript Functions Write JavaScript functions to ... View the full answer
Related Book For
Java An Introduction To Problem Solving And Programming
ISBN: 9780134462035
8th Edition
Authors: Walter Savitch
Posted Date:
Students also viewed these programming questions
-
When writing electron configurations, we use the building-up principle. However, there are exceptions to the building-up principle. An example is when a d-orbital will steal an electron from the...
-
Which of the following in not a function of DBA? A. Network Maintenance B. Routine Maintenance C. Schema Definition D. Authorization for data access
-
Hazlett, Inc., operates at capacity and makes plastic combs and hairbrushes. Although the combs and brushes are a matching set, they are sold individually and so the sales mix is not 1:1. Hazlett's...
-
The car in Problem 12.16 operates on liquefied petroleum gas (LPG). Assume the LPG can be approximated as C 3 H 8 . Assume the air composition is that of simple air, i.e, 1 kmol of O 2 for every 3.76...
-
In the months leading up to the 2016 election, Christopher Steele, a former British intelligence agent, was hired by a Washington, D.C., research firm to investigate whether then-candidate Donald...
-
Brainiac Company purchased a delivery truck for $30,000 on January 1, 2010.The truck has an expected salvage value of $2,000, and is expected to be driven 100,000 miles over its estimated useful life...
-
$400,000 for a new technology.The lender charges them 36% annually with monthly compounding.The agreement calls for no payment until the end of the first month of the 5th year with equal monthly...
-
Absorption Costing Versus Variable Costing. Prime, Inc., produces tricycles. The company has no finished goods inventory at the beginning of year 1. The following information pertains to Prime, Inc....
-
A solar energy plant uses a turbine running on a liquid with a low boiling point. Comment on possible wear mechanisms that are likely. How different would it be when compared to a steam turbine?...
-
Pink (Pty) Ltd is considering changing its method of inventory valuation from the absorption costing to direct costing and consulted you to determine the effect of this proposed change on the 2022...
-
Give a brief description of of lean manufacturing and costco. Briefly discuss how this trend presents challenges for Costco based on the current outlook.
-
The following data should be used for the next few questions: Raw materials inventory, January 1 $ 12,000 Raw materials inventory, December 31 16,000 Work in process, January 1 5,000 Work in process,...
-
What amount should we credit income tax payable if the tax deduction was not an aggressive position. What is income tax and gross income tax.?
-
Describe three multi domain screening instruments to be completed by professionals. Also discuss their use in detail.
-
The difference between average and marginal tax rates is that A. Average tax rate is applied to income at the end of each year, whereas marginal tax rate is applied to operating income at the end of...
-
Quality Chicken grows and processes chickens. Each chicken is disassembled into five main parts. Information pertaining to production in July 2012 is: Joint cost of production in July 2012 was $50. A...
-
Repeat the previous exercise, but write the new lines to a new binary file instead of a text file. Previous exercise Write a program that reads every line in a text file, removes the first word from...
-
What output will be produced by the following code? public class Demo { public static void main(String[] args) { System.out.println("The output is:"); bar(11156); System.out.println(); } public...
-
Imagine a program that displays a menu of five possible choices, lettered a through e. Suppose the users selection is read into the character variable choice. Write a switch statement that reacts to...
-
Reconsider the data from Problem 57 (Orpheum Productions lighting enhancement). Assume that any money not invested in the lighting enhancements will be placed in an interest-bearing account earning...
-
An investor has \($100,000\) to invest in a business venture, or she can earn 10 percent/year with a \($100,000\) certificate of deposit for 4 years. Three possible business ventures have been...
-
This problem is related to Problem 8. Jeff has $10,000 to invest for a period of 5 years. The following three alternatives are available at his bank: Data from problem 8 Jeff has $10,000 to invest...
Study smarter with the SolutionInn App