take 10 integer inputs from user and print the following:
01:postive number
02:negative number
03:odd numbers
04:even numbers all through arra
Create a C++ program that meets the following requirements:
1. It is necessary to read TotalUnits and ratePerUnit.
2. The computeTuition function will return the totalTuition based on the input parameters.There are two parameters: totalUnits and ratePerUnit.
3. Function computeFamilyDiscount – this function computes a 5% family discount.1. It is necessary to read TotalUnits and ratePerUnit.
2. The computeTuition function will return the totalTuition based on the input parameters.There are two parameters: totalUnits and ratePerUnit.
3. Function computeFamilyDiscount – this function computes a 5% family discount.a. Create a class called Rectangle with data members: width, length and area. The class should have functions to allow for setting of both length and width, calculate the area, and retrieve the width, length and area. (13 marks)
b. Write a main function that declares an object from the class above, and use the methods in that class to input the length and width, calculate the area and, retrieve and display those values (width, length and area).
A proposed system intends to store the student data (Student Number, Student Name and Phone Number) and also allow for the access of the same data. The data should be hidden and not prone to direct manipulation. The data is read and written using methods.
Required:
(i) Create a class called Student for the above scenario in C++ (6 marks)
(ii) Write a main function in the same C++ program to instantiate an object from the class Student, and allow for student data to be inputted though the keyboard and then display that student data.
Sorting is a process of arranging numbers according to a certain
sequence. Write a C functions to read n integer values, sorting
process and display the arranged numbers.
Make a C ++ program that calculates the sum, mean of a series of numbers.
Example:
-Numbers: 10, 12, 10, 14
-The sum is 46,
-the mean is 11.5
Write a C++ program using a Class function that enables the storing of the following elements in an array as shown: (4 Marks)
-name
- houseno
- street
- city
Create a program like simsimi program with at least 10-20 questions, the program would interact with the user some important details about the user.