Page 1 of 1

Q1) You are asked to build a GUI client that asks the user to enter his or her age in order to determine eligibility for

Posted: Fri Apr 29, 2022 6:33 am
by answerhappygod
Q1) You are asked to build a GUI client that asks the user to
enter his or her age in order to determine eligibility for free the
PCR test. This age is sent to a backend server that determines
whether this patient qualifies for a FREE test (if age is older or
equal to 50) otherwise the client should display a “self-paid”
notification.
Q2)
Using the fastAPI framework, you are asked to build a server
that has an API with an endpoint that responds to a client response
with the following URL:
http://localhost:8000/pcr/34
where 34 represents the age of the patient. The server should
return “FREE” if the age is 50 or older, otherwise it should return
“self-paid” message.
Q3) To integrate the client with the server above, the
client should call the server using HTTP requests that uses the
“requests” library (or any other one of your choice). The client
should get the answer from the server and display the results to
the user.