une a perfect user wil the eaty above fomats for the iputs. Your pgan eid be meye the y wons (Name, Numbert and Number2) om the us and dlay the tputs ing forma You t uele statement dipiay the comect place tatome, F me hes completed Ner dese of Covid 2 vaine et Pece De Nuber isle than 3, your progra sho ahe dplay the falng meag Fiense ompete the remaining Mdese seon Take caret the Nabert is net lsted in e tabe or N Aalabe, your program stoud ak ur for arw N-Numberz t of ee thet Here ogram should dpiay acording to the rout umbert. Plee Pharmary lean Coutu Pece Nealth Center Numbert Pharmacy Jean Couts Unigria Cique Not Aalable

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Quentlan 1: Condid Vacdne Prognm k ptal
In this queston, you are sked to wrte a program to undentand notural langage. The user wil ter the
eput folowing the format:
FksEName testmeMamheriumber2
For ampie
Nobin Morine2
Aume a perfect ner will folow the eacty above fomats for the inputs. Your program shouid be able to
anelye the key wonds (Name, Numbert and Number2) from the Inputs and dsplay the outputs in the
foloaing format. You mint use -else statement to diplay the corect place.
LaitNome, Firstime has completed Number2 dose) of Covid 19 vacoine et Plece
If the Number2 is les than 3, your program should aho deplay the following message
Please complete the remaining Mdose soon. Take caret
r the Nambert is net sted in the table or Not Avalable, your program should ask user for a new input.
N- Number
Here is a lt of Place thet your progom should dplay according to the inout Mumbert.
Numbert
Ploce
Mumbert
Pace
Health Center
Pharmacy
Jean Coutu
Olympic Stadium
Unipris Cinique
Pharmacy
Jean Cout
Not Available
4.
Comp 218/Winter 200
Pape 2fs
Assignoment 2
Hints: You may use string functions: at), length(), substr), compare), stol, fina) to solve this question
Your program shoukd be able to ask uner for new input of user's informution for estimation until get the
input Yes from the user. Folowing are sample screen shos to lustrate the expected behavior of your
program. User input at the keyboard is marked with a red drde
Ela nete. Your program mat deplay the same information but the output can be fomated afferenty.
Weleone to Cevid Vaccine Progrant
Please enter the ingut infernation 1
Far mole. Robin MorinI2
Robin MorinGe2
Marin, Robin has conpleted 2 dosels) of Covid 19 vaceine at Pharnacy.
Pleese complete the remaining 1 dosets) soon. Take caret
Thank you tor using Cavid vaccine Progran!
Figure The utpur mplefQuestunl
*...
Welcone to Cevid vaccine Progrant
Please enter the input information
For eanole, Robin Morinise2
Lucy.Thengiie
Please enter the input. infornation t
Fur exanale, Robin Marinesa
tuey Thengie
Please nter the input information
Fer exanale, Bobin Merinese2
Yang, Lucy has conpleted 3 doselsl of Cavid 19 vaccine at Jean Coutu.
Thank you for using Covid Vceie Pregran
Transcribed Image Text:Quentlan 1: Condid Vacdne Prognm k ptal In this queston, you are sked to wrte a program to undentand notural langage. The user wil ter the eput folowing the format: FksEName testmeMamheriumber2 For ampie Nobin Morine2 Aume a perfect ner will folow the eacty above fomats for the inputs. Your program shouid be able to anelye the key wonds (Name, Numbert and Number2) from the Inputs and dsplay the outputs in the foloaing format. You mint use -else statement to diplay the corect place. LaitNome, Firstime has completed Number2 dose) of Covid 19 vacoine et Plece If the Number2 is les than 3, your program should aho deplay the following message Please complete the remaining Mdose soon. Take caret r the Nambert is net sted in the table or Not Avalable, your program should ask user for a new input. N- Number Here is a lt of Place thet your progom should dplay according to the inout Mumbert. Numbert Ploce Mumbert Pace Health Center Pharmacy Jean Coutu Olympic Stadium Unipris Cinique Pharmacy Jean Cout Not Available 4. Comp 218/Winter 200 Pape 2fs Assignoment 2 Hints: You may use string functions: at), length(), substr), compare), stol, fina) to solve this question Your program shoukd be able to ask uner for new input of user's informution for estimation until get the input Yes from the user. Folowing are sample screen shos to lustrate the expected behavior of your program. User input at the keyboard is marked with a red drde Ela nete. Your program mat deplay the same information but the output can be fomated afferenty. Weleone to Cevid Vaccine Progrant Please enter the ingut infernation 1 Far mole. Robin MorinI2 Robin MorinGe2 Marin, Robin has conpleted 2 dosels) of Covid 19 vaceine at Pharnacy. Pleese complete the remaining 1 dosets) soon. Take caret Thank you tor using Cavid vaccine Progran! Figure The utpur mplefQuestunl *... Welcone to Cevid vaccine Progrant Please enter the input information For eanole, Robin Morinise2 Lucy.Thengiie Please enter the input. infornation t Fur exanale, Robin Marinesa tuey Thengie Please nter the input information Fer exanale, Bobin Merinese2 Yang, Lucy has conpleted 3 doselsl of Cavid 19 vaccine at Jean Coutu. Thank you for using Covid Vceie Pregran
Question #1: Covld Vaccine Program (6 pts)
In this question, you are asked to write a program to understand natural language. The user will enter the
input following the format:
FirstNome LostNome@Number18Number2
For example:
Robin_Morin@182
Assume a perfect user will follow the exactly above formats for the inputs. Your program should be able to
analyze the key words (Name, Numberi and Number2) from the inputs and display the outputs in the
following format. You must use if-else statement to display the correct place.
LastName, FirstName has completed Number2 dosefs) of Covid 19 vaccine at Place.
If the Number2 lis less than 3, your program should also display the folowing message:
Please complete the remaining N dosefs) soon. Take carel
If the Numberi is not listed in the table or Not Available, your program should ask user for a new input.
N=3- Number2
"Here is a list of Place that your program should display according to the input Numberi.
Number1
Place
Numberi
Place
1
Pharmacy
Health Center
jean Coutu
Olympic Stadium
Uniprix Clinique
6.
Pharmacy
3
Jean Coutu
Not Available
4
Comp 218/Winter 2022
Page 2 of S
Assignment #2
Hints: You may use string functions: at0, length(), substr(), compare0, stoi), find) to solve this question.
Your program should be able to ask user for new input of user's information for estimation until get the
input Yes from the user. Following are sample screen shots to illustrate the expected behavior of your
program. User input at the keyboard is marked with a red cirde
Please note: Your program must display the same information but the output can be formatted differently.
Welcome to Covid Vaccine Program!
Please enter the input information:
For example. Robin_Morin@12
Robin Moring6#2
Morin, Robin has completed 2 dose(s) of Covid 19 vaccine at Pharmacy.
Please complete the remaining 1 dose(s) soon. Take care!
Thank you for using Covid Vaccine Program!
Transcribed Image Text:Question #1: Covld Vaccine Program (6 pts) In this question, you are asked to write a program to understand natural language. The user will enter the input following the format: FirstNome LostNome@Number18Number2 For example: Robin_Morin@182 Assume a perfect user will follow the exactly above formats for the inputs. Your program should be able to analyze the key words (Name, Numberi and Number2) from the inputs and display the outputs in the following format. You must use if-else statement to display the correct place. LastName, FirstName has completed Number2 dosefs) of Covid 19 vaccine at Place. If the Number2 lis less than 3, your program should also display the folowing message: Please complete the remaining N dosefs) soon. Take carel If the Numberi is not listed in the table or Not Available, your program should ask user for a new input. N=3- Number2 "Here is a list of Place that your program should display according to the input Numberi. Number1 Place Numberi Place 1 Pharmacy Health Center jean Coutu Olympic Stadium Uniprix Clinique 6. Pharmacy 3 Jean Coutu Not Available 4 Comp 218/Winter 2022 Page 2 of S Assignment #2 Hints: You may use string functions: at0, length(), substr(), compare0, stoi), find) to solve this question. Your program should be able to ask user for new input of user's information for estimation until get the input Yes from the user. Following are sample screen shots to illustrate the expected behavior of your program. User input at the keyboard is marked with a red cirde Please note: Your program must display the same information but the output can be formatted differently. Welcome to Covid Vaccine Program! Please enter the input information: For example. Robin_Morin@12 Robin Moring6#2 Morin, Robin has completed 2 dose(s) of Covid 19 vaccine at Pharmacy. Please complete the remaining 1 dose(s) soon. Take care! Thank you for using Covid Vaccine Program!
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Software products
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education