structions: (Fill in the columns of the "Calculations Table") 1. Create each formula to display the total number of days each LUNCH was sold for the week 2. Create each formula to display the total sold for each LUNCH for the week 3. Create each formula to display the total sum for Total Sold lunches for the week Hint: Naming the ranges may prove useful!
Control structures
Control structures are block of statements that analyze the value of variables and determine the flow of execution based on those values. When a program is running, the CPU executes the code line by line. After sometime, the program reaches the point where it has to make a decision on whether it has to go to another part of the code or repeat execution of certain part of the code. These results affect the flow of the program's code and these are called control structures.
Switch Statement
The switch statement is a key feature that is used by the programmers a lot in the world of programming and coding, as well as in information technology in general. The switch statement is a selection control mechanism that allows the variable value to change the order of the individual statements in the software execution via search.
LUNCH SALES | ||||
Days of Week | Lunch Sold | Qty | Unit Price | Total Sold |
Monday | Chicken | 25 | 15.00 | $ 375.00 |
Monday | Pork | 15 | 20.00 | $ 300.00 |
Monday | Fish | 20 | 25.00 | $ 500.00 |
Tuesday | Mutton | 15 | 23.00 | $ 345.00 |
Tuesday | Fish | 30 | 25.00 | $ 750.00 |
Wednesday | Chicken | 55 | 15.00 | $ 825.00 |
Thursday | Turkey | 45 | 18.00 | $ 810.00 |
Friday | Turkey | 60 | 18.00 | $ 1,080.00 |
Saturday | Chicken | 15 | 15.00 | $ 225.00 |
Saturday | Mutton | 45 | 23.00 | $ 1,035.00 |
Saturday | Fish | 55 | 25.00 | $ 1,375.00 |
Saturday | Turkey | 50 | 18.00 | $ 900.00 |
Saturday | Pork | 20 | 20.00 | $ 400.00 |
Sunday | Fish | 55 | 25.00 | $ 1,375.00 |
Sunday | Mutton | 35 | 23.00 | $ 805.00 |
Sunday | Chicken | 30 | 15.00 | $ 450.00 |
#NAME? | ||||||
Fruit | # of Days Sold | Total Sold | Sum of Total Sold | |||
Chicken | ||||||
Mutton | ||||||
Fish | ||||||
Turkey | ||||||
Pork | ||||||
Instructions: (Fill in the columns of the "Calculations Table") | ||||||
1. Create each formula to display the total number of days each LUNCH was sold for the week | ||||||
2. Create each formula to display the total sold for each LUNCH for the week | ||||||
3. Create each formula to display the total sum for Total Sold lunches for the week | ||||||
Hint: Naming the ranges may prove useful! |
Step by step
Solved in 4 steps with 2 images