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
marysya [2.9K]
3 years ago
10

Write a declaration for a class named City, which has the members cityName, a string, and position, a Location structure (declar

ed above). Then define a variable named destination that is an instance of the City structure, as if it were being used in main.
Computers and Technology
1 answer:
olga2289 [7]3 years ago
6 0

Answer:

Following are the statements for the above question in c++ language:-

class City  //Class definition.

{

string cityName;  //String data type for cityName variable.

Location position;  //Structure Location data type for position variable.

};

City destination; //class city variable destination.

Explanation:

  • The above question asked to declare a class whose name is the city which contains the two variable cityname of type string and position of type Location structure which is defined above. So the above-defined are the statement which does all task.
  • But before the use of it, any user needs to define the location structure otherwise the statement "Location position;" gives the compile-time error.
  • The syntax to define a class and the instances is defined below :-

             Class class_name

             {

                  //datatype variable

           }

              class_name instances_name;

You might be interested in
Ranges of IP address that anyone can use for their internal networks are known as ______.
Rama09 [41]
Since no answer choices, have to deduce it is Private Networks
8 0
3 years ago
Read 2 more answers
Fill in the blanks Pasaline could ----- and ------- very easily.​
Artemon [7]

Answer:

<h2>Hot you too friend's house and be safe and have a great time to take care of the following is not a characteristic it was a circle whose equation o</h2>
6 0
3 years ago
If you want to clear an operating system's temporary files for storage, performance, or privacy reasons, you should run a disk _
VashaNatasha [74]

Answer:

Cleanup is correct:)

Explanation:

8 0
3 years ago
Lydia is trying to take an aerial shot from the window of an airplane. Where should she hold her camera to get the best shot?
IrinaVladis [17]
Inside The window inside the house
8 0
3 years ago
In the context of firewall as a nonbiometric security measure, a _____ is software that acts as an intermediary between two syst
irga5000 [103]

Answer:

Proxy Server                        

Explanation:

  • Proxy server is a server that acts as a mediator between two systems.
  • One system can be your computer and the other can be the server to which you are asking a service, such as requesting a web page.
  • Lets suppose you request a web page from a server and you type a URL of a website to access a web page.
  • This request goes to proxy server which sends this request on your behalf to the target server in order to retrieve that web page.
  • Proxy server makes this request to the target server on the internet by using one of its IP addresses.
  • When the proxy server gets that web page, it will forward that web page to your requesting computer.
  • If you request a specific service such as a website frequently the proxy server saves that website on its cache.
  • So if you request that website again, proxy server will forward it to you from its cache rather than requesting it again from the target server on your behalf resulting in quick response to the user's request.
  • Proxy servers provide users with privacy to access the websites, and they can surf the internet anonymously .
8 0
3 years ago
Other questions:
  • All languages from the second generation on must be translated into machine language for the computer to be able process the inp
    8·1 answer
  • Jackson is teaching the decimal number system. He wants his students to know how to expand numbers by powers of 10. Which is the
    13·2 answers
  • if your computer is frozen, what is something you would do to troubleshoot the problem? A. check if the monitor is plugged in B.
    15·2 answers
  • Mobile devices need to work within limited screen space .
    11·1 answer
  • Hard drives have the largest capacity of any storage device. <br> a. True <br> b. False
    6·2 answers
  • What three things in the third generation of computing helped get programming enthusiasts more involved with computers? Select 3
    12·2 answers
  • During the Inspect and Adapt event, how are reflection, data collection, problem solving, and identification of improvement acti
    5·1 answer
  • Encapsulation is a form of information hiding and an important characteristic of object-oriented programming. When a programmer
    6·1 answer
  • SOMEONE PLEASE HELP!! i’ll give brainliest
    14·2 answers
  • I'm having trouble with an assignment of mine. I'm making a text based adventure game for extra credit in my class and I'm stuck
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!