Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program in C Language : Define a struct computerType to store the following data about a computer: Manufacturer (50 character string), model type (50 character

Program in C Language :

Define a struct computerType to store the following data about a computer: Manufacturer (50 character string), model type (50 character string), processor type (10 character string), ram (int) in GB, hard drive size (int) in GB, year when the computer was built (int), and the price (double).

Write a program that declares a variable of type computerType, prompts the user to the input data for the struct, and then outputs all the computer's data from the struct.

For Example:

Enter the name of the manufacturer: Dell Enter the model of the computer: Inspiron Enter processor type: I7 387 Enter the size of RAM (in GB): 32 Enter the size of hard drive (in GB): 512 Enter the year the computer was built: 1990 Enter the price: 1345.67 -------------------- Manufacturer: Dell Model: Inspiron Processor: I7 387 Ram: 32 Hard Drive Size: 512 Year Built: 1990 Price: $1345.67

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

Step: 3

blur-text-image

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago