1) Create two classes which stores distance in feet, inches and meter, centimeter format respectively. Write a function which compares distance in object of these classes and displays the larger one.
2) Create a class which stores name, author and price of a book. Store information for n
number of books. Display information of all the books in a given price range using
friend function.
1) Write a program to swap private data member of two classes. [The classes have no relation with each other].
2) Modify program 1) to make the swap function member of one class and friend to another class.
program that determine if a student qualifies for the NSFAS through their Average score for Maths, English and Physics. The program must receive 3 marks for each subject in order to calculate the average to determine whether or not a student qualifies for NSFAS
1. Prompt the user to capture marks for Maths, Physics and English
2. The funding amounts are broken down as follows, an average marks of : a) 75% & above - R75000 b) 60% up to 74% - R60000 c) 50% up to 59% - R40000
3. The program must displayed at the end of all the operations:
The number of NSFAS funded students
The number of students who received R75000, R60000 & R40000
The number of non NSFAS funded students
4. Your output must test the four conditions:
2 NSFAS qualifying students and 2 non-qualifying students
2 NSFAS students qualifying for R75000 & 1 non-NSFAS qualifying student
2 NSFAS students qualifying for R60000 & 1 non-NSFAS qualifying
2 NSFAS students qualifying for R40000 & 1 non-NSFAS qualifying
Your Employer requests you to develop a C++
program that allows a user to determine if a student qualifies for the NSFAS through their Average score for Mathematics, English and Physical Sciences. The
program must receive three(3) marks for each of the subject in order to calculate the average.
The average mark must determine whether or not a candidate qualifies for NSFAS.
The number of non-qualifying NSFAS students is
multiplied with the highest amount(R75000) allocated for NSFAS.
1. Prompt the user to capture marks for Mathematics, Physics and English 2. The funding amounts are broken down as follows, an average marks of : a) 75% and above - R75000-00 b) 60% up to 74% - R60000-00 c) 50% up to 59% - R40000-00
LA is an array with 15 elements .write a c++ program that rearrange the elements in LA in ascending order and delete the largest element in the array .