1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dybincka [34]
3 years ago
12

Declare a structure whose tag name is Server and that contains the following fields: manufacturer, a string, model and serialnum

, both also strings, year, an int, clockSpeed, a double, cores, an int, ram, an int and finally storage an int. In addition, declare a array named emp of 30 of these structures. Assign the value 12 to the last element of the arr field of the last element of emp. Assign 3.5 to the d field of the first emp element . Assign the string Hello to the k'th element of emp (assume k has been declared as an integer variable and assigned a value in the range of the array elements ).
Computers and Technology
1 answer:
elena55 [62]3 years ago
3 0

Answer:

Hi there Smartcreeper! You can declare structs in C++ to answer this question. Please refer to my explanation below.

Explanation:

A struct in C++ allows us to define a structure with different data types into a single collection. The "emp[30];" at the end of the struct declares an array of the Server structure of size 30. The assignments to different components as required in the question are made and printed out to the console to verify.

#include <iostream>

#include <string>

#include <sstream>

using namespace std;

struct Server {

   string manufacturer;

   string model;

   string serialnum;

   int year;

   double clockSpeed;

   int cores;

   int ram;

   int storage;

} emp[30];

int main()

{

   int k = 5;  

   int d = 2;

   emp[30].storage = 12;

   emp[d].manufacturer = 3.50;

   emp[k].model = "Hello";

   cout << emp[30].storage << endl;

   cout << emp[d].manufacturer << endl;

   cout << emp[k].model << endl;

}

You might be interested in
What do people in the movie e.t think about the character E.T
sweet-ann [11.9K]

Answer:

They were scared of him then they felt devotion to him.

Explanation:

3 0
3 years ago
How do IT security workers help business
Elodia [21]
They code and learn how to go in the inner and deeper parts of the computer
6 0
3 years ago
The interprets the data while it is in RAM​
Katena32 [7]

Answer:

The input interprets the data while it is in RAM.

Explanation:

5 0
3 years ago
A) What is the maximum value that can be represented as an unsigned n-bit binary integer?
My name is Ann [436]

Answer:

The maximum value that are represented as unsigned n -bit binary integer is 2^n-1. The unsigned binary integer refers to the fixed point of the system that does not contain any fractional digits.

The unsigned binary integer contain module system with the power 2. The number of student table in the class is the best example of the unsigned integer. The numbers can be represented by using the binary notation and bits in the computer system.

5 0
3 years ago
Each time an end user clicks a hyperlink, the browser generates a(n) _____ page request that is sent to the designated web serve
irina1246 [14]

Answer:

HTTP GET

Explanation:

The Hypertext Transfer Protocol (HTTP) is designed to enable communications between clients and servers and it uses the GET method to request data from the specified resource using the TCP/IP Internet protocol.

4 0
3 years ago
Other questions:
  • Heatsinks used to protect cpus in computers from overheating, are shaped so that their surface area is very large. why is that?
    5·1 answer
  • HELPPP ASAPP
    8·2 answers
  • Movies may depict larger-than-life situations, such as calamities, superheroes, and spaceships. A helps show such extraordinary
    11·1 answer
  • Write a program that does the following:
    11·1 answer
  • Question 1 of 10 Chase lives in Oregon but works for a company that is located in Florida. What business trend is this an exampl
    11·2 answers
  • 11. Its collection of toys which could be used in the game via an implanted RFID chip made Activision’s game _______ one of the
    7·2 answers
  • Which of these is NOT a usual result of having friends at work?
    8·1 answer
  • What kind of skill is persuasion?
    7·1 answer
  • 10. List three adaptations of wind-pollinated plants to promote pollination.<br>​
    12·1 answer
  • HELP!!!
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!