i need help please anyone
-
USING Visual C++ .Net I want to design a class to represent a day’s bookings in an appointment book. This class should hold the day’s date and an array to represent each hour of the day for which an appointment can be made (say nine entries, representing 9.00 to 17.00 ). Each element of the array only needs to be able to indicate whether that hour is booked or not. the above class should include the following methods: - prompt for and accept the day’s date - initialise all the hours in the day to “free” - repeatedly prompt the user for an hour number - if the hour is “free” mark it as “booked” - otherwise tell the user “already booked” - display the day and its appointments e.g. 20/12/05 9 booked 10 11 booked 12 booked 13 booked 14 15 16 booked 17 thanks in advance. :sigh:
-
USING Visual C++ .Net I want to design a class to represent a day’s bookings in an appointment book. This class should hold the day’s date and an array to represent each hour of the day for which an appointment can be made (say nine entries, representing 9.00 to 17.00 ). Each element of the array only needs to be able to indicate whether that hour is booked or not. the above class should include the following methods: - prompt for and accept the day’s date - initialise all the hours in the day to “free” - repeatedly prompt the user for an hour number - if the hour is “free” mark it as “booked” - otherwise tell the user “already booked” - display the day and its appointments e.g. 20/12/05 9 booked 10 11 booked 12 booked 13 booked 14 15 16 booked 17 thanks in advance. :sigh:
-
Ok, I understood what do you want to do, but where have you been stucked? What is the question / the problem you have? Greetings, Ingo ------------------------------ A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
He wants you to write the class for him for his school homework.:omg: Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com
-
USING Visual C++ .Net I want to design a class to represent a day’s bookings in an appointment book. This class should hold the day’s date and an array to represent each hour of the day for which an appointment can be made (say nine entries, representing 9.00 to 17.00 ). Each element of the array only needs to be able to indicate whether that hour is booked or not. the above class should include the following methods: - prompt for and accept the day’s date - initialise all the hours in the day to “free” - repeatedly prompt the user for an hour number - if the hour is “free” mark it as “booked” - otherwise tell the user “already booked” - display the day and its appointments e.g. 20/12/05 9 booked 10 11 booked 12 booked 13 booked 14 15 16 booked 17 thanks in advance. :sigh:
-
- prompt for and accept the day’s date cout<<"Enter date"; cin>>date; (but before this u need to create a variable for date - i guess u already know that) 2) - initialise all the hours in the day to “free” u can use a for loop for this. and yes for 'hour' integer variable u need to create an int array. 3)- repeatedly prompt the user for an hour number i don't understand.....repeatedly means what intervals it should follow? 4) - if the hour is “free” mark it as “booked” use the if else construct for this 5)- otherwise tell the user “already booked” same if then used as in 4) 6)- display the day and its appointments in a for loop u need to use cout. I hope that helps u? Regards