Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programming in C language to be run on code blocks on Windows. Please include the created file from part 1 into part 2. 3. (File

image text in transcribed

Programming in C language to be run on code blocks on Windows. Please include the created file from part 1 into part 2.

3. (File Processing- Writing) The same Bicycle shop that contracted you to write the double array problem in HW5 has now decided that they want to keep a log of all employee transactions. Write a program that will allow users to enter in their name (you only need to use first name) and the item that they sold (for example, "James Bicycle") After each employee types in a sale, your program should record that sale in a file called sales.txt. Each sale should comprise one line of the sales.txt file (thus, be sure to use a in after each sale). At the end of the day when the manager types in quit quit' the program should terminate 4 (File Processing-Reading) Now that we have all of our sales recorded in a file, the manager wants to be able to look up the sales any employee had. White a program that will read the data file written in problem 3. Your program should prompt the user to enter the first name of an employee. Once the user enters the employees name, your program should go through the file and print out any items that employee sold. After you have finished printing out all the items sold by the employee, ask the user if he/she would like to search for another employees items. Continue this until the user enters quit

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

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions

Question

Timeline of what website we create

Answered: 1 week ago