Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!