The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
CIT 1113 Project 1 (25 points)
Â
Mathis Bros. furniture store gets desk lamps and coffee tables from your company. Each desk lamp costs $65 and each coffee table costs $155. Write a flow chart, pseudo code, and Python source code for a program, which Mathis Bros. can run on your website to compute what their invoice total will be when they order a certain number of lamps and coffee tables from your company. (Use constant variables where appropriate)
The program will prompt Mathis Bros. buying clerk to first enter the number of desk lamps they wish to purchase and then ask them the number of coffee tables they would buy. Then the program would compute the cost of their purchase and print that to console. [This problem is an extension of the problem of multiplying two numbers, except here you would need to do two separate multiplications and add the numbers resulted from them].
The test runs from my program are shown below:
Test Run # 1
The desk lamps are $65 per unit. Coffee tables are $155 per unit. Enter number of desk lamps you wish to buy?
2
Enter number of coffee tables you wish to buy? 3
The cost of merchandise you bought is $595.0 Thanks for using our website.
Test Run #2
The desk lamps are $65 per unit. Coffee tables are $155 per unit. Enter number of desk lamps you wish to buy?
5
Enter number of coffee tables you wish to buy? 6
The cost of merchandise you bought is $1255.0 Thanks for using our website.
Â
Write PseudoCode, Flowchart, and Python Program