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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply