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