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.
-
Problem 5-37 (Algorithmic) (LO. 2) Jack, age 34, is an officer of Blue Company, which provides him with the following nondiscriminatory fringe benefits in 2020: Hospitalization insurance premiums for...
-
A marble is placed near a plane mirror as shown in Figure P24.8. (a) Where will the image be located? (b) How does the image location change as the observer moves closer to the mirror? (c) How does...
-
Pol Corporation purchased a 90 percent interest in San Corporation on December 31, 2010, for $2,700,000 cash, when San had capital stock of $2,000,000 and retained earnings of $500,000. All San's...
-
View Policies Current Attempt in Progress Sandhill Inc. manufactures cycling equipment. Recently, the vice president of operations of the company has requested construction of a new plant to meet the...
-
For the current year ending December 31, Fromm Industries expects fixed costs of $930,000, a unit variable cost of $53, and a unit selling price of $63. a. Compute the anticipated break-even sales...
-
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...
-
What is the danger when a board has specialised committees?
-
Spitfire Company makes and sells three products: A, B, and C. The following data relate to these products: A B Demand in units Selling price per unit 110 100 90 $180 $210 $195 Raw material costs per...
-
NCF & Partners (NCF) is a firm of CPAslocated in Whitby that has been in business for 20 years. NCF's revenue has declined steadily over the past few years. The partners are looking for ways...
-
Task 4.2Written report Describe how you will present the menu to customers, for example, folders, covers, boards or binding. Include details of colour schemes, pictures, icons, logos, symbols and...
-
The American company "Amazonian", leader in food distribution, is starting operations in Brazil. They just hired a group of new managers who will lead several branches of the company in different...
-
1; Assume you are in charge of fundraising for an organization on your campusa social fraternity or sorority, a business fraternity, or any other such organization. It is your job to identify a...
-
Find the power per unit area emitted by a 3000-K incandescent lamp filament in the wavelength interval from 500 nm to 502 nm.
-
Define a traverse in Surveying?
-
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...
-
On NSE (Indian stock exchange), shares of ICICI Bank trade for 935 rupees. If the spot exchange rate is USD 0.012, what is the no-arbitrage USD price of ICICI Bank ADR? Assume that transactions costs...
-
Income Statement Balance Sheet Balance Sheet Additional Financial Information 1. Market price of Ranfield's common stock: $90.44 at December 31, 2024, and $58.35 at December 31, 2023. 2. Common...
-
There is a credit rating agency for businesses that gives out various amounts of information based on the subscription level. This company is called a. Business Credit Scoring b. Fair Issue c. Dun...
Study smarter with the SolutionInn App