Question: C++ ONLY code: #include // FIXME include vector library using namespace std; int main() { /* Type your code here. */ return 0; } problem:
C++ ONLY
code:
#include
// FIXME include vector library
using namespace std;
int main() {
/* Type your code here. */
return 0;
}
problem:
You are coaching teams for the Americas Got Talented Bakers program. You will write a C++ program to help you rank your team of bakers during practices to make sure that the team is well rounded.
(1) Ask the user to enter five pairs of integers: A baker's apron number (0 - 99) and the baker's ranking (1 - 9). Store the apron numbers in one int vector and the ranking in another int vector. Display these vectors (i.e., output the roster of team member numbers).
Ex:
```
Enter baker 1's apron number:
```
```
84
```
```
Enter baker 1's ranking:
```
```
7
```
```
Enter baker 2's apron number:
```
```
23
```
```
Enter baker 2's ranking:
```
```
4
```
```
Enter baker 3's apron number:
```
```
4
```
```
Enter baker 3's ranking:
```
```
5
```
```
Enter baker 4's apron number:
```
```
30
```
```
Enter baker 4's ranking:
```
```
2
```
```
Enter baker 5's apron number:
```
```
66
```
```
Enter baker 5's ranking:
```
```
9
```
```
ROSTER
```
```
Baker 1 -- Apron number: 84, Ranking: 7
```
```
Baker 2 -- Apron number: 23, Ranking: 4
```
```
...
```
(2) Implement a menu of options for a user to modify the roster. Each option is represented by a single character. The program initially outputs the menu, and outputs the menu after a user chooses an option. The program ends when the user chooses the option to Quit. For this step, the other options do nothing.
Ex:
```
MENU
```
```
a - Add baker
```
```
d - Remove baker
```
```
u - Update baker ranking
```
```
r - Output bakers above a ranking
```
```
o - Output roster
```
```
q - Quit
```
```
Choose an option:
```
(3) Implement the "Output roster" menu option.
Ex:
```
ROSTER
```
```
Baker 1 -- Apron number: 84, Ranking: 7
```
```
Baker 2 -- Apron number: 23, Ranking: 4
```
```
...
```
(4) Implement the "Add baker" menu option. Prompt the user for a new baker's apron number and ranking. Append the values to the two vectors.
Ex:
```
Enter a new baker's apron number:
```
```
49
```
```
Enter the baker's ranking:
```
```
8
```
(5) Implement the "Delete baker" menu option. Prompt the user for a baker's apron number. Remove the baker from the roster (delete the apron number and ranking).
Ex:
```
Enter a apron number:
```
```
4
```
(6) Implement the "Update baker ranking" menu option. Prompt the user for a baker's apron number. Prompt again for a new ranking for the baker, and then change that baker's ranking.
Ex:
```
Enter a apron number:
```
```
23
```
```
Enter a new ranking for baker:
```
```
6
```
(7) Implement the "Output bakers above a ranking" menu option. Prompt the user for a ranking. Print the apron number and ranking for all bakers with rankings above the entered value.
Ex:
```
Enter a ranking:
```
```
5
```
```
ABOVE 5
```
```
Baker 1 -- Apron number: 84, Ranking: 7
```
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
