Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program Requirements Part of entering Samoul campus is to complete BC COVID-19 screening form. Write a C++ program that serves as COVID-19 Screening Tool to

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Program Requirements Part of entering Samoul campus is to complete BC COVID-19 screening form. Write a C++ program that serves as COVID-19 Screening Tool to allow students entering University campus and visiting one of three places, bookstore (to purchase an access code for C++ textbook), IT service desk (to solve an issue), and library (to issue student ID). The program will do the following: 1- Ask the student to enter their full name and student number 2- Ask the student the following questions with Yes/No answers (questions are adopted from BC website https://bc.thrive.health/covid19/en) a. Are you or anyone in your household have travelled outside of Canada within the past 14 days? Or Have you had contact with any person with, or under investigation for, COVID- 19 in the last 14 days? If the answer is yes, then display a message to the student that they are not allowed to enter the university and end the program. Otherwise, proceed to asking the next questions. b. Are you experiencing any of the following? Severe difficulty breathing (e.g. struggling to breathe or speaking in single words) Severe chest pain Having a very hard time waking up Feeling confused Losing consciousness c. Are you experiencing any of the following? Mild to moderate shortness of breath Inability to lie down because of difficulty breathing Chronic health conditions that you are having difficulty managing because of difficulty breathing If the answer is yes to any of borc questions, then display a message telling the student to call 9-1-1 or visit the nearest emergency department and end the program. Otherwise, print a message telling the student they can enter Samoul campus and proceed to step 3. . 3- Display a menu to ask the student where they want to go, using a switch statement (student can enter capital or small letter as an input): Bookstore IT Service desk Library 4. If the student selects Bookstore print an invoice with a generated access code. Access code will be generated from the last 2 digits of the student ID number converted into letter followed by the third and fifth digits (starting from last digit). The following table shows the condition of converting the two-digit into a character. Condition Equivalent code 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions