Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

*** Create the following program in C++ language. Please limit yourself to using these libraries if necessary: iostream, fstream, cstring, iomanip, cmath, cstdlib. I'm only

*** Create the following program in C++ language. Please limit yourself to using these libraries if necessary: iostream, fstream, cstring, iomanip, cmath, cstdlib. I'm only up to arrays as far as my depth of knowledge goes. ***

Data is organized in the .txt file as follows:

manufacturer

processor

RAM (GB)

disk size (GB)

cost

location

date acquired

asset tag

However, the output needs to be like the example at the bottom of the picture below.

image text in transcribed

Create a program to read a text file of computer inventory records and display inventory labels. Each record describes one item in inventory and must be stored in a struct in your program. Create functions to complete the following tasks: . read one record and store it into a struct, format and display the information as shown in Figure 1. v the information as shown in Figure 1 Each record describes one computer and contains the following attributes in the order listed: manufacturer - string processor - string RAM (GB) - integer disk size (GB) - integer cost - double location - string date acquired - struct (short, short, int) * asset tag - string Asset Tag : Acquired: Cost: Location: Manufacturer: CPU: RAM: Disk: 20191231-PC-021 03/24/2007 $1087.99 256 Dell Core i7 8700 (3.2 GHz) 16 GB 256 GB - - - - - - - - - - - - - - - - Asset Tag : Acquired: Cost: Location: Manufacturer: CPU: RAM: Disk: 20191215-PC-045 08/01/2010 $459.00 128 HP Compaq Ryzen 2400GE (3.20 GHz) 8 GB 1024 GB ---------------------------- Figure 1. Sample output of inventory labels

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions