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...
-
A 13.8-g piece of zinc is heated to 98.8C in boiling water and then dropped into a beaker containing 45.0 g of water at 25.0C. When the water and metal come to thermal equilibrium, the temperature is...
-
Visit www.pearsonglobaleditions.com/malhotra to read the video case and view the accompanying video. Marriott: Marketing Research Leads to Expanded Offerings highlights Marriotts success in using...
-
Ehrlich Co. began business on January 2, 2015. Salaries were paid to employees on the last day of each month, and social security tax, Medicare tax, and federal income tax were withheld in the...
-
Zen Aerospace Corporation reported the following equity account balances on December 3 1 , 2 0 2 2 : Preferred shares, $ 3 . 6 0 cumulative, unlimited shares authorized $ 0 Common shares, unlimited...
-
Assume that the network in Figure 20.34 (previous problem) uses distancevector routing with the forwarding table as shown for each node. If each node periodically announces their vectors to the...
-
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...
-
Classify each of the following hydrides as saline, molecular or metallic: (a) LiH, (b) SiH 4 , (c) B 2 H 6 , (d) UH 3 , (e) PdH x (x < 1).
-
The sale prices for homes in a certain city are as follows: Find the mean, the median, and the mode. Which measure seems to best describe the home price? Location 415 First Street 957 Locust Street...
-
Identify each distribution in Problems 31-34 as skewed to the right, symmetric, or skewed to the left. If it is also a normal distribution, so state. a. b. 600 450 300 150 0 600 450 300 150 0 Mode 0...
-
Using Figure 14.14 (Problem 8), what was the approximate balance of trade with Mexico in 2010? Data from Problem 8 Consider the graph shown in Figure 14.14. Data from Figure 14. 14 a. What is being...
-
The adjusting entry for prepaid expenses should a. debit the expenses account and credit the asset account. b. debit the expenses account and credit the liability account. c. debit the asset account...
-
Find the mean, the median, and the mode of the following salaries of employees of the Moe D. Lawn Landscaping Company: Salary $25,000 28,000 30,000 45,000 Frequency 4 3 2 1
-
St. Charles Antique Market reported a net loss of $6,000 for the year ended December 31, 2012. The following items were included on St. Charles Antique Market's balance sheets at December 31, 2012...
-
Evaluate the line integral, where C is the given curve. C x 2 dx + y 2 dy, C consists of the arc of the circle x 2 + y 2 = 4 from (2, 0) to (0, 2) followed by the line segment from (0, 2) to (4, 3)
-
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...
-
Give an example of one piece of financial information that may be used differently for two stakeholders (users) and explain how it would be used and presented differently?
-
Complete common -size statements (balance sheets) using the data below on page 246. You will be required to create a spreadsheet in MS Excel to display the statements (balance sheets).? In a 1 to 2...
-
A sail boat in the Great South Bay travels 2 miles east and then 4 miles south to get to Fire Island. What is its distance and displacement?
Study smarter with the SolutionInn App