Question: Create a flowchart based on this code: #include struct Sale{ int salesPersonId; int productId; float cost; }; int main(){ //A 2D array that holds totals
Create a flowchart based on this code:
#include
struct Sale{ int salesPersonId; int productId; float cost; };
int main(){ //A 2D array that holds totals float sales[5][4]; int i,j,n; float productsTotal[5] = { 0,0,0,0,0},totalSalesByPerson[4] = {0,0,0,0}; struct Sale sale; //Initialize the array with 0s for(i = 0;i<5;i++) for(j = 0;j<4;j++) sales[i][j] = 0.0; /* //Please uncomment this part to read data from user printf("Enter number of sales records: "); scanf("%d",&n); for(i = 0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
