Prelude to Programming
Prelude to Programming
6th Edition
ISBN: 9780133750423
Author: VENIT, Stewart
Publisher: Pearson Education
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 1, Problem 39RE

Write a series of statements that does the following:

Step 1 Inputs the price of an item, in dollars, from the user (including a suitable prompt).

Step 2 Divides the number entered in Step 1 by 1.62.

Step 3 Displays the message“That’s onlyâ€�, followed by the number computed in Step 2, followed by the message“in British pounds.â€�

Blurred answer
Students have asked these similar questions
A software company sells a package that retails for $109. Quantity discounts are givenaccording to the following table. Write a program using the if/else if/else statement that asks for the number of units soldand computes the total cost of the purchase and the savings due to the discountapplied. The program should also display the number of units purchased and thediscount in percentage. The output should include the following text:Number of units purchased is:Discount applied is:Total savings due to discount is:The total cost of the purchase is:Do NOT use the switch statement, any logical operator or anything that looks likeone in the program. You will not receive credit for the program if you do. SeeProgram 4-9 on page 183 of your textbook for help.
4. A software company sells game cartridges for $99. Quantity discounts are given according to the following: 10 - 19 20% discount 20 49 O 30% discount 50 – 99 O 40% discount 100 + O 50% discount Write a program that asks the user how many games they purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount is applied. Don't forget to add HST. 5. Earlier we wrote a BMI calculator. Enhance the program so that it displays a message indicating whether the person has optimal weight (BMI between 18.5 and 24.9), is underweight (BMI is less than 18.5), is overweight (BMI between 25 and 29.9), or is obese (BMI 30 or higher).
Translate the statement into equation: When three is multiplied by one less than a number x, the result is 10 less than 5 times the number x.

Chapter 1 Solutions

Prelude to Programming

Ch. 1 - A floating point variable requires __________...Ch. 1 - Roughly speaking, a(n) _____ is any symbol that...Ch. 1 - Prob. 13RECh. 1 - Prob. 14RECh. 1 - Prob. 15RECh. 1 - Prob. 16RECh. 1 - Prob. 17RECh. 1 - Prob. 18RECh. 1 - Prob. 19RECh. 1 - Prob. 20RECh. 1 - Prob. 21RECh. 1 - Prob. 22RECh. 1 - Prob. 23RECh. 1 - Prob. 24RECh. 1 - A rational number is any number that can be...Ch. 1 - T A number stored as an integer takes up less...Ch. 1 - If the value of the variable MyAge is 3, then the...Ch. 1 - Prob. 28RECh. 1 - Prob. 29RECh. 1 - Suppose X=3 and Y=4. If all parentheses were...Ch. 1 - Suppose X=14. Give the value of each of the...Ch. 1 - Suppose X=12,Y=6, and Z=5. Give the value of each...Ch. 1 - What is the difference between the following two...Ch. 1 - Given that the variable named Boy =Joey� and the...Ch. 1 - Prob. 35RECh. 1 - Write a pair of statements that prompts for and...Ch. 1 - Write a pair of statements that prompts for and...Ch. 1 - Write a series of statements that does the...Ch. 1 - Write a series of statements that does the...Ch. 1 - Suppose that Number1=15 and Number2=12 are both of...Ch. 1 - If Name1=Marcy,Text1=isnow,Text2=yearsold., and...Ch. 1 - It Character1 and Character2 are single...Ch. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Prob. 49RECh. 1 - Exercises 43-50 refer to the following program:...Ch. 1 - Write a list of instructions (like those that...Ch. 1 - In Programming Challenges 2-6, write a program...Ch. 1 - In Programming Challenges 2-6, write a program...Ch. 1 - In Programming Challenges 2-6, write a program...Ch. 1 - In Programming Challenges 2-6, write a program...Ch. 1 - In Programming Challenges 2-6, write a program...

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
The ________ function returns the value of a string converted to a float.

Starting Out with C++ from Control Structures to Objects (9th Edition)

Write an iterative version (using a loop instead of recursion) of the factorial method shown in this chapter.

Starting Out with Java: From Control Structures through Objects (7th Edition) (What's New in Computer Science)

What are the advantages and disadvantages of implicit declarations?

Concepts of Programming Languages (11th Edition)

Knowledge Booster
Background pattern image
Computer Science
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Introduction to Operators in C; Author: Neso Academy;https://www.youtube.com/watch?v=50Pb27JoUrw;License: Standard YouTube License, CC-BY