In this exercise, you code an application that displays a grade based on the number of points
Question:
In this exercise, you code an application that displays a grade based on the number of points entered by the user. The grading scale is shown in Figure 10-16. Open the VB2015\Chap10\Chang Solution\Chang Solution (Chang Solution.sln) file. Create a structure that contains two members: an Integer variable for the minimum points and a String variable for the grades. Use the structure to declare a class-level one-dimensional array that has five elements. In the form’s Load event procedure, store the minimum points and grades in the array. The application should search the array for the number of points entered by the user and then display the appropriate grade from the array. Test the application appropriately.
Minimum points Maximum points Grade F 300 350 415 465 299 349 414 464 500 C A
Step by Step Answer:
Microsoft Visual Studio Solution File Format Version 1200 Visual Studio 14 VisualStudioVersion 140225120 MinimumVisualStudioVersion 100402191 ProjectF184B08FC81C45F6A57F5ABD9991F28F Chang Project Chan...View the full answer
Students also viewed these Computer science questions
-
In this exercise, you code an application that displays the number of times a value appears in a two-dimensional array. Follow the instructions for starting C++ and viewing the Advanced26.cpp file,...
-
The dataset OttawaSenators contains information on the number of points and the number of penalty minutes for 24 Ottawa Senators NHL hockey players. Computer output is shown for predicting the number...
-
In what two ways, based on the number of shares transacted, do brokers typically charge for executing transactions? How are online transaction fees structured relative to the degree of broker...
-
If you uncover critically important information (the sort that could make or break your company) that is from a credible source and appears to be unbiased, well documented, current, and complete but...
-
On which docs the speed of a circling satellite not depend: the mass of the satellite, the mass of Earth, or the distance of the satellite from Earth.
-
Some relevant database tables and attributes are presented in the figure designated Problem 12 on the following page. Required a. Create a database authorization table for an accounts payable clerk....
-
Onstar Communication issued \(\$ 100,000\) of \(6 \%, 10\)-year bonds payable on October 1, 2008, at par value. Onstar's accounting year ends on December 31. Journalize the following transactions....
-
As part of the audit of different audit areas, auditors should be alert for the possibility of unrecorded liabilities. For each of the following audit areas or accounts, describe a liability that can...
-
The UK Treasurer of Suits plc expects to receive a payment for wool exports to a customer in Munich in three months' time. Her marketing department has sold 1,000, "100% wool suits" for a delivered...
-
A city maintains an internal audit department and accounts for it in its general fund. In the coming year, the department will purchase $300,000 of computer and other ofce equipment, all of which...
-
Preston Enterprises stores employee IDs and salaries in a sequential access file named Employees.txt. Open the VB2015\Chap10\Preston Solution\Preston Solution (Preston Solution.sln) file. Open the...
-
Open the Test Scores Solution (Test Scores Solution.sln) file contained in the VB2015\ Chap10\Test Scores Solution folder. The btnSave_Click procedure should allow the user to enter an unknown number...
-
The Arms Hotel has 56 rooms. A rented room represents \($150\) in profit, while turn- ing away a customer who made a reservation (but the Arms Hotel did not have a room available) costs \($100\)....
-
If total income tax expense is $42,400 and deferred tax expense is $59,100, then the current portion of the total income tax expense is referred to as a current tax If a corporation's tax return...
-
Divide: 18y10 80yz
-
In a closed system 0.15 kg of gas at 350 K is expanded isothermally and reversibly from 1MPa pressure to 200 kPa. Given that Cv = 718 j/kg K and R = 287 J/kg K Determine: A. The work done b. The...
-
Find a controversial foreign policy issue and discuss how the president and other decision-making players interacted to address it. Highlight aspects related to interaction, strategy, personality,...
-
How much was the total deposit if sales were $2,000, returns were $400, and sales tax was $250.
-
You have been provided with the following selected accounts for Severn Limited for the year ended June 30, 2018: Inventory, July 1, 2017.......................................$520,000...
-
The Adjusted Trial Balance columns of a 10-column work sheet for Webber Co. follow. Complete the work sheet by extending the account balances into the appropriate financial statement columns and by...
-
True or false: When a BGP router receives an advertised path from its neigh bor, it must add its own identity to the received path and then send that new path on to all of its neighbors. Explain.
-
Consider Figure 5.7. Suppose there is another router w, connected to router y and z. The costs of all links are given as follows: c(x,v) 4, c(x,z) = 50, c(v,w) = 1, cz,w) = 1. c(v.z) = 3. Suppose...
-
Argue that for the distance-vector- algorithm in Figure 5.6, each value in the distance vector D(x) is non-increasing and will eventually stabilize in a finite number of steps. Figure 5.6 Node x...
-
A drum contains water and 1,4-dioxane that is left over waste from an electronics cleaning facility. For a mixture of 70 mol% water and 30 mol% 1,4-dioxane in the drum at 35 oC, calculate the...
-
Show what is produced by the following Java code. Assume list is a reference variable of type Sinly LinkedList, and length(), InsertFirst(), insertLast). first(), last(). print() are the methods of...
-
Explore the themes of alienation and dislocation in James Joyce's "Ulysses." How do these themes reflect the modernist perspective on the fragmentation of society and the individual's place within it...
Study smarter with the SolutionInn App