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
The ____ is a new feature in versions of microsoft office, starting with office 2007; it consists of tabs, which contain groups
lions [1.4K]
Excel i think that's correct
5 0
4 years ago
Edmentum Question- Consumer and Credit Loans
Alina [70]

Answer:

D, if the debtor fails the means test

Explanation:

i took the test on platos and got it right

7 0
3 years ago
A(n) ________ is a server-based operating system oriented to computer networking and may include directory services, network man
Ganezh [65]

Answer:

Network Operating System (NOS)

Explanation:

A network operating system (NOS) is an operating system that makes different computer devices connect to a common network in order to communicate and share resources with each other using a server. A network operating system can be used by printers, computers, file sever among others, and they are connected together using a local area network. This local area network which they are connected to works as the server.

The NOS also acts as a network security because it could be used as an access control or even user authentication.

There are two types of NOS

1) Peer to peer network operating system.

2) Client/server network operating system

A network operating system (NOS) is a server-based operating system oriented to computer networking and may include directory services, network management, network monitoring, network policies, user group management, network security, and other network-related functions.

4 0
3 years ago
Which software application should be used to create a sales pitch to a group of people? Database Email Presentation Word process
Bogdan [553]
Hello,

The answer is option C "presentation".

Reason:

The answer is option C presentation because presentations are used in order to show businesses sales pitch or there products in order to get a investment.

If you need anymore help feel free to ask me!

Hope this helps!

~Nonportrit
7 0
3 years ago
The order or sequence of rules in a prolog program is usually critical.​
kifflom [539]
<span>The statement that the order or sequence of rules in a Prolog program is usually critical. is false.  </span>Prolog programs are simply knowledge bases. And knowledge bases are collections of facts and rules which describe some collection of relationships that we find interesting.
8 0
4 years ago
Other questions:
  • The efficiency for recursively traversing a chain of linked nodes is
    15·1 answer
  • Most OEMs recommend that the engine oil be replaced and a new filter installed at which of the following mileage intervals ?
    7·1 answer
  • Djdjdjdjdjdjdjdjdjjdjdjdjdjdjdjdjdjdjdj
    13·2 answers
  • What advantage does having ultraviolet vision give bees?
    10·2 answers
  • We have the following class:
    6·1 answer
  • Original list:0,0,0,0,0,0,0,0
    10·1 answer
  • 9
    10·1 answer
  • Helpppppppp!!!!!!!! Some program menus are the same in every program you open. Under the File menu, all of the following are the
    15·2 answers
  • Which of the following is not a method of the history object?
    11·1 answer
  • Which work habits should you follow to increase work efficiency and avoid health issues?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!