Design three classes STUDENT ,EXAM and RESULT. The STUDENT class has data members such as roll no, name. create a class EXAM by inheriting the STUDENT class. The EXAM class adds data members representing the marks scored in six subjects. Derive the RESULT from the EXAM class and has its own data members such as total marks. Write a program to model this relationship.
"Write a C++ application which performs the following scenarios:
i. List of available book items as given below and prompt the user to select any SEVEN (7) choices:
1-Story Book, 2-Documentary Book, 3-Cookery Book, 4-Magazine, 5-Religious, 6-Journals, 7-Stop
ii. Display error message if the user enters choices other than 1 to 7.
iii. For menu 2, and 5, there will be NO discount given, but for menu 1, 3, and 6, there will be a 5% discount given, where by for menu 4, there will be a 10% discount given.
iv. Calculate the Overall price, discount, Sales Tax (2%), and final Total and display the receipt along with customer details. [receipt must be interactive and which contains all the details]."
My question is, how do I add a few items to the shopping cart?
Write a method that accepts a string and integer n as arguments, the method then displays the passed string n times. Example, if we pass “Testing” as a string and 4 as the integer, the function will display; Testing Testing Testing Testing Write a main() method demonstrating that the method works correctly by calling it twice, firstly with your first name and last digit on your student number, and secondly with your last name, and the sum of the last two digits on your student number
Write a program that accepts 10 values from the user at the keyboard and stores them in an array. Pass the array and its size to a function that determines and displays the smallest and largest of the 10 values.
Write a method that receives elapsed time for an event in seconds as a parameter. The method then displays the elapsed time in hours, minutes, and seconds. For example, if the elapsed time is 9630 seconds, then the method will display is 2:40:30. Write a main() method that will prompt a user for elapsed time for an event in seconds, and use received value to demonstrate that the method works correctly
Write a method that receives elapsed time for an event in seconds as a parameter. The method then displays the elapsed time in hours, minutes, and seconds. For example, if the elapsed time is 9630 seconds, then the method will display is 2:40:30. Write a main() method that will prompt a user for elapsed time for an event in seconds, and use received value to demonstrate that the method works correctly
PS: Imagine you are the salesperson in the supermarket and arranging the apples based on their size (in kgms) every day. One fine day, you decided to scan all the apples size and arrange it in less time than ever before. The scanner measured the apple’s size, for example, Apple 1 = 1.4 kgms and 1 kgms, Apple 2 = 1.8 kgms and 2 kgms. This made you arrange two patterns: Pattern 1 – apple size measured in float, Pattern 2 – apple size measured in integer. Design a C++ program to implement this given use case?
Write a method that receives elapsed time for an event in seconds as a parameter. The method then displays the elapsed time in hours, minutes, and seconds. For example, if the elapsed time is 9630 seconds, then the method will display is 2:40:30. Write a main() method that will prompt a user for elapsed time for an event in seconds, and use received value to demonstrate that the method works correctly
Write a program using copy constructor to copy data of an object to another object.
Create a class called 'TIME' that has three integer data members for hours, minutes and
seconds, a constructor to initialize the object to some constant value, member function to
add two TIME objects, member function to display time in HH:MM:SS format. Write a main function to create two TIME objects, add them and display the result in HH:MM:SS format.