Question: need help with 2 minor fixes on my coding. please help me by answering both! ASAP! I've included the instructions as well as the outputs

need help with 2 minor fixes on my coding. please help me by answering both! ASAP! I've included the instructions as well as the outputs of my code and what exactly it's messing up on! please and thank you for all of your help!

need help with 2 minor fixes on my coding. please help me

by answering both! ASAP! I've included the instructions as well as the

outputs of my code and what exactly it's messing up on! please

and thank you for all of your help! HASIRI 7 #include 8

#include 9 1e using namespace std; 11 12 int main() 13 {

HASIRI 7 #include 8 #include 9 1e using namespace std; 11 12 int main() 13 { 14 ifstream inputFile; 15 int number; 16 inputFile.open("Sales.txt 17 18 Vif file exists then execute if statement 19 if(inputFile) 2e { 21 int count es 22 float sum = 0 23 1/while there exists values in the file 24 Istore them in number vaniable after reading each line 25 while(inputFile >> number) 26 { 27 //take sum of the numbers read from the file 28 sum - sum + number: 29 //increment count variable 30 count++; 31 32 cout 5 #include 6 using namespace std; 7 int main() 8 { 9 int num of emp: 10 / cout>num_of emp; 13 int n = num of emp: 14 Wumber of hours of each employee 15 int hours [n]; 16 17 for(int i = 0; i>hours[i]; 2e } //taking input using for loop 21 for(int i = 1; ik n+1; i++) 22 { 23 cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!