Un-Answered Questions { OOPS }

What are the components of marker interface?

600


What are oops methods?

563


What is property in oops?

565


What is the main feature of oop?

618


What are the important components of cohesion?

550


What is the highest level of cohesion?

575


Is oop better than procedural?

568


What does I oop mean?

611


What is difference between pop and oop?

601


What is pure oop?

597


What language is oop?

591


Which language is pure oop?

545


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

626


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

691