Write the code for the following problem using either C or C++. If there are 8 cars with its car number {11,10,34,56,68,89,65,78} parked in a parking area, then you are looking for a car number 68 by checking every car sequentially from the beginning.
A small business wants to create a file to store its customer information. Each record in the file is to
contain the following data: customer ID number, first name, last name, city, zip code, and account balance.
Write a program to create such a customer file named “customer.txt”. Write the file with space-separated
fields.
Write another program that displays the contents of the file “customer.txt” in column form with
appropriate column headings.
A moving contractor wants you to write a program that he can use to estimate the cost
of moving a residential customer. The charge for moving is based on two factors.
First, the labor cost is estimated by charging $4.00 for every 100 pounds of furniture to
be moved.
Second, the travel charge is $50.00 plus $1.75 for each mile the furniture is to be moved.
The program should prompt the user for the estimated weight of the furniture and the
distance the furniture is to be moved.
Finally, the program should display the labor charge, the travel charge, and the total
charge.
Create a file manually with the file name and contents shown below. The file contains records of student
name, age, sex, and favorite subject unit code.
Record.txt
Wong 18 M ATGE3022
John 19 M ATGE2222
Shirley 20 F ATGE2053
Tan 20 F ATGE1234
Lee 21 M ATGE2053
Chin 18 F ATGE2053
Chan 21 M ATGE2053
Write a program that reads the contents of the file and display the following result on the screen:
i) Total numbers of female whose favorite subject unit code is ATGE2053
ii) Total numbers of male whose favorite subject unit code is ATGE2053
Create a class which stores account number, customer name and balance. Derive two classes from ‘Account’ class: ‘Savings’ and ‘Current’. The ‘Savings’ class stores minimum balance. The ‘Current’ class stores the over-due amount. Include member functions in the appropriate class to:-
&,[For current account overdue amount should be calculated.]
Create a class which stores employee name, id and salary. Derive two classes from ‘Employee’ class: ‘Regular’ and ‘Part-Time’. The ‘Regular’ class stores DA, HRA and basic salary, which is to be given during the run-time. The ‘Part-Time’ class stores the number of hours and pay per hour, which is also to be given during the run-time. Calculate the salary of a regular employee and a part-time employee.