Define a struct computerType to store the following data about a computer: Manufacturer (50 character string),...

90.2K

Verified Solution

Question

Programming

Define a struct computerType to store the following data about acomputer: Manufacturer (50 character string), model type (50character string), processor type (10 character string), ram (int)in GB, hard drive size (int) in GB, year when the computer wasbuilt (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 outputsall the computer's data from the struct.

For Example:

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

Answer & Explanation Solved by verified expert
3.7 Ratings (450 Votes)
include struct computerType char manufacturer50 char model50 char processor10 int ram int hardDrive int year double price int main struct computerType    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students