1- Write a Boolean function that accepts as input three numbers of the double data type. The function should return true if the first parameter raised to the second parameter equals the third parameter; otherwise, a false value should be returned. For example, if the three numbers are 3, 4, 81, the function would return a true value because 34 = 81.
2- Create a class named Employee that has three member variables:
1. name – A string that stores the employee’s name
2. numDependents – An integer that tracks how many dependents the employee has
3. classDependents – an array of strings with the names of the employee’s dependents
Write corresponding constructors, as well as mutator and accessor functions for the class which includes the following:
a. A function that inputs all appropriate user values, including the class names.
b. A function that outputs the employee name and a list of his dependents
c. A destructor that releases all memory that has been allocated
3- Create a class dayClassthat implements a day of the week. The class should store the day, e.g., use Sun for Sunday, Mon for Monday, etc. Your program should perform the following operations on an object of type dayType:
a. Set the day
b. Print the day
c. Return the day
d. Return the next and previous days
e. Return the day after adding a certain number of days to the current day. By way of example, adding 3 to Sunday would be Wednesday.
f. Include all constructors
4- You are in the rental car business. Create a class called RentalCar that includes a string type for the car type (e.g., passenger car, van, truck, etc.) and a double field for the rental rate per day. Include get methods for these fields and a constructor that requires a string argument representing the car type. The constructor sets the room rate as follows – cars $49.99 per day, vans $69.99 per day, trucks $89.99 per day. Create an extended class, Luxury, whose constructor requires a car type and adds $20 per day to the appropriate rental rate for each type of vehicle. Write an application named UseRentalCarwhich creates an object of each class. Demonstrate that all methods work as they should.
Place your order now for a similar paper and have exceptional work written by our team of experts to guarantee you A Results
Why Choose US
6+ years experience on custom writing
80% Return Client
Urgent 2 Hrs Delivery
Your Privacy Guaranteed
Unlimited Free Revisions