1. The Windows application opens with the heading Most Rainfall in US - Kauai, a ListBox...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. The Windows application opens with the heading "Most Rainfall in US - Kauai," a ListBox object that displays the monthly rainfall amounts, an image, and a Button object that allows the user to begin entering their rainfall amounts in inches. 2. A menu bar displays the File menu, which has two menu items: Clear and Exit. 3. The user enters up to 12 monthly values in an InputBox object, with each value representing the number of inches of rainfall per month in Kauai. 4. The program asks the user for the rainfall amount again if the value is a negative number or the entry is a nonnumeric value. 5. The program displays the average inches of rainfall rounded to one decimal place. 6. The user can clear the input and the result by clicking the Clear menu item, and then can repeat Steps 3-5. If the user clicks the Cancel button in the input box, the average for the values entered is calculated. If the user did not enter any values, the program displays an appropriate message. 7. The user clicks the Exit menu item to close the application. FIGURE 6-115 Most Rainfall in US File Most Rainfall in US- Kauai 8.6 9.2 10.5 Rainfall Average 14.2 10.0 6.4 3.2 Enter Rainfall 2.9 5.9 8.8 9.2 Average Rainfall per Month is 8.0 inches 7.4 Stadent Assignmnts 375 Case Programming Assignments Complete one or more of the following case programming assignments. Submit the program and materials you create to your instructor. The level of difficulty is indicated for each case programming assignment. - Easiest - Intermediate 000 - Challenging 1 MOST RAINFALL IN THE USA Design a Windows application and write the code that will execute according to the program requirements shown in Figure 6-114. Before writing the code, create an event planning document for each event in the program. The Use Case Definition document is shown in Figure 6-115 on the following page. The completed user interface is shown in Figure 6-116 on the following page. REQUIREMENTS DOCUMENT Date: March 17, 2019 Date Submitted: Application Title: Most Rainfall in the USA This Windows Classic Desktop application is written for Kauai, Hawaii, the rainiest location in the United States, to compute the average monthly amount of rainfall per Purpose: year. In a Windows application, the user enters up to 12 values representing the number of inches of rain each month to compute the average rainfall in a given number of months or a full year. Program Procedures: 1. In an InputBox object, the user enters up to 12 amounts of rainfall per month in inches. 2. Each amount of rainfall per month is displayed in the ListBox object. 3. After 12 entries of rainfall values are entered, the average rainfall is calculated and displayed. 4. A File menu contains a Clear and an Exit option. The Clear menu item clears the average rainfall and the 12 values representing the amount of rainfall per month in Kauai. The Exit menu item closes the application. 5. If the user clicks the Cancel button in the input box before entering 12 values, compute the average amount of rainfall entered. 6. If the user clicks the Cancel button before entering any rainfall values, display a message indicating the user did not enter a value. Algorithms, Processing, and Conditions: Notes and Restrictions: 1. Nonnumeric values should not be accepted. 2. Negative values should not be accepted. 3. The average rainfall should be rounded to the nearest tenth of inch. 1. The application allows decimal entries. 2. Obtain a background image for this program from CengageBrain.com. The name of the image file is hawaii. Comments: FIGURE 6-114 (continues, 3:28 O O LTE A 21% This exercise is based on the "Most Rainfall" assignment from Chapter 6, page 375. The Purpose and Program Procedures remain the same but the User Interface has been changed to allow the user to enter rainfall data for specific months. Below is a list of the requirement changes. # Textbook Requirement My New Requirement Provide a ListBox of 12 months (Jan to Dec). Selecting a month from the ListBox will In an InputBox object, the user enters up to 1 display an InputBox that prompts the user 12 amounts of rainfall per month in inches with name of the selected month and allows him to enter the rainfall in inches. Each amount of rainfall entered is displayed in Each amount of rainfall per month is displayed a second ListBox along with the month name. in the ListBox object. (i.e. "Jan: 8.6") After 12 entries of rainfall have been entered, Calculate and display the average monthly 3 the average rainfall is calculated and rainfall after each rainfall entry. displayed. A File menu contains a Clear and Exit option. A File menu contains a Clear and Exit option. The Clear menu item clears the average The Clear menu item clears the average rainfall and all of the values entered 4 rainfall and the 12 values representing the representing the amount of rainfall per month amount of rainfall per month in Kauai. The in Kauai. The exit menu item closes the exit menu item closes the application. application. 3:28 O O LTE A 21% This exercise is based on the "Most Rainfall" assignment from Chapter 6, page 375. The Purpose and Program Procedures remain the same but the User Interface has been changed to allow the user to enter rainfall data for specific months. Below is a list of the requirement changes. # Textbook Requirement My New Requirement Provide a ListBox of 12 months (Jan to Dec). Selecting a month from the ListBox will In an InputBox object, the user enters up to 1 display an InputBox that prompts the user 12 amounts of rainfall per month in inches with name of the selected month and allows him to enter the rainfall in inches. Each amount of rainfall entered is displayed in Each amount of rainfall per month is displayed a second ListBox along with the month name. in the ListBox object. (i.e. "Jan: 8.6") After 12 entries of rainfall have been entered, Calculate and display the average monthly 3 the average rainfall is calculated and rainfall after each rainfall entry. displayed. A File menu contains a Clear and Exit option. A File menu contains a Clear and Exit option. The Clear menu item clears the average The Clear menu item clears the average rainfall and all of the values entered 4 rainfall and the 12 values representing the representing the amount of rainfall per month amount of rainfall per month in Kauai. The in Kauai. The exit menu item closes the exit menu item closes the application. application. 1. The Windows application opens with the heading "Most Rainfall in US - Kauai," a ListBox object that displays the monthly rainfall amounts, an image, and a Button object that allows the user to begin entering their rainfall amounts in inches. 2. A menu bar displays the File menu, which has two menu items: Clear and Exit. 3. The user enters up to 12 monthly values in an InputBox object, with each value representing the number of inches of rainfall per month in Kauai. 4. The program asks the user for the rainfall amount again if the value is a negative number or the entry is a nonnumeric value. 5. The program displays the average inches of rainfall rounded to one decimal place. 6. The user can clear the input and the result by clicking the Clear menu item, and then can repeat Steps 3-5. If the user clicks the Cancel button in the input box, the average for the values entered is calculated. If the user did not enter any values, the program displays an appropriate message. 7. The user clicks the Exit menu item to close the application. FIGURE 6-115 Most Rainfall in US File Most Rainfall in US- Kauai 8.6 9.2 10.5 Rainfall Average 14.2 10.0 6.4 3.2 Enter Rainfall 2.9 5.9 8.8 9.2 Average Rainfall per Month is 8.0 inches 7.4 Stadent Assignmnts 375 Case Programming Assignments Complete one or more of the following case programming assignments. Submit the program and materials you create to your instructor. The level of difficulty is indicated for each case programming assignment. - Easiest - Intermediate 000 - Challenging 1 MOST RAINFALL IN THE USA Design a Windows application and write the code that will execute according to the program requirements shown in Figure 6-114. Before writing the code, create an event planning document for each event in the program. The Use Case Definition document is shown in Figure 6-115 on the following page. The completed user interface is shown in Figure 6-116 on the following page. REQUIREMENTS DOCUMENT Date: March 17, 2019 Date Submitted: Application Title: Most Rainfall in the USA This Windows Classic Desktop application is written for Kauai, Hawaii, the rainiest location in the United States, to compute the average monthly amount of rainfall per Purpose: year. In a Windows application, the user enters up to 12 values representing the number of inches of rain each month to compute the average rainfall in a given number of months or a full year. Program Procedures: 1. In an InputBox object, the user enters up to 12 amounts of rainfall per month in inches. 2. Each amount of rainfall per month is displayed in the ListBox object. 3. After 12 entries of rainfall values are entered, the average rainfall is calculated and displayed. 4. A File menu contains a Clear and an Exit option. The Clear menu item clears the average rainfall and the 12 values representing the amount of rainfall per month in Kauai. The Exit menu item closes the application. 5. If the user clicks the Cancel button in the input box before entering 12 values, compute the average amount of rainfall entered. 6. If the user clicks the Cancel button before entering any rainfall values, display a message indicating the user did not enter a value. Algorithms, Processing, and Conditions: Notes and Restrictions: 1. Nonnumeric values should not be accepted. 2. Negative values should not be accepted. 3. The average rainfall should be rounded to the nearest tenth of inch. 1. The application allows decimal entries. 2. Obtain a background image for this program from CengageBrain.com. The name of the image file is hawaii. Comments: FIGURE 6-114 (continues, 3:28 O O LTE A 21% This exercise is based on the "Most Rainfall" assignment from Chapter 6, page 375. The Purpose and Program Procedures remain the same but the User Interface has been changed to allow the user to enter rainfall data for specific months. Below is a list of the requirement changes. # Textbook Requirement My New Requirement Provide a ListBox of 12 months (Jan to Dec). Selecting a month from the ListBox will In an InputBox object, the user enters up to 1 display an InputBox that prompts the user 12 amounts of rainfall per month in inches with name of the selected month and allows him to enter the rainfall in inches. Each amount of rainfall entered is displayed in Each amount of rainfall per month is displayed a second ListBox along with the month name. in the ListBox object. (i.e. "Jan: 8.6") After 12 entries of rainfall have been entered, Calculate and display the average monthly 3 the average rainfall is calculated and rainfall after each rainfall entry. displayed. A File menu contains a Clear and Exit option. A File menu contains a Clear and Exit option. The Clear menu item clears the average The Clear menu item clears the average rainfall and all of the values entered 4 rainfall and the 12 values representing the representing the amount of rainfall per month amount of rainfall per month in Kauai. The in Kauai. The exit menu item closes the exit menu item closes the application. application. 3:28 O O LTE A 21% This exercise is based on the "Most Rainfall" assignment from Chapter 6, page 375. The Purpose and Program Procedures remain the same but the User Interface has been changed to allow the user to enter rainfall data for specific months. Below is a list of the requirement changes. # Textbook Requirement My New Requirement Provide a ListBox of 12 months (Jan to Dec). Selecting a month from the ListBox will In an InputBox object, the user enters up to 1 display an InputBox that prompts the user 12 amounts of rainfall per month in inches with name of the selected month and allows him to enter the rainfall in inches. Each amount of rainfall entered is displayed in Each amount of rainfall per month is displayed a second ListBox along with the month name. in the ListBox object. (i.e. "Jan: 8.6") After 12 entries of rainfall have been entered, Calculate and display the average monthly 3 the average rainfall is calculated and rainfall after each rainfall entry. displayed. A File menu contains a Clear and Exit option. A File menu contains a Clear and Exit option. The Clear menu item clears the average The Clear menu item clears the average rainfall and all of the values entered 4 rainfall and the 12 values representing the representing the amount of rainfall per month amount of rainfall per month in Kauai. The in Kauai. The exit menu item closes the exit menu item closes the application. application.
Expert Answer:
Related Book For
Fundamentals of Physics
ISBN: 978-1118230725
10th Extended edition
Authors: Jearl Walker, Halliday Resnick
Posted Date:
Students also viewed these accounting questions
-
The mean number of text messages sent per month by customers of a cell phone service provider is 1,650, and the standard deviation is 750. Find the z- score associated with each of the following...
-
Cost per equivalent unit The cost of direct materials transferred into the Rolling Department of Kraus Company is $2,827,500. The conversion cost for the period in the Rolling Department is $94,500....
-
The amount of monthly rainfall varies from month to month and from city to city. Applied Example12. .5 on page 589 suggests that the average monthly rainfall is affected by both the month and the...
-
1. Review the six (6) goals of performance based acquisition(s); choose two and discuss how your choices can be implemented for effective management of contracts, using an actual or theoretical...
-
Describe and contrast the economic, cultural, and technological changes occurring in the digital world.
-
Consider the situation in Problem 65 from the reference frame in which the source is at rest. In this frame, the listener moves toward the source with a speed of 80 m/s, and there is a wind blowing...
-
Port Oil Corporation uses the successful efforts method. Recently, the company acquired a truck costing $60,000 with an estimated life of five years (ignore salvage value). The foreman drives the...
-
The following transactions of Happy Music Company occurred during 2012 and 2013: Requirement 1. Record the transactions in Happy Music Companys journal. Explanations are notrequired. 2012 Purchased a...
-
(1 point) Let F = (4xyz +2 sin x, 2xz, 2xy). Find a function f so that F = Vf, and f(0, 0, 0) = 0.
-
Angus Walker, CFA, is reviewing the defined benefit pension plan of Acme Industries. Based in London, Acme has operations in North America, Japan, and several European countries. Next month, the...
-
An annuity pays $46 per year for 26 years. What is the future value (FV) of this annuity at the end of those 26 years, given that the discount rate is 5%
-
When making hiring decisions, employers look at the total picture of what a candidate can bring to their organization. That composite includes a compilation of their skills, characteristics, and...
-
Hello, I need some help figuring out how to record these journal entries for this accounting problem. Thank you! The following are selected 2025 transactions of Sunland Corporation. Sept. 1 Purchased...
-
A bond has a $1,000 face value (FV = $1,000) and a 14 percent couponor legal interest rate and it pays interest annually.The bond will mature in 2030 and thebondholder will receive his/her coupon...
-
Integrative Problem The International Financial Environment Mesa Co. specializes in the production of small fancy picture frames, which are exported from the United States to the United Kingdom. Mesa...
-
Doggle Inc. is considering a 12-year project that generates $6,000 per year. It can either purchase the equipment for $28,500 or lease it from Loggle for $3,250 per year (paid at the beginning of...
-
QUESTION 2 The following are standard data relating to Mohamad Ali Bhd. which makes boxing gloves: Material: Frazier Norton Foreman Labour cost at RM9 per hour Allowance 4kg 0.5kg 2 RM per glove 6...
-
(a) Use integration by parts to show that (b) If f and g are inverse functions and f' is continuous, prove that (c) In the case where f and t are positive functions and b > a > 0, draw a diagram to...
-
A magnetic field is applied to a freely floating uniform iron sphere with radius R = 2.00mm. The sphere initially had no net magnetic moment, but the field aligns 12% of the magnetic moments of the...
-
In one year the United States consumption of electrical energy was about 2.2x1012 kWh. (a) How much mass is equivalent to the consumed energy in that year? (b) Does it make any difference to your...
-
Verify the values reported in Eqs. 43-13, 43-14, and 43-15. The needed masses are He 4.002 603 u 2H 2.014 102 u 1.008 665 u H 1.007 825 H 3.016 049 u
-
Visit a local supermarket and make a list of ten products manufactured outside your country.
-
What kinds of foreign exchange risk would a U.S. company face that is exporting goods to Mexico? What kinds of things would you monitor to determine what will happen to the value of the Mexican peso?
-
Extract the annual report of a Fortune Global 500 company from a country different from your home country; use the site www.glgc.com/g600.html, or...
Study smarter with the SolutionInn App