#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;
}
Comments
Leave a comment