Suppose that you have the following definitions:
struct time Type
struct tourType
{
int hr;
double min;
int sec;
string cityName;
int distance;
timeType travelTime;
};
};
a. Declare a variable destination of type tourType.
b. Write C++ statements to store the following data in destination: cityName - Chicago, distance -- 550
miles, travelTime - 9 hours and 30 minutes.
c. Write the definition of a function to output the data stored in a variable of type tourType.
d. Write the definition of a value-returning function tat inputs data into a variable of type tourType.
e. Write the definition of a void function with a reference parameter of type tourType to input data in a
variable of type to tourType

Answers

Answer 1

Suppose that you have the following definitions:struct time Type struct tourTypen the variable destination of type your type are tourType input(){cout<<"Enter the city, distance and time in hr and min"<>destination.city name;

What is C++ statements?

Expression statements. These statements examine an expression for its aspect outcomes or for its go-back value. Null statements. These statements may be supplied in which a declaration is needed with the aid of using the C++ syntax however in which no motion is to be taken.

#include#includethe use of namespace std;struct timeType;struct tourType;tourType destination;tourType input(){cout<<"Enter the city, distance and time in hr and min"<>destination.cityName;cin>>destination.distance;cin>>destination.travelTime.hr;cin>>destination.travelTime.min;go back destination;}void display()cityName;d.distance = t->distance;d.travelTime.hr = t->travelTime.hr;d.travelTime.min = t->travelTime.min;">int main().

Read more about the variable :

https://brainly.com/question/2804470

#SPJ1


Related Questions

what is the function of computer?​

Answers

[tex]\huge\purple{Hi!}[/tex]

the four basic function of a computer are input, storage, processing and output.

what actions should be taken on improvement backlog items from the problem-solving workshop

Answers

Actions that should be taken on improvement backlog items from the problem-solving workshop are:

The team then casts a combined vote on the top three possibilities.The following PI Planning event will receive them rephrased as improvement stories and features. The RTE assists in making sure that the pertinent work required to deliver the specified changes is planned throughout that time.By closing the loop, action will be taken and the appropriate personnel and resources will be committed to enhancing the current situation.

What is problem solving workshop ?

The ART conducts an organized, root-cause problem-solving workshop to address systemic issues. Instead than focusing only on the symptoms of an issue, root cause analysis offers a set of problem-solving tools used to determine the true causes of a problem. In a timebox of two hours or less, the RTE often facilitates the session.

Learn more about problem solving workshop here https://brainly.com/question/14362975

#SPJ10

When dividing it’s total debt by total equity what’s a company trying to measure

Answers

Answer:

A business's debt-to-equity ratio, or D/E ratio, is a measure of the extent to which a company can cover its debt. It is calculated by dividing a company's total debt by its total shareholders' equity. The higher the D/E ratio, the more difficult it may be for the business to cover all of its liabilities.

When dividing its total debt by total equity, a company is trying to measure its leverage or debt-to-equity ratio.

What does this indicate?

This ratio indicates the proportion of debt used to finance the company's assets compared to its equity. It helps assess the company's financial risk and its ability to meet its debt obligations.

A higher debt-to-equity ratio implies higher financial leverage and indicates that the company relies more on debt financing, which can increase its financial risk. Conversely, a lower ratio suggests a lower reliance on debt and a stronger financial position.

Read more about debt-to-equity ratio here:

https://brainly.com/question/27993089

#SPJ2

The commented line states that I have assigned a 2D array to a pointer but I want array of such pointers which could store numbers of 2D Array.

Answers

It is impossible to store numbers or contents of 2D array to a pointer array.

How to store pointers in 2D Arrays?

Arrays and pointers are different data structure elements, and there is a limit to the operations that can be performed on both.

Having said that, it is impossible to store numbers or contents of 2D array to a pointer array.

The closest you can do, is to use the following declaration:

int *p[] = {(array-type [][number of columns]) {Array-content}}

Read more about arrays and pointers at:

https://brainly.com/question/17355709

#SPJ1

Answer:

Get the element => *( (int *)aiData + offset ); calculate offset => offset = (1 * coloumb_number)+ 2); Add offset in array base address => (int *)aiData + offset; //here typecast with int pointer because aiData is an array of integer Get the element => *( (int *)aiData + offset );

what are differences between Ram and Rom?​

Answers

Answer:

RAM, which stands for random access memory, and ROM, which stands for read-only memory, are both present in your computer. RAM is volatile memory that temporarily stores the files you are working on. ROM is non-volatile memory that permanently stores instructions for your computer.

Explanation:

Answer:

RAM is random access memory - we can have it even after we shut down the computer. it is volatile .it stores temporarily.

ROM - Read only memory. it is non volatile memory. we can only have it until computer is turn on. after that it's gone.it stores memory permanently

What type of software can Agile and DevOps be applied

Answers

Answer:

STATA AND SPSS

Explanation:

these are mostly widely used statistical package in modern statistical calculations. it is minimizes times and as well as resources.

compare the results of both the RATS and Skipfish reports.

Answers

Answer:

The results of both reports RATS is known nas mouse and skipfish is known as one type of fish

What is not a computer software?
a. web browser
b. powerpoint
c. motherboard

Answers

Answer:

Motherboard

Explanation:

Its a device in the computer that helps it run while powerpoint and web browser are just things you can do with your computer to make or create information.

When replacing a defective switch what is necessary characteristic of a new switch

Answers

The complete question is :

When replacing a defective switch, what is a necessary characteristic of the new switch?

Select one:

a. Greater number of poles and throws than the original switch

b. The same number of positions as the original switch

C. Identical cover plate as the original switch

d. Greater current ratings than the original switch

So, according to it the correct answer is option d. Greater current ratings than the original switch.

What is a switch?

A switch is a component of physical circuitry that controls the flow of signals. A switch or toggle switch enables the opening or closing of a connection. The switch permits a signal or power to pass through the connection when it is opened. The switch cuts the circuit connection and halts the flow when it is closed.

Learn more about switches here https://brainly.com/question/14883923

#SPJ10

3. Which of the following is most likely fake news?
O A. Content from a website that ends in ".edu"
OB. A news site that lists all of its contributing authors
OC. An article that tries to sell you miracle weight loss pills
O D. An academic resource listed in a bibliography

Answers

Answer:

C. An article that tries to sell you miracle weight loss pills

What should the Dhruv consider when connecting to the Internet in a public place? Select all that apply.

Answers

Dhruv should be more careful while using internet in a public place

The Electronics Communications Privacy Act allows the government to have access to....?

Answers

Personal information like who the person is, what they do, and where they go are the information that can be accessed by the government under the Electronics Communications Privacy Act.

What is Electronics Communications Privacy Act?

Electronic Communications Privacy Act allows the government to have the authority to the suspicious activity that takes place at social sites or through the use of electronic devices.

The unlawful acts and issues are overseen so that any violent circumstances do not arise. The data is provided through networking sites, cell phone providers, etc.,

The suspicious and unlawful activities are tracked through the electronic device that allows the government to keep track of the activities that can be a threat to them and the country.

Therefore, the act allows the government to track personal information which is unlawful and unauthorized.

Learn more about Electronics Communications Privacy Act here:

https://brainly.com/question/3773028

#SPJ1

Please help me with this , it would really mean alot , you may leave some if you don't know some of the answer <3​

Answers

Answer:CLMFIAOJEBHQPRNSGPD

Explanation:

HOPE MY ANSWER IS HELPFUL FOR YOU!

I DO MY BEST!!!!

PLEASE MARK AS BRAINLEST ANSWER

identify four input devices that can convert hard copy pictures or into a digital format ​

Answers

Answer:

(a) graphics tablet

(b) scanner

(c) MICR

(d) OMR

Software that functions as an electronic version of a filing cabinet?

Answers

Answer: There are a lot of choices

Explanation: do you want a database? You can obtain a terabyte or even larger size thumb drive or USB drive

Do want a print server? a networked drive specific for your data and if you have  to   print out anything

Do you want a connected drive to send all your documents to with organized folders?  any size drive will work for this they come all prices

Enter the electronic filing system, sometimes called document management software. These computerized filing systems provide electronic file management. In other words, they give us a simple way to store, organize, and retrieve digital files and digital documents and pdfs.

https://www.filecenter.com/info-electronic-filing-system.html here is some good software

Design a program that asks the user for a series of names (in no particular order). After the final person’s name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb.
In pseudo and java

Answers

The program for the same in python is as follows :

#This gets the count of names to be input

count = int(input("Total names: "))

#This initializes the list of names

names = []

#This iteration gets all names

for i in range(count):

  #This gets a name

  name = input("Enter a name: ")

  #This appends it to the list

  names.append(name)

#This sorts the name

names.sort()

#This prints the first and the last name, alphabetically

print(names[0] + " " + names[-1])

Learn more about such codes here https://brainly.com/question/22654163

#SPJ10

What is wrong with this case statement -> case (x > 2):
A. cases can't have a test condition
B. cases must be capitalized
C. cases must use a ; and not a :

Answers

Answer:

A: cases can't have a test condition

Explanation:

Under the hood, switch statements don't exist. During the mid-stage of compilation, a part of the compiler will lower the code into something that is easier to bind. This means that switch statements become a bunch of if statements.

A case in a switch statement acts upon the switch value. Think of the case keyword as the value you pass into the switch header:

int x = 10;

switch (x)

{

case (x > 2):

     // Code

     break;

}

// Becomes

if (x(x > 2))

{

// Code

}

// Instead do:

switch (x)

{

case > 2:

     // Code

     break;

}

// Becomes

if (x > 2)

{

// Code

}

which of the following will not be considered in improved business performance planning ? A. bussines profitability B.. Ignoring new idea c. efficient resourse utilization D. bussiness risk management

Answers

Among the following option B. Ignoring new idea will not be considered in improved performance planning.

What is buisiness performance planning?

Performance planning is the term used to describe a company's systematic process for determining and preparing an individual's or organization's goals, as well as the most effective means of achieving them. Both the company and the employee participate in the planning process through a formal plan called the development plan.

A company must successfully utilize new ideas in order to advance its operations, introduce fresh goods and services to the market, boost productivity, and, most significantly, raise profits.

So, new ideas must not be ignored .

Learn more about buisiness performance planning here https://brainly.com/question/25922327

#SPJ10

Answer:

Among the following option B. Ignoring new idea will not be considered in improved performance planning.

Explanation:

total_coins = 0

nickel_count = int(input())
dime_count = int(input())




print(total_coins)

Answers

The code statement that completes the program is total_coins = nickel_count + dime_count

How to complete the segment?

From the code segment, we have the following highlights:

total_coins is initialized to 0, at line 1Inputs for nickel_count and dime_count are taken on lines 2 and 3The last line prints total_coins

The above means that total_coins has not been calculated.

This is calculated using:

total_coins = nickel_count + dime_count

The above must be placed before the last line of the program

Read more about code segments at:

https://brainly.com/question/24833629

#SPJ1

Complete question

Complete the code segment to calculate the total number of coins

total_coins = 0

nickel_count = int(input())

dime_count = int(input())

print(total_coins)

Where can you get help to create citations for ProQuest articles?

Select one:

a.

By checking the USP handbook

b.

All of the above

c.

By using ProQuest's "CITE" button

d.

By checking your writing textbook

Answers

B is the correct answer , check under citations in the index .

Efficiency in computation is achieved by

Answers

Answer:

Computational efficiency measures the amount of time or memory required for a given step in a calculation, such as an evaluation of a log posterior or penalized likelihood.

Statistical efficiency typically involves requiring fewer steps in algorithms by making the statistical formulation of a model better behaved.

Q For each of the following words identify the byte that isstored at lower memory address and the byte that is stored athigher memory address in a little endian computer.
a. 1234
b. ABFC
c. B100
d. B800

Answers

C is the correct answer for this question

which of the following is not an internet service?
(a) E-supermarket
(b) Blogging
(c) E-commerce
(d) E-mail​

Answers

Answer:

Blogging is not an internet service.

Hope it helps!

E. Write an algorithm to show 'How to prepare a cucumber sandwich?". ​

Answers

Answer:

Place slices of bread on plate, side by side...

Postcondition: Sandwich is ready to eat.

Step 1: Start with the number 1.

Step 2: find another person and form a pair.

Step 3: add your numbers together.

Step 4: one person from the pair sits down.

Step 5: the other person goes back to step 2.

Create a defined name for range b6:e6 using walkup as the range name

Answers

In order to create a defined name for the range, one must follow the steps below.

What are the steps to creating a named range?

Step 1 - Select the concerned range (Rows and columns inclusive of the labels)Step 2 - From the Ribbon above, select Formulas. Then select "Create From Selection".From the "Create From Selection" dialogue box, select the option that is indicative of the location of your row / column.Click "Ok".

Learn more about Named Range at:
https://brainly.com/question/13396823
#SPJ1

How to change the command prompt of a computer​

Answers

- Open the Terminal tab in the Command Prompt's Properties window.
- Next, in the Terminal Colors section, select the options you want to change
- You can also change the cursor type to Underscore, Vertical Bar, Empty Box, or Legacy Style.

1.Which thematic group uses technology to direct the behavior of dynamical systems, ensuring that they behave in a predictable manner?
2.Which thematic group creates circuits with miniature, packaged components that directs and control electricity?

a.Communication Systems
b.Control Systems
c.Computer Systems
d.Energy Systems
e.Electronic Systems

Answers

Dynamic systems are governed by control systems, whereas electronic systems contain the minuscule parts required to conduct electricity. Option E is correct.

What are groups?

People who concentrate on the same issue or idea form thematic groups. Individuals with experience in diverse systems make form thematic teams working on various initiatives and concepts.

In order to achieve the intended outcome, the control system's main purpose has been to govern dynamic systems.

The electronic system theme group's job is to put electronic miniatures in systems that act as power-control mechanisms. Thus, option E is correct.

Learn more about thematic groups. here:

https://brainly.com/question/14835569

#SPJ1

Pls guys I need help fast my PC is new and it can't connect to a network

Answers

Answer:

There are several reasons why your PC might not be able to connect to Wi-Fi. You should first make sure that your PC's Wi-Fi adapter hasn't been turned off, or needs to be reset. The issue might also be with the Wi-Fi, not your PC — make sure that it works on other devices.

Answer:

Use ethernet cable, it worked for me!

Create a scenario of a hypothetical company that needs an information system. This scenario should include the following information:
a) Size of the project
b) Staff/experts availability
c) System level of criticality
- Then explain the development methodology (waterfall, agile …etc.) would you choose in this case? Why?

Answers

A  hypothetical company that needs an information system is Memphis drilling and construction company.

What is the size of a project?

This is known to be the  the number of firms taking part in the project and thus in the case above, it is small project.

In terms of Staff/experts availability, there are experts from the mining industry with years of experience, soil survey analyst as well as other minor staff.

In terms of System level of criticality, it is big because the extent to drilling will make use of the information system and other major decisions made.

Learn more about  information system from

https://brainly.com/question/14688347

#SPJ1

How ict tools changed the way we live explain it​

Answers

Answer:

How does ICT change our way of living?

ICT has contributed a lot to change our everyday life such as letter to e-mail, market shopping to on-line shopping, classroom learning to e-learning, etc. This paper present's the effects of ICT as Home and Domestic Activities, Social Networking, Education, Health, Commerce, Banking, and Employment.

Other Questions
A router is performing basic routing functions. What will be the third step in the transmission of a packet? Which of the following statements is true? At a sale this week, a desk is being sold for $561. This is 68% of the original price. What is the original price? contraction of tomorrow is Alec paid the bill for dinner with his clients which totaled $140 before tax and tip. If an 8 percent sales tax was added to the cost of the meal, and an automatic tip was added in the amount of $25.00, what was the total cost of the dinner? Graph the following non-linear system of equations and identify the two solutions. y=2x 7x+3y=3 What type of function is the equation y=2x ? Linear [ ] Quadratic [ ] Exponential [ ] What type of function is the equation 7x+3y=3 ? Linear [ ] Quadratic [ ] Exponential [ ] Use your graph below to identify the two solutions to this non-linear system of equations. Note: All solutions to this problem are whole numbers. None of the answers are decimals or fractions. List the solution, (x,y), with the smallest x value below. x= __________ y= __________ List the solution, (x,y), with the largest x value below. x= __________ y= __________ Albert Einstein changed the way we think about gravity by using the results of many new experiments to explain that giant objects like Earth bend the space around them. According to Einstein, this bending of space makes smaller objects move toward larger objects.Which statement best explains whether Einsteins idea is a theory or a law?It is a theory because it is a statement of fact that does not include an explanation.It is a theory because it was developed with many new experiments, and it explained the observations.It is a law because it is a statement of fact that does not include an explanation.It is a law because it was developed with many new experiments, and it explained the observations. You just received an email from a coworker letting you know that some of your friends are going to get together after work and go out for dinner. What should you do with this email? Which claim is best supported by the evidence that many members ofmodern theater audiences will refuse to say "Macbeth" in a theater?OA. Modern theater audiences are not well educated.B. Modern theater audiences can be superstitious.C. Modern theater audiences are not respectful of Shakespeare.OD. Modern theater audiences are confused by Macbeth. X+24=35 how to solve this Cod fry often settle under the bell of some jellyfish species, whose tentacles are poisonous. Name the form of relationship illustrated by this example. Assume the mechanism of formation of this device slope of (0,1) and (4,3) Tony is giving a presentation about needed repairs to the exterior of the small condo building where he lives. He is speaking to other residents at a meeting in the building. In introducing his presentation, he notes how the building's appearance can directly affect the property value of each of their condos. How has Tony gained interest for his presentation Text: Diagram:How to Set Up a Freshwater AquariumOne hobby you might consider is building andmaintaining an aquarium. This requires very fewmaterials, and can easily be set up in anafternoon, after you have purchased materials.Gathering MaterialsyouYou will need a few materials to get started. First,will need an aquarium and a stand. Irecommend a medium tank of 25 gallons. Youwill also need a top to the tank to keep out dust.You will need a submersible heater,thermometer, and filter to keep the environmentwarm and clean. You will need a water-testing kitand a chlorine neutralizer. Finally, you will buyHow do the text features support the purpose of thearticle? Check all that apply.Headings make it easy to locate different tasks insetting up the aquarium.A numbered list makes the steps for setting up thefiltration system easy to follow.O The diagram illustrates how the parts of the filtrationsystem fit together.O The diagram shows where the filtration system islikely to break.The title states the purpose of the article.Done how do you say "Tiny Alex loves pizza" in spanish Millie needs a total of 7.8 feet of ribbon for a school project. She needs 0.7 more feet of ribbon. How much ribbon, in feet, did Millie already have? Write and solve an equation to find the answer.6.97.17.58.5 Find the value of z its math help me out what concept did the ancient Greeks develop and is now considered the greatest gift to western civilization of today??? Write a composition on a topic! The doctors aremore useful than famers (write at Leasteight points)