Give declaration and definition of a structure

Assignment Help Computer Engineering
Reference no: EM1334050

Given the following declaration and definition of a structure:

struct computer {
float cost;
int year;
int cpu_speed;
char cpu_type[16];
} model;

Write a program to display the initial values held by the structure (you must use a structure) on the screen.

When you enter the following data:

Enter the year: 1996
Enter the cost: $1234.56
Enter the CPU type: Pentium
Enter the CPU speed: 100MHz
Your output will look like this:

The type of the CPU inside your computer is: Pentium
The speed (MHz) of the CPU is: 100
The year that your computer was made: 1996
You paid : $1234.56 for your computer

Reference no: EM1334050

Questions Cloud

The key elements of abercrombie : I need help with identifiying the key elements of Abercrombie and Fitch's business strategy and how has the company chosen to position its retail brands in the apperal industry?
Polygraph as management tool for decision-making : Enumerate the strengths and weaknesses of the polygraph as a management tool for decision-making.
Finding mortgage rates : If mortgage rates increase from 5% to 10%, but the expected rate of increase in house prices increases from 2% to 9%, are people more or less likely to buy houses? ( Show your work to receive full credits).
Functions of technology in law office : What are the functions of technology in a law office and how it promotes efficiency and effectiveness.
Give declaration and definition of a structure : Write down a program to display the initial values held by the structure (you must use a structure) on the screen.give declaration and definition of a structure.
Explain traditional brick and mortar auction supply chain : Explain Traditional brick and mortar auction supply chain vs web environment and an you please explain to me how the supply chain would operate in the traditional brick and mortar auction business
The responsibility of advising management : As the accountant charged with the responsibility of advising management, what data base would you consult in order to insure that management selects the most advantageous funding strategy taking into consideration the tax consequences?
Deeply embedded organizational beliefs : Were there any particular influences from power individual or deeply embedded organizational beliefs?
Find the speed of a personal computer : Treat each of the questions individually and in the order given below. The focus of your answers should be on answering the 'why' questions posed below and your explanations for your recommendations. This is not a formal paper and APA guidelines d..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Initialize the loop control variable before the program

In boy of the loop, I need to multiply the value of the loop control variable by 10 and by 100, then I want to change the value of the loop control variable in the body of loop.

  Add items to the arraylist

Add items to the ArrayList, one at a time, based on user typed input. The user will be prompted for the String to be stored in the ArrayList and then hit enter. The user would be able to continue to add items to the ArrayList until they just hit e..

  Advantages of technologies

List some of the advantages of some of current technologies explained in our reading this week involving VoIP, Virtual Private Networks, Unified Communications, Wi-Fi and wireless technologies such as RFID.

  Determining the i/o access speed

Determine the I/O access speed utilizing the CPU 3 and each of the hour disk drives as they evaluate the following track requests: 0, 31, 20, 15, 20, 31, 15.

  Program meeting the least program requirements

Incorporate ADO.NET access to at least three Microsoft Access data tables. These tables must include Customers, Products (the kinds of products offered, cost, sales price, and quantity on hand), and Sales information (a combination of customer and..

  How to write a program to generate a table of factors

Write down a program to generate a table of factors used to compute monthly payments for the money borrowed.

  Find terms of elimination of redundant data

Thinking in terms of elimination of redundant data hopefully eliminating data corruption from operator input, would it not make sense to normalize and let new Duo-Core, Quad-Core processors take-up the slack and even decrease query times.

  Develop a plan on how to support a business

Develop a plan on how to support a business need with software, this software will have data points that we need to map.

  Make program that displays a digital clock in a window

Write down a program that displays a digital clock in a window using an applet. The clock should show, day of week, date, time, time zone and year.

  Create the definition of the function

Write down the definition of the function template moveNthFront that takes as a parameter a queue and a positive integer, n. The function moves the nth element of the queue to the front.

  Write a program displays the sum, average, product

Write down a Visual Basic application that inputs three integers from the user and displays the sum, average, product, smallest and largest of the numbers in an information message dialog.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd