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 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.
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
- 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…arrow_forwardResearch current rates of monetary exchange. Write pseudocode to represent the logic of a program that allows the user to enter a number of dollars and convert it to Euros and Japanese yenarrow_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_forward
- 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 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_forward
- A: 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_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_forwardDesign the logic for a program that allows a user to enter 10 numbers, stores the numbers in an array, then displays all of the numbers, the largest number, and the smallest. For this homework assignment you need to: create a solution algorithm using pseudocode create a flowchart using RAPTORarrow_forward
- voting.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_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_forwardQuestion Write the pseudocode for a program that will process attendance records of CA students. The students attend college five days a week. Input values are the student's name, number, and the time in and time out for each day of the week (i.e. five different times in and times out must be input). If a student attends college more than 36 hours in a week, a congratulatory message is printed. If a student attends college less than 30 hours in a week, a warning message is printed. The output for each student is the name, hours, and the appropriate attendance message. Processing continues until a student number of zero is input. Assume that students always check in and out on the hour. Therefore, timeln and timeOut will be integer variables (i.e. they represent whole hours, and minutes are ignored).arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
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