PROGRAMMING LOGIC AND DESIGN, COMPREHEN
9th Edition
ISBN: 9781337576239
Author: FARRELL
Publisher: Cengage
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
error_outline
This textbook solution is under construction.
Students have asked these similar questions
The Café Noir Coffee Shop wants some market research on its customers. When a customer places an order, a clerk asks for the customer’s zip code and age. The clerk enters that data as well as the number of items the customer orders. The program operates continuously until the clerk enters a 0 for zip code at the end of the day. When the clerk enters an invalid zip code (more than 5 digits) or an invalid age (defined as less than 10 or more than 110), the program reprompts the clerk continuously. When the clerk enters fewer than 1 or more than 12 items, the program reprompts the clerk two more times. If the clerk enters a high value on the third attempt, the program accepts the high value, but if the clerk enters a negative value onthe third attempt, an error message is displayed and the order is not counted. At the end of the program, display a count of the number of items ordered by customers from the same zip code as the coffee shop (54984), and a count from other zip codes. Also…
computer programming (C) language
Solve in c programming language.
This is one question comprising 2 pictures.
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
- (Statistical) In many statistical analysis programs, data values considerably outside the range of the majority of values are simply dropped from consideration. Using this information, write a C++ program that accepts up to 10 floating-point values from a user and determines and displays the average and standard deviation of the input values. All values more than four standard deviations away from the computed average are to be displayed and dropped from any further calculation, and a new average and standard deviation should be computed and displayed.arrow_forward(Statistics) This is the formula for the standard normal deviate, z, used in statistical applications: z=(X)/ X is a single value. refers to an average value. refers to a standard deviation. Using this formula, you need to write a program that calculates and displays the value of the standard normal deviate when X=85.3,=80,and=4. a. For this programming problem, how many outputs are required? b. How many inputs does this problem have? c. Determine a formula for converting input items into output items. d. Test the formula written for Exercise 7c, using the data given in the problem.arrow_forwardDesign a program that asks the user for a series of names (in no particular order). After the final person’s name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb. This is to be done in Python.arrow_forward
- Hello, I was wondering if I could get help with this. The language I am using is Pythonarrow_forwardSolve it using c++ visual studio 2022 please. Thank youarrow_forwardWrite a C# program to check whether the given number is armstrong number or not. Armstrong Number in C#: A positive number is called armstrong number if it is equal to the sum of cubes of its digits for example 0, 1, 153, 370, 371, 407 etc.arrow_forward
- C level program 1. Write a program that takes an integer n as input (from Keyboard) and compute and display (a) The sum of digits. (b) The integer with digits reversed, and multiplied by 3. For example, if the input is 4318, then in part (a), you'll display integer 4318, and sum of digits 4 + 3 + 1 + 8 = 16; and in part (b), you'll compute and display 8134 and also 24402, which is 4318 * 3. (c) Test your program with 3 integers: 4318, 401, and an integer of 5 digits of your choice. Show and explain source code and show outputarrow_forwardDesign a program (flowgorithm chart with C++ visual studio) that lets the user play the game Rock, Paper, Scissors against the computer. The program should work as follows: When the program begins, a random number in the range of 1 through 3 is generated. If the number is 1, then the computer has chosen rock. If the number is 2, then the computer has chosen paper. If the number is 3, then the computer has chosen scissors. Don't display the computer's choice yet.) The user enters his or her choice of "rock," "paper," or "scissors" at the keyboard. The computer's choice is then displayed. The program should display a message indicating whether the user or the computer was the winner. A winner is selected according to the following rules: If one player chooses rock and the other player chooses scissors, then the rock wins. (The rock smashes the scissors.) If one player chooses scissors and the other player chooses paper, then scissors wins.(Scissors cut paper.) If one player chooses…arrow_forwardC Program to design an application for the clerks to help them with the amount of money theyneed to pay back to the customers as their change. Your program needs to have two numbers as the inputs, the first one is the cost of the purchaseand the second one is the amount of money the customer pays. The available coins are 1 dollar, 25 cents, 10 cents, 5 cents, and 1 cent. The output of your program is how many of each of these coins must be paid back to thecustomer.You needto write a program in C programming language.arrow_forward
- Write a program in Visual Basic language that finds the smallest number out of four numbers, as follows The four numbers are entered using the Input box function. When the program is run directly, the Input box with the message Input () in first and the address (. F irst no) appears, and when the user finishes entering the first number, it appears successively. A second input box with the same message and address, but replaces the word first with the word Second, and so on with the next two boxesarrow_forwardpython programming.arrow_forwardCreate a flow chart. The last guy who answered this only debugged it. He didn't make a flow chartarrow_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 PtrProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Computational Software for Intelligent System Design; Author: Cadence Design Systems;https://www.youtube.com/watch?v=dLXZ6bM--j0;License: Standard Youtube License