Just as decisions in your day to day life can change the outcome of

Just as decisions in your day to day life can change the outcome of real life scenarios, we can use similar decision making structures to change the flow of our applications to respond to events or provide different output. The lecture provided an example of a GPS system using decision making to determine the best route to avoid traffic. That example had 2 main branches – if traffic is backed up on the express way, continue on rd, otherwise enter expressway. Consider a real-world example of where decision making can be applied to answer the following. Depending on your scenario, a program with the appropriate inputs / sensors could make these decisions and execute the actions automatically!
Provide a brief description of the scenario.
Explain whether the decision branches are complex or simple and how many “branches” are there.
Describe the result or action of at least two branches

done
Seen
3 mins ago[supanova_question]

Just as decisions in your day to day life can change the outcome of

Just as decisions in your day to day life can change the outcome of real life scenarios, we can use similar decision making structures to change the flow of our applications to respond to events or provide different output. The lecture provided an example of a GPS system using decision making to determine the best route to avoid traffic. That example had 2 main branches – if traffic is backed up on the express way, continue on rd, otherwise enter expressway. Consider a real-world example of where decision making can be applied to answer the following. Depending on your scenario, a program with the appropriate inputs / sensors could make these decisions and execute the actions automatically!
Provide a brief description of the scenario.
Explain whether the decision branches are complex or simple and how many “branches” are there.
Describe the result or action of at least two branches

done
Seen
6 mins ago[supanova_question]

Just as decisions in your day to day life can change the outcome of

Programming Assignment Help Just as decisions in your day to day life can change the outcome of real life scenarios, we can use similar decision making structures to change the flow of our applications to respond to events or provide different output. The lecture provided an example of a GPS system using decision making to determine the best route to avoid traffic. That example had 2 main branches – if traffic is backed up on the express way, continue on rd, otherwise enter expressway. Consider a real-world example of where decision making can be applied to answer the following. Depending on your scenario, a program with the appropriate inputs / sensors could make these decisions and execute the actions automatically!
Provide a brief description of the scenario.
Explain whether the decision branches are complex or simple and how many “branches” are there.
Describe the result or action of at least two branches

done
Seen
few seconds ago[supanova_question]

# write comments
1. Maggie is planning for a trip for her and her friends.

# write comments
1. Maggie is planning for a trip for her and her friends. The group decided to purchase snacks together and split the cost. There are10peoplein total.
The snacksare:
1. Energy bars-$3.99/box,
2. Candy bars-$2.39 /box,
3. Chips -$4.79/bag,
4. Pretzels-$2.99/bag,
5. Popcorns-$3.50 /bag
6. Energy drinks-$4.99/half dozen
Write a program to calculate the cost per person. The program allows the user to select an item, input the number of items, and calculate the cost per person.
An example input/output: Please select from the list:
1. Energy bars -$3.99 /box,
2. Candy bars -$2.39 /box,
3. Chips -$4.79 /bag,
4. Pretzels -$2.99/bag,
5. Popcorns -$3.50 /bag
6. Energy drinks -$4.99/half dozen
enter selection: 1
Enter number of boxes: 3
Enter selection: 3
Enter number of bags: 2
Enter selection: 7
Invalid selection, select from 1 to 6, enter 0 to stop selection
Enter selection: 6
Enter number of drinks as multiples of six (6, 12, 18…): 24
Enter selection: 5
Enter number of bags: 1
Enter selection: 0
Cost per person($): 4.50
1)Name your program snacks.c
2)If the user selects a number out of the range (1 through 6), display a message and allows the user to select again. When user enters 0, the program should exit from the loop for selection.
3)Use a switch statement to compute the amount due according to the selection(s).
4)Format the output to two decimal digits.

Program 2. In this program, we define a word to be valid if all characters of the word are alphabetic letters and one of following conditions holds:
1. All letters are capitals, like “UCLA”,
2. All letters are not capitals, like “program”. Write a program that prompts the user to enter a word. The program determines if the input is a valid word or invalid.
1)Name your program word.c.
2)The user input ends with the user pressing the enter key (a new line character).
3)Use getchar() to read in the input. Character handling functions are allowed.
Example 1:
Input: “fall”
Output: valid
Example 2:
Input: “8littlepigs”
Output: Invalid
Example 3:
Input: “CpE”
Output: Invalid
Example 4:
Input: “CSE2021”
Output: Invalid
Example 5:
Input: “CSE”
Output: Valid

done
Seen
few seconds ago[supanova_question]