- 1 Request Three Items And Their Individual Costs From The User Console Print A Shopping Cart In Columns For The Input 1 (37.5 KiB) Viewed 30 times
1. Request three items and their individual costs from the user console. Print a shopping cart in columns for the input
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. Request three items and their individual costs from the user console. Print a shopping cart in columns for the input
1. Request three items and their individual costs from the user console. Print a shopping cart in columns for the input items and their costs using the setw command. Your program must look exactly like the example output below assuming that the console input is identical. Example Output (console input is italicized) Input first name and cost: Piazza 2.35 Input second name and cost: Coke 1.25 Input third name and cost: Taco 1.15 Shopping Cart * Item Cost Piazza $2.35 Coke $1.25 Taco $1.15 #