Starting Out with Programming Logic and Design (4th Edition)
4th Edition
ISBN: 9780133985078
Author: Tony Gaddis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 8, Problem 9AW
Write a pseudocode
Constant Integer SIZE = 10
Declare Integer values[SIZE] = 1 , 2, 3, 4, 5, 6, 7, 8, 9, 10
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Number Analysis Program (FYI: Pseudocode not any specific programming language.)
Write a pseudocode algorithm that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data:
The lowest number in the array
The highest number in the array
The total of the numbers in the array
The average of the numbers in the array
Lottery Number Generator Problem
Use pseudocode to design a program that generates a 7-digit lottery number.
This program should have an integer array with 7 elements.
Then Write a loop that steps through the array, randomly generating a number in the range of 0 through 9 for each element.
Finally, write another loop that displays the contents of the array.
pseudo code in problem solving and logic and flowchartTotal Sales (Arrays) Design a program that asks the user to enter a store’s sales for each day of the week (for one week). The amounts should be stored in an array. Use a loop to calculate the total sales for the week and display the result. Guideline: Rename the variables with your student number (e.g., amount_697) Use an array to solve the above problem Add comments with your name/student number Comment your code
Chapter 8 Solutions
Starting Out with Programming Logic and Design (4th Edition)
Ch. 8.1 - Prob. 8.1CPCh. 8.1 - Prob. 8.2CPCh. 8.1 - Prob. 8.3CPCh. 8.1 - Prob. 8.4CPCh. 8.1 - Prob. 8.5CPCh. 8.1 - Prob. 8.6CPCh. 8.1 - Prob. 8.7CPCh. 8.1 - What does array bounds checking mean?Ch. 8.1 - Prob. 8.9CPCh. 8.2 - Prob. 8.10CP
Ch. 8.2 - Prob. 8.11CPCh. 8.2 - What does the loop do in the sequential search...Ch. 8.2 - Prob. 8.13CPCh. 8.2 - How do you look for a partial string match when...Ch. 8.3 - Prob. 8.15CPCh. 8.3 - Prob. 8.16CPCh. 8.3 - Describe the algorithm for finding the highest...Ch. 8.3 - Prob. 8.18CPCh. 8.3 - Prob. 8.19CPCh. 8.4 - Prob. 8.20CPCh. 8.4 - Prob. 8.21CPCh. 8.5 - Prob. 8.22CPCh. 8.5 - Write a pseudocode statement that assigns the...Ch. 8.5 - Prob. 8.24CPCh. 8.5 - Prob. 8.25CPCh. 8.6 - Prob. 8.26CPCh. 8 - Prob. 1MCCh. 8 - Prob. 2MCCh. 8 - This is an individual storage location in an...Ch. 8 - Prob. 4MCCh. 8 - Prob. 5MCCh. 8 - Prob. 6MCCh. 8 - Prob. 7MCCh. 8 - Prob. 8MCCh. 8 - Prob. 9MCCh. 8 - Prob. 10MCCh. 8 - Prob. 1TFCh. 8 - Prob. 2TFCh. 8 - Prob. 3TFCh. 8 - Prob. 4TFCh. 8 - Prob. 5TFCh. 8 - Prob. 1SACh. 8 - Prob. 2SACh. 8 - Look at the following pseudocode: Constant Integer...Ch. 8 - Prob. 4SACh. 8 - Prob. 5SACh. 8 - Prob. 1AWCh. 8 - Prob. 2AWCh. 8 - Prob. 3AWCh. 8 - Prob. 4AWCh. 8 - Prob. 5AWCh. 8 - Prob. 6AWCh. 8 - Assume the following declarations appear in a...Ch. 8 - Design an algorithm for a function that accepts an...Ch. 8 - Write a pseudocode algorithm that uses the For...Ch. 8 - Prob. 1DECh. 8 - Prob. 2DECh. 8 - Prob. 3DECh. 8 - Total Sales Design a program that asks the user to...Ch. 8 - Lottery Number Generator Design a program that...Ch. 8 - Prob. 3PECh. 8 - Prob. 4PECh. 8 - Charge Account Validation Design a program that...Ch. 8 - Days of Each Month Design a program that displays...Ch. 8 - Payroll Design a program that uses the following...Ch. 8 - Drives License Exam The local drivers license...Ch. 8 - Saddle Points Design a program that has a...Ch. 8 - Tic-Tac-Toe Game Design a program that allows two...Ch. 8 - Lo Shu Magic Square The Lo Shu Magic Square is a...
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
Challenge exercise The for-each loop does not use an explicit integer variable to access successive elements of...
Objects First with Java: A Practical Introduction Using BlueJ (6th Edition)
The input wave forms applied to a 3-input AND gate are as indicated in Figure 3-80. Show the output waveform in...
Digital Fundamentals (11th Edition)
Consider the adage Never ask a question for which you do not want the answer. a. Is following that adage ethica...
Experiencing MIS
Run the hello, world program on your system. Experiment with leaving out parts of the program, to see what erro...
C Programming Language
Given that y=ax3+7, which of the following are correct Java statements for this equations? int y = a (x x x)...
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
Give the name of the algorithm that results from each of the following special cases: a. Local beam search with...
Artificial Intelligence: A Modern Approach
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- A structure that allows repeated execution of a block of statements is a(n) _____________. sequence selection array looparrow_forward(Electrical eng.) Write a program that specifies three one-dimensional arrays named current, resistance, and volts. Each array should be capable of holding 10 elements. Using a for loop, input values for the current and resistance arrays. The entries in the volts array should be the product of the corresponding values in the current and resistance arrays (sovolts[i]=current[i]resistance[i]). After all the data has been entered, display the following output, with the appropriate value under each column heading: CurrentResistance Voltsarrow_forwardAn array is a group of random memory locations that all have different data type Select one: True O Falsearrow_forward
- IN PSEUDOCODE AND FLOWCHART!!! Design a program that asks the user to enter a store’s sales for each day of the week. The amounts should be stored in an array. Use a loop to calculate the total sales for the week and display the result.arrow_forwardPls use python and make pseudo code and flowchartarrow_forward2. What is the error in the following pseudocode? // This program displays the highest value in the array. Declare Integer SIZE = 3 Declare Integer values [SIZE] = 1, 3, 4 Declare Integer index Declare Integer highest For index = 0 To SIZE - 1 If values[index] > highest Then Set highest = values[index] End If End For Display "The highest number is ", highestarrow_forward
- In visual basic Write a For…Next loop that will printout each value in the array from problem 4.arrow_forwardHands-On Activities Hands-On Activity 10-1 Write a pseudocode program that creates an array, prompts the user to enter five cities, and displays the array's contents. The contains five elements. Use a For loop to prompt the user to enter cities, and then use another For loop to display the contents. Save the file as cityArray.txt. arrayarrow_forwardCreate using C-Language Create a Program that asks for 10 integers (Use Arrays). Afterward, display a navigation menu and perform the following: Display the numbers Display it in reverse order Display the values of even indices (0th, 2nd, 4th, 6th, 8th, …, 2n) Display the values of odd indices (1st, 3rd, 5th, 7th, 9th,.., 2n+1) Ask for an index k, then rotate array to the right. Ask for an index k, then rotate the array to the left.arrow_forward
- Design a program that asks the user to enter a store’s sales for each day of the week. The amounts should be stored in an array. Use a loop to calculate the total sales for the week and display the result.Just the algorithm written in pseudocode.arrow_forwardDesign a program that asks the user to enter a store’s sales for each day of the week. The amounts should be stored in an array. Use a loop to calculate the total sales for the week and display the result. Just the basic algorithm written in pseudocode.arrow_forwardJava Arrays Create a java program that will use 3 lists and name is as list1, list2, and list3, having 10 elements each. The user should input 10 integer values for list1 and 10 integer values for list2. Your program should add the contents of list1 and list2 then store the sum to list3. Your program should display horizontally the values of list1, list2, and list3. Use loops.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Definition of Array; Author: Neso Academy;https://www.youtube.com/watch?v=55l-aZ7_F24;License: Standard Youtube License