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.
-
Aram sold a capital asset that he owned for more than one year for a $ 2 , 5 6 0 loss, a capital asset that he owned for six months for a $ 4 , 3 2 0 gain, and a capital asset he owned for two months...
-
(a) Using \(q_{0.10}=3.921\) for the Tukey HSD method, compare the strength of the 5 linen threads in Exercise 12.23 . (b) Use the Bonferroni confidence interval approach on page 411, with...
-
Randle Inc. issues $300,000, 10-year, 8% bonds at 98. Prepare the journal entry to record the sale of these bonds on March 1, 2017.
-
During 2025, Bass Corporation constructed assets costing $4000000. The weighted-average accumulated expenditures on these assets during 2025 was $2400000. To help pay for construction, $1760000 was...
-
Professor Siegel argues that investing in stocks for retirement may be less risky than investing in bonds. Would you recommend this approach to an individual in his or her early 60s?
-
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...
-
Retro Corp. was engaged solely in manufacturing operations. The following data pertain to the operating segments for 2013: What is the minimum amount of profit or loss that each of these segments...
-
What are the primary ways in which project managers use estimates throughout the project?
-
What is the primary limitation of an S-corp.?
-
What impact will an inaccurate progress estimate have on cash flow?
-
Do short messages also require that communicators follow a writing process? Why or why not?
-
What is the best source for labor and equipment unit prices that will be used in developing an estimate?
-
Pretzelmania, Inc., issues 6%, 10-year bonds with a face amount of $60,000 for $55,736 on January 1, 2012. The market interest rate for bonds of similar risk and maturity is 7%. Interest is paid...
-
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...
-
Aaron, Deanne, and Keon formed the Blue Bell General Partnership at the beginning of the current year. Aaron and Deanne each contributed $138,000, and Keon transferred an acre of undeveloped land to...
-
The following information pertains to the inventory of Parvin Company: Jan. 1 Apr. 1 Oct. 1 Beginning inventory Purchased Purchased 400 units @ 2,400 units @ 1,100 units $17 $22 $23 During the year,...
-
Gold Nest Company of Guandong, China, makes birdcages for the South China market. The company sells its birdcages through an extensive network of street vendors who receive commissions on their...
Study smarter with the SolutionInn App