Wap to create One Base class Father data member fname. And Son class derived from Father dada member sname . And GrandSon derived from Son data member gname. Use appropriate function that GrandSon will display all name by it concatenating
Wap to create Hierarchical Structure. Number class is base data member int X and two derived class Perfect & Strong. It will check corresponding whether no is perfect or Strong. But thing is one input will taken and that single input will check both.
Write a program to demonstrate the order of call of constructors and destructors in case of multiple inheritance where one or more base classes are virtual.
Write a program that takes an integer minutes and converts it to seconds.
Program call National lottery dat give the winning lottery numbers. The program must use the rand function to produce six(6) random numbers between 0 & 49 & number must not repeat. Search the winning_numbers for any 2 array elements dat give the sum of >= 80 when added together, if the numbers >= 80 are more than 1 set, consider the biggest set to be the 1 chosen for draw. If the value of the sum of the 2 values is >= 80, print the message “You have won” & if the sum of the 2 numbers is < 80, print the message “You did not win”. a custom made function called amountDeterminant(double & receives a double argument), argument will be the winning number from the sum of 2 numbers. amountDeterminant. Winning numbers are in between 80 and 83, the won amount is R17M 84 & 86, amount is R2.5M, 87 & 89, amount is R16M
-use switch condition, appropriate pointer print "address the number" & for statement or initialiser list to the numbers into arrays
Display the following Employee information using the variables.
Name
Age
Gender
Address
Contact No.
Monthly Salary
a program that asks for the number of tickets sold and computes the total cost of the purchase at Walt Disney World based on the following information:
Walt Disney World sells tickets for $109 per day. Discounts are given for purchasing multiple days of tickets at the same time. The discounts are given according to the following table:
Draw the (1)stack and (2)circular queue data structures in array implementation for "each step" in the following sequence :add(A),add(B), add(C), remove, add(D), add(E), remove, add (F), add(G). Assume the initial size of 5 for array implementation. Remember to show TOP(top of the stack) for stack and both Front and back for queue. In circular queue implementation assume we sacrifice one storage for telling the difference between FULL and EMPTY.
Write a function in C++ to calculate product of digits of any number
Write a function in C++ to print the Floyd's Triangle.