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
Draw 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.
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.
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.
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. The program multiplies the value by 10 and outputs the result.arrow_forwardPseudocode Your objective is to plan the program flow and logic for an electric coffee maker with the following features: A clock displaying the current time. To set the time, simply press the ON button twice, then read the hour and minute from the user. When ON is pressed one more time, the time is set. A pre-set time (hh-mm) to start brewing the coffee Three buttons labelled OFF, ON, and PROGRAM: When the OFF button is pressed, the machine does nothing other than display the current time. When the ON button is pressed, the machine starts brewing coffee. When the PROGRAM button is pressed, the machine waits for the pre-set time to begin brewing. An automatic sensor that detects whether all the water has been used. Once the water runs out, brewing stops. A heating sensor that keeps the coffee at a fixed temperature as long as the button is set to ON or PROGRAMarrow_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
- Use While loop to solve the problems Note: Python language for solution 3. Draw a flowchart and write a program, the program should do the following: Ask the user to enter a number between 10 and 20, if they enter a value under 10, display the message "too low" and ask them to try again, if they enter a value above 20, display the message “too high” and ask them to try again, keep repeating this until they enter a value that is between 10 and 20 and then display a message "thank you"arrow_forwardWrite the Pseudocode of the following flowchart. * Start Read a, b, c avg = (a + b + c)/3 %3D Print avg Stop Your answerarrow_forwardUse While loop to solve the problems Note: Python language for solution 1. Draw a flowchart and write a program, the program should do the following: 1.1. The program should ask the user to enter a number that is negative. if the user enters something that is positive, show a message "you should enter a number that is negative" and ask them to enter a new number. 1.3. 1.2. The program should continue asking the user to enter new numbers until they enter a number that is negative, your program should print a message when they finally get it right.arrow_forward
- Draw a flowchart and also write pseudocode to represent the logic of a program that allows the user to enter two values. The program outputs the sum of and the difference between the two values.arrow_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_forwardDebugging: Find the error if there is and rewrite, make a pseudocode and flowchart.arrow_forward
- (Thermodynamics) a. Design, write, compile, and run a program that determines the work,W, performed by a piston engine providing a force of 1000 N over a distance of 15 centimeters. The following formula is used to determine the work performed: W=Fd F is the force provided by the piston in Newtons. d is the distance the piston moves in meters. b. Manually check the values computed by your program. After verifying that your program is working correctly, modify it to determine the work performed by six pistons, each providing a force of 1500 N over a distance of 20 centimeters.arrow_forward(Mathematical functions) Write a program that calculates and displays values for y when y=xz/(xz) Your program should calculate y for values of x ranging between 1 and 5 and values of z ranging between 2 and 6. The x variable should control the outer loop and be incremented in steps of 1, and z should be incremented in steps of 1. Your program should also display the message Function Undefined when the x and z values are equal.arrow_forwardDraw a flowchart to solve the problemarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
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