Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Modify the program no. 1 as follows:


Derive a class named as CYLINDER from CIRCLE class. Take necessary

data & member functions for this class to calculate the volume of the

cylinder. Show the result by accessing the area method of circle and

rectangle through object of rectangle class and the area of circle and volume

method of cylinder class through the objects of cylinder class.


Modify the program no. 1 as follows:


Derive a class named as BOX from RECTANGLE class. Take necessary

data & member functions for this box class to calculate the volume of the

box. All the data members are initialized through the constructors. Show the

result by accessing the area method of circle and rectangle and the volume

method of box class through the objects of box class.


Write a program to create a class CIRCLE with one

field as radius, used to calculate the area of a Circle. Create another class

RECTANGLE used to calculate the area of the rectangle which is a subclass

of CIRCLE class. Use the concept of single inheritance such that the radius

of circle class can be re-used as length in rectangle class. Take necessary

data members and member functions for both the classes to solve this

problem. All the data members are initialized through the constructors.

Show the result by accessing the area method of both the classes through the

objects of rectangle class.


Bianca is preparing special dishes for her daughter’s birthday.

It takes her a minutes to prepare the first dish, and each following dish takes b minutes longer than the previous dish. She has t minutes to prepare the dishes.

For example, if the first dish takes a = 10 minutes and b = 5, then the second dish will take 15 minutes, the third dish will take 20 minutes, and so on.

If she has 80 minutes to prepare the dishes, then she can prepare four dishes because 10 + 15 + 20 + 25 = 70.

Write a program that prompts the user to enter the values of ab, and t, and outputs the number of dishes Bianca can prepare.


Write a simulation program for the fruit market. The farmer will be able to
produce different types of fruits (apple, orange, grape, and watermelon), and
put them in the market to sell. The market has limited capacity and farmers
have to stand in a queue if the capacity is exceeded to sell their fruits.
Consumers can come to the market any time and purchase their desired fruits;
and if the fruits they want to buy runs out, they are willing to wait until the
supply of that kind is ready. (Hint: implementing this market will encounter
the producer and consumer problem, and it probably needs multiple buffers
for different kinds of fruits).

1a.Write a program to input 10 integer numbers into an array named fmax and determine the maximum value entered. Your program should contain only one loop and the maximum should be determined as array element values are being input. (Hint: Set the maximum equal to the first array element, which should be input before the loop used to input the remaining array values.)

b. Repeat 1a, keeping track both the maximum element in the array and the index number for the maximum. After displaying the numbers, print these two messages


The maximum value is: _______

This is element number _______ in the list of numbers.

Have your program display the correct values in place in the underlines in the messages.

c. Repeat 1b, but have your program locate the minimum of the data entered.


Write a program called National_lottery. it should use rand function to produce 6 random numbers to 0 & 49, number must not repeat. use an appropriate pointer to print address of numbers in memory and its must be in hexadecimal. use derefencing operator to point in address. use function sort with begin() & end() function to organise values in ascending order, use a for statement to intialise numbers into arrays. Search any 2 array element that give sum of >=80 when + together, if numbers >=80 are more than 1 set, consider the biggest set chosen for draw. if the value of sum of the 2 are >=80, print "You won" & if they are < 80, print "You loose". Amount won by custom made function "amountDeterminat" of type & double argument in prototype. argument will be winning number received from sum of 2. amountDeterminant must use switch conditions. if winning numbers is (80 & 83 won amount 1700000, 84 & 86 amount 2500000, 87 & 89 amount 16000000)


Write algorithm that determines if the employee has to be paid of overtime pay (or). They will be paid an OT if they exceed 40 hours work in a week, regular pay (RP) if less than or equal to 40 hours only. Display "OT Pay" or " RP Pay", based on the entered number of hours a week

Specify the characteristics of the following popular WLAN transmission methods: a) 802.11 a b) 802.11 b c) 802.11 g d) 802.11 n e) 802.11 ac      


call this function

def test_sqrt():

a = 1

while a < 26:

print('a =', a,'| my_sqrt(a) =',my_sqrt(a),'| math.sqrt(a) =', math.sqrt(a),'| diff =', abs(math.sqrt(a)-my_sqrt(a)))

a = a + 1

return 0


LATEST TUTORIALS
APPROVED BY CLIENTS