June, July or August are put into Bridge House. All other students are put into Anchor house. Your task is to write a C program to accomplish the following: Ask the user to enter a number (1 to 12) relating to their birth month Decide which house they are in Keep a running total of how many students are in each house. Repeat the above for 10 students. When 10 students have entered their details, print out how many students are in each house. Office positions will be occupied by the house with the highest number of students. Determine the percentage distribution for the house to manage the office positions. Replace P in the output format with the actual figure

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter4: Selection Structures
Section4.3: Nested If Statements
Problem 7E
icon
Related questions
icon
Concept explainers
Question
RMU puts students into house groups based on the month that they were born in. Students
bom in January, February, March or April are put into Ship house. Students born in May,
June, July or August are put into Bridge House. All other students are put into Anchor house.
Your task is to write a C program to accomplish the following:
Ask the user to enter a number (1 to 12) relating to their birth month
Decide which house they are in
Keep a running total of how many students are in each house.
Repeat the above for 10 students.
When 10 students have entered their details, print out how many students are
in each house.
Office positions will be occupied by the house with the highest number of
students.
Determine the percentage distribution for the house to manage the office
positions. Replace P in the output format with the actual figure
Transcribed Image Text:RMU puts students into house groups based on the month that they were born in. Students bom in January, February, March or April are put into Ship house. Students born in May, June, July or August are put into Bridge House. All other students are put into Anchor house. Your task is to write a C program to accomplish the following: Ask the user to enter a number (1 to 12) relating to their birth month Decide which house they are in Keep a running total of how many students are in each house. Repeat the above for 10 students. When 10 students have entered their details, print out how many students are in each house. Office positions will be occupied by the house with the highest number of students. Determine the percentage distribution for the house to manage the office positions. Replace P in the output format with the actual figure
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr