Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help with 1,2, 4 and 5? Programming Practices 159 I. Create a batch file and store twenty integer rumbers. Write a C++ program to

image text in transcribed
Please help with 1,2, 4 and 5?
Programming Practices 159 I. Create a batch file and store twenty integer rumbers. Write a C++ program to open th mode. Display the content of the file is fike in rea 2. rite a program to read the records of twenty students. Each record has student's name, number of courses, and major; store them in an array size 20. There are three exams per course. Compute average grade for each course and find the GPA of each student. Create a batch nle to store the twenty students' records 3. Writ e a program to create a binary file. Read twenty real numbers type of double anvd write them in e binary file. Display the content of binary file using type casting methoc. 4. Write a C++ program to create a fle as write and read mode, Ask user to enter twenty names and write them to the file. Display the content of the file. Projeet 1: Employees 5. Write a C++ program to create a batch file for twenty employees. Read name, ID, weekly hours, and rate per hour of twenty employees. Compute gross salary. If gross salary exceed $2,500.00, then deduct 33% tax; otherwise, deduct 24% tax. Compute tax and net salary. Write weekly hours, rate per hour, gross salary, tax, and net salary of all employees in another batch fle. Display al information for all employees. Make sure your program does the following: . Creates a file called Original.txt . Types twenty employees information and saves the file . Opens the Original file as a read mode . Creates another file through your program and calls it Copy.txt Opens the Copy file as a write mode . Reads employee's information from Original file, one at a time Calculates gross salary, tax, and net salary Writes employee's information in the Copy file Once all records are read and written, then opens the Copy file as read mode Reads information from Copy file and displays them. . Closes Original file .Closes Copy file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

3. What are the current trends in computer hardware platforms?

Answered: 1 week ago