Write pseudocode that will average a list of numbers input by the user. Use the following variables:
Question:
Write pseudocode that will average a list of numbers input by the user. Use the following variables:
● Number As Integer
● Sum As Integer
● Average As Float
● Count As Integer
Also:
● Use a While loop to enter the numbers.
● Use a sentinel to test when the user wants to stop entering numbers.
● Assume the user enters valid data.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 66% (12 reviews)
Declare Number As Integer Declare Sum As Integer Declare Average As Float Decla...View the full answer
Answered By
Dinesh F
I have over 3 years of professional experience as an assignment tutor, and 1 year as a tutor trainee.
5.00+
1+ Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
The Python function mergesort recursively sorts a list of numbers U using a recursive divide-and-conquer algorithm, then returns a sorted list S. The function head returns the first element of a...
-
For a list of numbers entered by the user and terminated by 0. Write a program to find the sum of the positive numbers and the sum of the negative numbers.
-
Assume that a third grocery store, Quick Stop Groceries, enters the market share and customer loyalty situation described in Section 17.1. Quick Stop Groceries is smaller than either Murphys...
-
A politician claims that the mean salary for managers in his state is more than the national mean, $85,000. Assume the the population is normally distributed and the population standard deviation is...
-
Use a state variable model to describe the circuit of Figure E3.12. Obtain the response to an input unit step when the initial current is zero and the initial capacitor voltage is zero. FIGURE E3.12...
-
Comparative financial statements for Weller Corporation, a merchandising company, for the year ending December 31 appear below. The company did not issue any new common stock during the year. A total...
-
Name the major gaming entertainment hotels in Las Vegas.
-
The Department of Energy and the U.S. Environmental Protection Agencys 2012 Fuel Economy Guide provides fuel efficiency data for 2012 model year cars and trucks (Department of Energy website, April...
-
Based upon the assigned readings from your Business Law textbook, which of the following must be in writing pursuant to the Statute of Frauds. Select one: a. A contract to supply bottled water to a...
-
Mr. Harish Jain, CEO of Energetic Enterprises has established the firm for the manufacture and marketing of an innovative product. The firm earned a reputation for its product within two years of its...
-
Add statements to the pseudocode in Exercise 29 that find the average of N numbers, (2 * B 1), generated within the loop. Data from Exercise 29 Declare A As Integer Declare B As Integer Declare N As...
-
Draw a flowchart corresponding to the pseudocode in Exercise 35. Data from Exercise 35 Write pseudocode that will average a list of numbers input by the user. Use the following variables: Number As...
-
Capitalization of Interest and Depreciation During 2010, Mercator Company borrowed $80,000 from a local bank. In addition, Mercator used $120,000 of cash to construct a new corporate office building....
-
Working in the production area of a manufacturing company is right where William feels at home. Several of his family members had worked in similar environments throughout their careers, and he loves...
-
Use the Nernst equation and reduction potential data from (Petrucci's Appendix D; OpenStax's Table 16.1) to calculate Ecell for the following cell: Al (s) | Al3+ (0.18 M) || Fe+ (0.85 M) | Fe (s)
-
1.) Describe economic interventions that the federal government used to deal with the COVID shutdown and subsequent inflation. Would you have done anything differently? 2.) Describe three of the...
-
The goal is to understand the principles of project valuation and capital budgeting in a practical setting, using a combination of fictitious data and real-world examples. Begin by proposing a...
-
45. The use of realistic predetermined unit costs to facilitate product costing, cost control, cost flow, and inventory valuation is a description of the A. flexible budget concept. B. budgetary...
-
A car whose mass is 1600 kg (including the driver) has a maximum acceleration of 1.20 m/s 2 . When a certain passenger is also in the car, its maximum acceleration becomes 1.13 m/s 2 . The mass of...
-
Find the cross product a x b and verify that it is orthogonal to both a and b. a = (t, 1, 1/t), b = (t 2 , t 2 , 1)
-
How big is the MAC address space? The IPv4 address space? Tue IP6 address space?
-
In Section 6.3, we provided an outline of the derivation of the efficiency of slotted ALOHA. In this problem well complete the derivation. a. Recall that when there are N active nodes, the efficiency...
-
In this problem, we explore some of the properties of the CRC. For the generator G (= 1001) given in Section 6.2.3. Answer the following questions. a. Why can it detect any single bit error in data...
-
A company is evaluating a new 4-year project. The equipment necessary for the project will cost $3,300,000 and can be sold for $650,000 at the end of the project. The asset is in the 5-year MACRS...
-
You have just been hired as a new management trainee by Earrings Unlimited, a distributor of earrings to various retail outlets located in shopping malls across the country. In the past, the company...
-
I need to see where the calculations for this problem come from plz. 5. Award: 4.00 points Lucido Products markets two computer games: Claimjumper and Makeover. A contribution format income statement...
Study smarter with the SolutionInn App