# C modify the program that computes paint cost to

• Homework Help
• 21
• 96% (100) 96 out of 100 people found this document helpful

This preview shows page 13 - 19 out of 21 pages.

##### We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
The document you are viewing contains questions related to this textbook.
Chapter 1 / Exercise 16
Programming Logic and Design, Introductory
Farrell
Expert Verified
c. Modify the program that computes paint cost to allow the user to enter the number of doorways that do not have to be painted. Assume each doorway is 14 square feet. Output the number of gallons needed and the cost of the job.
##### We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
The document you are viewing contains questions related to this textbook.
Chapter 1 / Exercise 16
Programming Logic and Design, Introductory
Farrell
Expert Verified
Programming Logic and Design, 8e
9.Research current rates of monetary exchange. Draw a flowchart or 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 yen.
Programming Logic and Design, 8eSolutions 1-15(Please note that these exchange rates are valid as of the time of this writing) 10. Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter values for a salesperson’s base salary, total sales, and commission rate. The program computes and outputs the salesperson’s pay by adding the base salary to the product of the total sales and commission rate.
Programming Logic and Design, 8eSolutions 1-1611. A consignment shop accepts a product for sale and sets an initial price. Each month that the item doesn’t sell, the price is reduced by 20 percent. When the item sells, the item’s owner receives 60 percent of the sale price, and the shop gets 40 percent. Drawa flowchart or write pseudocode to represent the logic of a program that allows the user to enter an original product price. The output is the sale price, the owner’s cut, and the shop’s cut each month for the first three months the item is on sale.
Programming Logic and Design, 8eSolutions 1-1712. A mobile phone app allows a user to press a button that starts a timer that counts seconds. When the user presses the button again, the timer stops. Draw a flowchart or write pseudocode that accepts the elapsed time in seconds and displays the value in minutes and remaining seconds. For example, if the elapsed time was 130 seconds, the output would be 2 minutes and 10 seconds.
Programming Logic and Design, 8eSolutions 1-18