Programming Logic & Design Comprehensive
9th Edition
ISBN: 9781337669405
Author: FARRELL
Publisher: Cengage
expand_more
expand_more
format_list_bulleted
Question
error_outline
This textbook solution is under construction.
Students have asked these similar questions
Write pseudocode to represent the logic of a program that allows the user to enter values for the current year and the user's birth year. The program calculates the age of the user this year. The program outputs the age.
Create a flowchart using Flowgorithm and Pseudocode for the following program example:
You are to design a program for Alexander's Coffee Shop providing customer research data. When a customer places an order, the clerk asks the customer for their zip code and age. The clerk enters this data as well as the number of items purchased. The program should operate continuously until the clerk enters a 0 for the zip code at the end of the day. If the clerk enters an invalid age (defined as less than 10 or more than 100), an error message is displayed and the program re-prompts the clerk continuously to enter a valid age. At the end of the program, display the average customer age and the total number of items purchased.
Write the Flowchart for the following programming problem based on the pseudocode below.
Write a program that will allow a student to enter their name and then ask them to solve 10 mathematical equations. The program should display two random numbers that are to be added, such as:
247
+ 129
The program should allow the student to enter the answer. The program should then display whether the answer was right or wrong, and accumulate the correct values. After the 10 questions are asked, calculate the average correct. Then display the student name, the number correct, and the average correct in both decimal and percentage format.
In addition to any system functions you may use, you might consider the following functions:
A function that allows the student to enter their name.
A function that gets two random numbers, anywhere from 1 to 500.
A function that displays the equation and asks the user to enter their answer.
A function that checks to see if the answer is right and…
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
- Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter a value for hours worked in a day. The program calculates the hours worked in a five-day week and the hours worked in a 252-day work year. The program outputs all the results.arrow_forwardDesign a flowchart for the following program: Write a "guessing game" program that generates a random integer between 1 and 10000, inclusive. The program should prompt the user to enter a guess. For each guess, the program will output ‘HIGHER’ if the user's guess is lower than the target, ‘LOWER’ if the user's guess is higher than the target, or ‘WINNER’ if the user guesses the target. Each time the program prompts the user for a new guess, it should calculate and display the eligible range of values.arrow_forwardDraw a flowchart to solve the problemarrow_forward
- Design a flowchart and write a pseudocode to compute pay for employees. The program asks the user to enter the employee’s names until a sentinel value is entered. The program also asks for the employee’s hourly rate and hours worked to compute and display the corresponding gross pay. Use the table below to compute net pay and the withholding tax amount.Weekly Gross Pay ($) Withholding Rate (%)0.00 – 400.00 10400.01 – 600.00 12600.01 – 800.00 14800.01 and more 17After the last employee has been entered, display the sum of all the hours worked, the total gross payroll, the total withholding for all employees, and the net payrollarrow_forwardPEN AND PAPER FLOWCHART. Hand write the correct pseudocode using pen and paper. // This pseudocode is intended to determine whether students have// passed or failed a course; student needs to average 60 or// more on two tests.start Declarations num firstTest num secondTest num average num PASSING = 60 while firstTest not equal to 0 output "Enter first score or 0 to quit " input firstTest output "Enter second score" input secondTest average = (firstTest + secondTest) / 2 ouput "Average is ", average if average >= PASSING then output "Pass" else output "Fail" endif endwhilestoparrow_forwardDraw a flowchart and also write pseudocode to represent the logic of a program that allows the user to enter a value for hours worked in a day. The program calculates the hours worked in a five-day week and the hours worked in a 252-day work year. The program outputs all the results.arrow_forward
- Debugging: Find the error if there is and rewrite, make a pseudocode and flowchart.arrow_forwardA: Design the logic for a program that allows a user to enter 12 numbers, then displays them in the reverse order of entry.B: Modify the program so that the user can enter any amount of numbers up to 12 until a sentinel value is entered.Show results as flowcharts and pseudocode.arrow_forwardDesign a flowchart and also pseudocode for a program that accepts two numbers from a user, and then displays one of the following messages depending on a comparison between the two numbers: First is smaller; Second is smaller; Numbers are equal.arrow_forward
- Produce a flowchart for Q1(b)arrow_forwardCreate a pseudocode flowchart for a program that will ask the user to to enter three integers and prints the sum, average, and product of these numbers.arrow_forwardvoting.py Write a Python program that takes as input the user age. if the person's age is less than 18 the program should display "You are too young to vote" Otherwise the program should proceed by asking if the person did register to vote or not. If No the program should display:" You need to register before you can vote" if Yes the program should display: " You can vote"arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- 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 LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTMicrosoft Visual C#Computer ScienceISBN:9781337102100Author: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
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Structured Chart; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=vdUO-sGA1DA;License: Standard YouTube License, CC-BY
Introduction to Structure Charts; Author: Christopher Kalodikis;https://www.youtube.com/watch?v=QN2bjNplGlQ;License: Standard Youtube License