Answer to Question #230511 in C++ for Praveen

Question #230511
We need to create a billing software for a shop The program will be given below inputs
List of items available in the shop, its price and tax percentage
’ Details about the purchase made like the item purchased and the quantity of items will be provided.
Details about the cash available in the shop like number of notes/coins available in each denomination
1
Expert's answer
2021-08-29T00:58:00-0400


#include <iostream>


using namespace std;


int main()
{
    int n;
    cout<<"\nEnter number of items in the shop: ";
    cin>>n;
    int items[n];
    string name;
    double price,tax_perc;
    for(int i=0;i<n;i++){
        cout<<"\nEnter details for item "<<i+1<<"\n";
        cout<<"\nName: "; cin>>name;
        cout<<"\nPrice: "; cin>>price;
        cout<<"\nTax percentage: "; cin>>tax_perc;
    }
    
    string item_purchased;
    int quantity_provided;
    cout<<"\nEnter the name of the item purchased: ";
    cin>>item_purchased;
    cout<<"\nEnter the quantity of the item purchased: ";
    cin>>quantity_provided;
    
    
    int notes,coins;
    cout<<"\nEnter the number of notes: ";
    cin>>notes;
    cout<<"\nEnter the number of coins: ";
    cin>>coins;
    
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS