Question
C++ Write a program to ask for Part number, part name, partclass, number in stock and unit price. The data should be read into a
C++
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, on hand balance and price): P-14376 Widget B 120 34.95 More parts? Y or N y P-16543 Wodget C 80 15.75 More parts? Y or N n
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started