Write a C++ program which perform the following:
1.Create a Class factorial
2.Create Private Member Variable and initialize it with Member initialization list and with value zero
3.Now, take inputs from user
4.Create a Public Member Function Calculate( ) outside the class , to calculate the factorial of a given input
5.Create another Public Member Function Result( ) outside the class, to print the results on screen
6.Now, create a constant object of the class which perform following:
a. Passes the values to the Calculate( ) function
b. Call the Result( )
function to show result
Input : A2b34ce - - > [2,34]
Output : A34b2ce - - > [34,2]
Define Concurrency in Database management System?
What is Backup and Recovery in DBMS?
What is SQL Aggregate Functions Define with Examples
One large chemical company pays its salespeople on a commision basis. The salespeople receive RM700 per week plus 9% of their gross sales for that week. For example, a salesperson who sells RM10 000 worth of chemicals in a week receives RM700 plus 9% of RM10000, or a total of RM1 600. Develop a program that will input each salesperson’s gross sales for last week and will calculate and display the salesperson’s earnings. Process one salesperson’s figures at a time.
Bob employs a painting company that wants to use your services to help create an invoice generating system. The painters submit an invoice weekly. They charge $30 per hour worked. They also charge tax – 15%. Bob likes to see an invoice that displays all the information – number of hours, the charge per hour, the total BEFORE tax and the total AFTER tax. Since this is an invoice, we also need to display the name of the company (Painting Xperts) at the top of the invoice. Display all of the information on the screen.
Imagine BAGADI - a publishing company that markets both books, Tape/drive (audiocassette and Videocassette) versions of its works. Create a class publication that stores the title (a string) and price (type float) of a publication. From this class derive two classes: book, which adds a page count (type int), and tape, which adds a playing time in minutes (type float). Each of these three classes should have a getdata() function to get its data from the user at the keyboard, and a putdata() function to display its data. Write a main() program to test the book and tape/drive classes by creating instances of them, asking the user to fill in data with getdata(), and then displaying the data with putdata() as per the order based on the user choice either playing time or number of pages. (Try to use the concept of Constructors, Destructors & Function Overloading).