Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please help i need the inputs.. output ..pseudocode...flowchart....deskcheck and

ID: 3693642 • Letter: P

Question

please help i need the inputs.. output ..pseudocode...flowchart....deskcheck and the c++ code as a .cpp file

Design a program for a store to add up their daily sales . The store has several locations within Virginia and North Carolina . The program will loop so that the user can enter as many entries as needed. For each entry, the user will enter the state and the sales amount. If the sales took place in Virginia, the program will add a 5.3% sales tax to the sales amount. If the sales took place in North Carolina, the program will add a 4.75% sales tax. Note that the sales tax for each state has been given to you and should not be entered by the user. It also can easily change.

The program should be designed so that the sales tax is built into the system and can be changed easily by changing a simple value. The program will allow for the user to enter as many inputs as they would like. It should specify to the user how to end the program with a simple value.

When the user is finished entering the sales amounts, the program will list:

• The total for each store incorporating the sales amount and sales tax

• The total sales including tax for all the stores

• The total sales including tax in each state i need inputs.. output ..pseudocode...flowchart....deskcheck and the c++ code as a .cpp file

Explanation / Answer

#include<iostream>
#include<stdlib>
#include<string>

using namespace std;

void main()
{
   string state[100];
   double sale[100],tax[100];
   int i=0,j,tot=0,tot1=0,tot2=0;

   while(1)
   {
       cout<<"Enter state ";
       cin>>state[i];
      
       if(strcmp(state[i],"no")==0)
           break;

       cout<<"Enter sale ";
       cin>>sale[i];
      
       if(strcmp(state[i],"Virginia")==0)
           tax[i]=sale[i]*5.3/100;

       if(strcmp(state[i],"North Carolina")==0)
           tax[i]=sale[i]*4.75/100;

      
       i++;
      
   }

   for(j=0;j<=i;j++)
   {
       tot=tot+sale[i]+tax[i];
       if(strcmp(state[i],"Virginia")==0)
           tot1=tot1+sale[i]+tax[i];

       if(strcmp(state[i],"North Carolina")==0)
           tot2=tot2+sale[i]+tax[i];

      
   }

   cout<<"The total sales including tax ="<<tot<<endl;
   cout<<"The total sales including tax for Virginia="<<tot1;
   cout<<"The total sales including tax for North Carolina="<<tot2;

   system("pause");

}