a. Critically explain why you would consider the concept of using methods in your program again running a couple of if-else statements.
b. Declare a method with three arguments all of the type int. The method should return the greatest of the three arguments, however, if any two or all three are the same, your method should return that value.
c. Embed your method in a complete program that requests for three variables all of the types int and displays the conditions explained in “b” above.
Write a program that prints integers that are multiples of 5 in the range of 5 to 50. Name the program as follows: multiples_while.cpp. while loop program
Try to write pseudocode and create a flowchart for a program that calculates the average of three grades and prints the average.
The word GOOD should be printed only if the average is more than 80.
Write a programme to demonstrate Hybrid Inheritance with some real examples. Also mention the possible ways of removing ambiguity in this Inheritance.
What is the application of Function overloading and Function Overriding? How do we achieve this? Write programme to demonstrate the use of both features.
There is an Admission class that assigns the admission id and registration number to the Student. The student’s general information i.e. name, email, and contact number is initialized through another class. The student's result is controlled by another class that returns the student's cgpa based on his/her score in all tgpa’s.
Create 5 objects of students, input and display their name, registration number, section, cgpa using any possible type of Inheritance.
Write a program with total change amount in pennies as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies.
A palindrome is a string that reads the same forwards as backwards. Using
only a fixed number of stacks and queues, the stack and queue ADT functions, and a fixed
number of int and char variables, write a code to determine if a string is a palindrome. Assume that the string is read from standard input one character at a time. The code should output true or false as appropriate.
A palindrome is a string that reads the same forwards as backwards. Using
only a fixed number of stacks and queues, the stack and queue ADT functions, and a fixed
number of int and char variables, write a code to determine if a string is a palindrome. Assume that the string is read from standard input one character at a time. The code should output true or false as appropriate.
Create a class named TIME that has hours, minutes, and seconds, data members, as integers. The class has gettime () to get the specified value in the object, showtime () to display the time object in *hh:mm:ss* format. Write a main () function to create two-time objects. get the value in two objects and display all time objects.