Question: Please write code in C++/ for computersci 101 Write a program to ask for Part number, part name, partclass, number in stock and unit price.
Please write code in C++/ for computersci 101

Write a program to ask for Part number, part name, partclass, number in stock and unit price. The data should be read into a struct and passed to a function which writes it out to a data file. Part number and name will be strings, partclass is a character, number in stock is an integer and unit price is a double. Enclose your program in a do while which asks the user if he/she wants to enter more parts. Typical run: Enter part information (part number, name, class, onhand balance and price) P-14376 Widget B 120 34.95 More parts? Y or N P-16543 Wodget C 80 15.75 More parts? Y or N Part name will be a string without spaces
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
