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
myrzilka [38]
2 years ago
5

Consider the declaration of the struct houseType given in this chapter. Suppose firstHouse and secondHouse are variables of hous

eType. Write C11 statement(s) to compare the style and price of firstHouse and secondHouse. Output true if the corresponding values are the same; false otherwise. (2, 3)
Computers and Technology
1 answer:
Ilia_Sergeevich [38]2 years ago
6 0

Answer:

See Explanation

Explanation:

The question is incomplete as there is no link pointing to the houseType struct of chapter 1.

So, I've answered the question from scratch

See attachment for explanation where I used comments to explain each line.

The program is as follows:

#include <iostream>

using namespace std;  

struct houseType{

   int firstHouse, secondHouse;

};

int main() {

   houseType hT;      

   cout << "Enter the price of both house: ";

   cin>> hT.firstHouse;

   cin>> hT.secondHouse;

   if(hT.firstHouse == hT.secondHouse){ cout<<"true";    }

   else{ cout<<"false";    }  

   return 0;

}

Download cpp
You might be interested in
In the case below, the original source material is given along with a sample of student work. Determine the type of plagiarism
Katyanochek1 [597]

Answer:

B. Paraphrasing plagiarism

Explanation:

<em> Paraphrasing plagiarism:</em>

This is when the sentences or words of the original source of information is being rephrased or stated in your own words.

The type of plagiarism in the student work is a paraphrasing plagiarism because the information in the original source was rephrased by the student using his own sentences and words to express the information in the original material. Also the referenced author was  acknowledge without acknowledging the original author of the material.

8 0
2 years ago
What is the correct keyboard shortcut to cut a cell value
vladimir2022 [97]

Answer:

Cntrl+X

Explanation:

Do it on your computer

4 0
2 years ago
When installing the latest version of Internet Explorer, a dialogue box pops up with a box checked telling you that Bing will be
meriva

Answer:

B) opt-out identify

Explanation:

To opt-out means refusing to or avoiding to accept unsolicited refers to  products or service information. In this caseyou are refusing to accept Bing as your default search provider

8 0
2 years ago
Discuss the importance of top management commitment and the development of standards for successful project management. Provide
sasho [114]

Answer:

Significance of top administration responsibility: Top administration duty assumes an indispensable job in the development of any association. The duties of top administration decied the future objective of the association. So we can say that the development of association is straightforwardly proportional to the duties set by the top administration.

The viable and effective headings and the duties bargains the association to achive the arranged objectives and the objectives.

Improvement of Standards: Development of norms are likewise significant in any association. The quality check of the association or the review is being finished dealing with the these measures. So we can say that the nature of association is estimated on the bases of norms set. That is the reason its essential to set the gauges

initially, characterize the measures and flow it inside the association. Since it by implication sway the nature of any association.

For example if we are developing any project that its important that we should be clear about the expectation and commitments set by the top management regarding the

project and it should be developed on the standards set by the organization. Because without these two fators it may happen that our project fails in real

scenario

1. Difficulties in regards to asset the board.

2. Difficulties with respect to cost and budgetary needs

3. Difficulties in regards to innovations and skiils

4. Difficulties in regards to convenient conveyance of the task

Explanation:

4 0
3 years ago
C++
Cerrena [4.2K]

Answer:

#include <iostream>

#include<iomanip>

using namespace std;

double DrivingCost(double drivenMiles, double milesPerGallon, double dollarsPerGallon)

{

  double dollarCost = 0;

  dollarCost = (dollarsPerGallon * drivenMiles) / milesPerGallon;

  return dollarCost;

}

int main()

{

  double miles = 0;

  double dollars = 0;

  cout << "Enter miles per Gallon   : ";

  cin >> miles;

  cout << "Enter dollars per Gallon: ";

  cin >> dollars;

  cout << fixed << setprecision(2);

  cout << endl;

  cout << "Gas cost for 10 miles : " << DrivingCost(10, miles, dollars) << endl;

  cout << "Gas cost for 50 miles : " <<DrivingCost(50, miles, dollars) << endl;

  cout << "Gas cost for 400 miles: "<<DrivingCost(400, miles, dollars) << endl;

  return 0;

}

Explanation:

  • Create a method definition of DrivingCost that accepts  three input double data type parameters drivenMiles,  milesPerGallon, and dollarsPerGallon and returns  the dollar cost to drive those miles .
  • Calculate total dollar cost and store in the variable, dollarCost .
  • Prompt and read the miles and dollars per gallon  as input from the user .
  • Call the DrivingCost function three times  for the output to the gas cost for 10 miles,  50 miles, and 400 miles.

 

4 0
3 years ago
Read 2 more answers
Other questions:
  • What is the force generated by a rocket motor to propel a spacecraft forward?
    14·1 answer
  • Derek found that the CPU was running several processes. While Derek was looking at Task Manager, the computer crashed. Derek res
    15·2 answers
  • Using a loop, write a program that reads in exactly five integers and outputs the sum.
    11·1 answer
  • How do forensic pathologist determine time of death
    13·1 answer
  • Which cisco ios command is used to display the current ospf neighbors and their rids?
    11·1 answer
  • Suppose the price of a complement to LCD televisions falls. What effect will this have on the market equilibrium for LCD​ TVs? T
    13·1 answer
  • A network technician is attempting to add an older workstation to a Cisco switched LAN. The technician has manually configured t
    11·1 answer
  • Example of Not a computer characteristics example
    12·1 answer
  • In a three-tier architecture, the component that runs the program code and enforces the business processes is the:_______.
    11·1 answer
  • Why should information technology NOT be taught in school?​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!