String data type is not allowed you can make use of CString instead (char arrays with null termination). Q1. Create an Input File with the following information regarding to inventory: Item_Id Price Quantity Availability Add atleast 10 records in input file. Where item_id will be of type int , price will be of type double , quantity will be of type int and Availability will be of type char representing the status y for yes the product is available and n for not available. Write a menu driven C++ program to perform the following four tasks in a single file, if user press option 1 the task 1 get solved and so on: 1. Display the Item_Id of the products which are not available in stock on screen. 2. Copy all the available products data in a separate file. 3. Read the original input file and update the price of each item by 10 percent increase in the original price and save the complete information in separate file. 4. Try to save the information processed in part 3 in the original file by updating it instead of using separate file.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 1GZ
icon
Related questions
Question
String data type is not allowed you can make use of CString instead (char arrays with null termination). Q1. Create an Input File with the following information regarding to inventory: Item_Id Price Quantity Availability Add atleast 10 records in input file. Where item_id will be of type int , price will be of type double , quantity will be of type int and Availability will be of type char representing the status y for yes the product is available and n for not available. Write a menu driven C++ program to perform the following four tasks in a single file, if user press option 1 the task 1 get solved and so on: 1. Display the Item_Id of the products which are not available in stock on screen. 2. Copy all the available products data in a separate file. 3. Read the original input file and update the price of each item by 10 percent increase in the original price and save the complete information in separate file. 4. Try to save the information processed in part 3 in the original file by updating it instead of using separate file.
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage