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).
Write a C program to read two strings and explain string library function.
1)strlen()
2)strcyp()
3)strcat()
4) strcmp()
Question:
Perform the subnetting on the below IP Address and find out the number of networks, network of, first host, last host, and broadcast id of each network.
IP Address:210.220.150.0/29
Question:
Perform the subnetting on the below IP Address and find out the number of networks, network of, first host, last host, and broadcast id of each network.
IP Address:103.4.92.54/30
You must design a COVID-19 screening application for your campus. The guards at each gate will screen the students . The capabilities and features of the application should include a choice between the following functions:
1. A screening survey which will allow guards to record the students’ screening data.
*No student should be allowed access to the campus after 12h00 in the afternoons regardless of whether capacity has been reached or not.
*If a student’s temperature is 38 degrees or more, they will not be allowed entry into the campus.
Your second task is to implement the Insertion Sort algorithm by making a function with the
following prototype;
void insertion_sort(int * ptr_array, int size, int order);
This function takes as input a pointer to the start of the array, and the array size and sorts it in-
place. The last input to the function is the sorting order (0 for ascending and 1 for descending).