149k views
4 votes
It is orientation day at the college. Students need to go to a specific room based on their status. Their status can be either international full-time, domestic full-time, or domestic part-time. Your task is to complete a program that will do the following:

Ask a student for their name.
Ask them for their status - keep the status simple in order to ensure that you do not have to handle a wide variety of inputs. For example, you can ask them to enter i for international full-time, F for domestic full-time, and P for domestic part-time.
Display a message that lists their name and the room that they must go to.
If the students are international full-time they are to be directed to room 227. If they are domestic full-time they must meet in room 123. If they are domestic part-time they must meet in room 055. Create a flowchart that depicts this program.
Use Visio, draw.io, or any other program to complete this task.

1 Answer

0 votes

Final answer:

While unable to create a visual flowchart, the described process includes steps such as prompting for the student's name and status and then displaying the assigned room based on the status ('i' for international full-time, 'F' for domestic full-time, 'P' for domestic part-time).

Step-by-step explanation:

The requested solution entails creating a program for orientation day at the college. A flowchart would be designed to visually show the steps the program performs, which include asking the student for their name and status (with options such as 'i' for international full-time, 'F' for domestic full-time, and 'P' for domestic part-time), and then displaying a message on which room the student should go to based on their status. Unfortunately, as a text-based assistant, I cannot directly create a visual flowchart, but I can describe the process that you could depict in your preferred flowchart-making tool:

  • The program starts.
  • Prompt for the student's name.
  • Input the student's name.
  • Prompt for the student's status with options ('i', 'F', 'P').
  • Input the student's status.
  • If the student's status is 'i', assign room 227.
  • If the student's status is 'F', assign room 123.
  • If the student's status is 'P', assign room 055.
  • Display the message with the student's name and assigned room.
  • The program ends.

User Twaha Mehmood
by
7.1k points