csci 150 fall 2020 prog lab - assignment #2

docx

School

Tuskegee University *

*We aren’t endorsed by this school

Course

150

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

1

Uploaded by AmbassadorDragonMaster972

Report
CSCI 150 I NTRODUCTION TO C OMPUTER S CIENCE Fall 2020/ Programming Lab Assignment #2 Complete problem solving steps (check plan, data analysis, initial algorithm, and refinement algorithm) for the following problems. Submit to lab#7, by October 19, 2018. 1. (Name: lab2c-1.cpp) Write a program that will convert the input number of inches into the equivalent number of miles, yards, feet, and remaining inches. Display the value in each category after the conversion with appropriate labels. 2. (Name: lab2c-2.cpp) The manager of a TU Dorm Shop Online wants you to design a web site that takes customer orders. There are three types of items sold on the website – Portable Power Bank, Bluetooth Keyboard and Stand, and Roku Streaming Player. When the customer visits the college student Dorm Shop’s website, it asks the user to enter the number of items ordered in each of the three categories. The price per item is shown in the chart below: Item Type Cost per item Portable Power Bank $38.99 Bluetooth keyboard (w/stand) $40.93 Roku Streaming Player $59.99 Next, calculate and print the total sale amount, the total number of items purchased, and what percentage of the total cost comes from Roku Streaming Player. Display the results in the format shown below: Total Number of Items Purchased: XXXX Total Sale Amount: $YYY.YY (2 decimal places) % Revenue for Roku Streaming Player: ZZ.Z% (1 decimal place)
Discover more documents: Sign up today!
Unlock a world of knowledge! Explore tailored content for a richer learning experience. Here's what you'll get:
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help