Question: Written in c++ I am having a hard time doing this on xcode. If someone could please help me I would greatly appreciate it. Please

Written in c++
 Written in c++ I am having a hard time doing this
I am having a hard time doing this on xcode. If someone could please help me I would greatly appreciate it. Please leave comments next to code. Thank you.

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

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!