Question
Include a string variable, name. Modify this C++ program to ask the user for the name of the item. Display the name of the item
Include a string variable, name. Modify this C++ program to ask the user for the name of the item. Display the name of the item along with the total price. Set the precision for the price back to two decimal places.
#include
using namespace std; int main() { //declare variables int quantity; // contains the amount of items purchased double itemPrice; // contains the price of each item double totalBill; // contains the total bill //prompt for number of items // formatted output cout<
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started