Question: Can you help me with my c++ code for this assignment? Here are my issues: My code does not loop back to the beginning menu

Can you help me with my c++ code for this assignment? Here are my issues: My code does not loop back to the beginning menu when entered a selection, it loops back to the enter data file name menu. My code also does not output all the datasets from files, only one of them. Here is my code and my issues: ---------------------------------------------------

Can you help me with my c++ code for this assignment? Hereare my issues: My code does not loop back to the beginningmenu when entered a selection, it loops back to the enter datafile name menu. My code also does not output all the datasetsfrom files, only one of them. Here is my code and myissues: --------------------------------------------------- ----------------------------------------------------- How it should be: Can anyone please help fixmy code? 9 10 11 #include #include #include #include using namespace std;12 13 14 int main() 15 16 17 18 const double CRATE_FEE_SMALL

----------------------------------------------------- How it should be:

= 2.5; const double CRATE_FEE_MEDIUM = 3; const double CRATE_FEE_LARGE = 3.5;19 20 21 22 23 const double STORAGE_ROOM_FEE_SMALL = 0.12; const double

Can anyone please help fix my code?

9 10 11 #include #include #include #include using namespace std; 12 13 14 int main() 15 16 17 18 const double CRATE_FEE_SMALL = 2.5; const double CRATE_FEE_MEDIUM = 3; const double CRATE_FEE_LARGE = 3.5; 19 20 21 22 23 const double STORAGE_ROOM_FEE_SMALL = 0.12; const double STORAGE_ROOM_FEE_MEDIUM = 0.09; const double STORAGE_ROOM_FEE_LARGE = 0.07; const double STORAGE_ROOM_FEE_EXTRA_LARGE = 0.05; 24 25 26 27 while(true) { char userSelection = 28 29 30 31 32 33 cout > userSelection; == == 'D' || userSelection 'd') 42 43 if (userSelection { ifstream fin; string filename; 44 45 46 47 while (!fin.is_open()) { cout > filename; 48 49 50 51 52 53 54 fin.open(filename); 55 56 57 58 if (!fin.is_open()) { cout > filename; 84 85 86 fin.open(filename); 87 88 89 90 91 92 if (!fin.is_open()) { D cout > crateLength >> crateWidth >> crateHeight >> storageLength >> storageWidth >> storageHeight; - if (crateLength 5) { fout 5) { fout crateLength 5) { fout 100) { - else if (storageLength 100) { fout crateLength 100) - fout crateLength 100) { fout

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!