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 procedures are involved in saving a file for the first time?
GuDViN [60]
<span>Selecting save from the file menu..</span>
3 0
3 years ago
Read 2 more answers
1.
aev [14]

The pictures that people post and the likes that they receive have the power to influence the actions of the people who see them.

Answer: Option (A) is correct

<u>Explanation:</u>

The pictures and the text that is posted on social media have a great influence on the actions of a person viewing it. So it is of utmost consideration that whatever we share on social media should have a positive impact on the actions of the viewer.

Social media has become an important part of our lives, and if something negative is posted by someone on this platform, then it might influence our mind and we will respond accordingly. So it advisable to always post correct and positive content on social media to get good and encouraging feedback.

7 0
3 years ago
Read 2 more answers
What tool should you use to extend network services beyond the demarc.
ladessa [460]

Punchdown tool is the tool should you use to extend network services beyond the demarc.

<h3>What is a punchdown tool?</h3>

The punch down tools are known to be set of tools that one can use to stop wires into punch down patch panels and bring down keystone jacks.

Note that a tool head blade is often employed  to push a wire conductor into a IDC terminal slot and as such this Punchdown tool can help you to extend network services beyond the demarc.

Learn more about network services  from

brainly.com/question/3521925

3 0
2 years ago
What is the full from of CPU?​
scZoUnD [109]

Answer:

CPU is known as <u>Central</u><u> </u><u>Processing</u><u> </u><u>Unit</u><u>.</u>

8 0
3 years ago
Read 2 more answers
⭐️⭐️ help with python - check image ⭐️⭐️
alukav5142 [94]

I don't know of the top of my head, but try stack overflow for anything coding related.

8 0
3 years ago
Read 2 more answers
Other questions:
  • What is a “spoof” of an ad ?
    8·2 answers
  • Create a class CitiesAndCountries with at least three methods: class CitiesAndCountries: def add_country(self, country_name): ""
    7·1 answer
  • Chris needs to modify the default bullets that are used in a nonnumbered list in word. Which method should he use?
    9·2 answers
  • Do most of you agree on a primary interpretation? Why?
    14·1 answer
  • _____ is the software that protects you computer from harmful files, Trojan horses, and worms.
    13·2 answers
  • How is the illusion of animation achieved using Sprites with multiple costumes?
    12·1 answer
  • Find true or false. A hacker is hacking software with access in sensitive information from your computer​
    9·1 answer
  • The<br>tool can lighten the part of an<br>image.*<br>Your answer​
    13·1 answer
  • What term is used to describe selecting and viewing information in a database?
    6·2 answers
  • (2 points) starting from the root node, we want to populate a bst with the keys in a given list without altering the key order.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!