Question: This should be done in Assembly Language EMU 8 0 8 6 Only. Awesome Autos needs a lot inventory management system. Using all of the
This should be done in Assembly Language EMU Only.
Awesome Autos needs a lot inventory management system. Using all of the knowledge that
weve gained in the last few sections on structs and files, you need to write a program that does
the following:
A Design a structure that can hold the information on an automobile: manufacturer
string model string color string engine size float and doors integer
B When your program is run, prompt the user to enter each of these pieces of data into
the structure.
C Once the last piece of structure data has been entered, prove the structure is working
correctly by neatly printing the structures contents to the screen.
D Write the structure out to the file.
E Allow the user to add more automobiles until they indicate that they are done repeat
steps B through D
F Close the file and print a message out to the screen once the file has been created.
G Open the file back up for reading.
H Using a loop while there is data to process:
a Clear any data in the structure out.
b Read the data back into the structure.
c Print the structure out to the screen again.
I Close the file.
Heres a sample run:
Manufacturer: Chevrolet
Model: Corvette
Color: Ticket Me Red
Engine Size:
Doors:
Add more inventory YN Y
Manufacturer: Kia
Model: Sorento
Color: Green
Engine Size:
Doors:
Add more inventory YN N
Struct information written to file C:asmtesttxt
Manufacturer: Chevrolet
Model: Corvette
Color: Ticket Me Red
Engine Size:
CIS James Assignment Page
Doors:
Manufacturer: Kia
Model: Sorento
Color: Green
Engine Size:
Doors:
Awesome Auto Lot Inventory file has been processed
Hints: Think procedures! You can simplify the code and your debugging life by writing
procedures. For example, a print structure routine, a save to file routine, a read from file
routine, et cetera. Secondly, DO NOT code this application in a single shot incrementally build
up each piece of logic otherwise you will get lost when things dont work right.
This should be done in EMU Assembly Language Only and provide full answer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
