I need the C language code for the below question please kindly help me with this! | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

I need the C language code for the below question please kindly help me with this!

The OMG Denta Clinic is need of a software to collect appointment requests from clients and allot time slot for each of them. Each appointment is to be scheduled for 15 minutes time. Maximum number of appointments is fixed as 10 and the first appointment starts at 10 am. Allow a 5 minute lead time between each appointment scheduled. Design a C program for collecting appointment requests of clients. ClientID of the requesters is stored in an array. After 10 Requests are collected, allot a timeslot for each request and print a message stating the request number, client id and timeslot. . Eg msg: Request No. 1 given by client <ID> is allotted appointment at <time slot>.

18th Dec 2020, 4:48 PM
Varshini
9 Antworten
+ 5
Varshini , no problem to be a beginner. But the task you requested does need some experience in coding. So you are recommended to start learning with the C tutorial. And please: Do not ask for a ready-made-code. Before we can help you, you should have done an attempt first and post it here. Thanks for your understanding!
18th Dec 2020, 4:58 PM
Lothar
Lothar - avatar
+ 3
Your attempt?
18th Dec 2020, 4:49 PM
The future is now thanks to science
The future is now thanks to science - avatar
0
Yeah ,today I have tried out but didn't get any idea first iam a beginner
18th Dec 2020, 4:50 PM
Varshini
0
Yeah I had done the code
18th Dec 2020, 4:59 PM
Varshini
0
I actually need to know the answer
18th Dec 2020, 5:00 PM
Varshini
0
#include <stdio.h> int main() { int i , client[11], h = 10, m = 15, req = 100 , Requestid[100], next; printf("\n\nNote to all the clients !! The Maximum appointment is only upto 10 members please kindly wait for your appointment time slot"); for (i=1; i<=10;i++) { goto next; for(m = 15 ; m < 45 ; m = m + 15) { for(h = 10 ; h <= 24 ; h++) { next: printf("\n\n\nEnter the ID : "); scanf("%d",&client[i]); printf("\nClient%d",client[i]); printf("\n\nYour Appointment is fixed at %d am - %d : %d am ",h,h,m); break; } printf("\nYour Appointment starts within 5 minutes"); } } printf("\n\n\nPlease Wait Your appointment request is getting scheduled......."); printf("\n\n\nRequesting clients !!"); for(req = 0,i =0 , m = 15, h = 2 ;req <= 100, i < 100 ,m <= h, h <=12 ; req++, i++, m = m + 15 , h++) { printf("\n\n\nMention your ID : "); scanf("%d",&Requ
18th Dec 2020, 5:10 PM
Varshini
0
Okay,I first I have made a for loop to make the entry for the 10 clients and their appointment timing ( tihs part of the code I don't know how to recursively mention the 15 minutes) and then,I made a for loop for the request by the clients if the array is greate than 10.Sorry,if iam wrong this is what I have done also I missed some part of my code though.
18th Dec 2020, 5:14 PM
Varshini
0
Iam a new user
19th Dec 2020, 2:15 PM
Varshini
0
Please don't comment like this
19th Dec 2020, 2:15 PM
Varshini