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
Sophie [7]
2 years ago
12

Do not use C++ pointers (this is not a topic of this course).

Engineering
1 answer:
noname [10]2 years ago
4 0

The program is an illustration of functions in C++

C++ functions are collection of named program statements that are executed when called

<h3>The C++ program</h3>

The program in C++, where comments are used to explain each action is as follows:

#include <iostream>

#include <cmath>

using namespace std;

//This defines the boolean method

bool isoscelesTriangleHeightAndArea(double base, double hypotenuse, double height, double area) {

   //This checks for invalid base and height

   if(base < 0 || hypotenuse < 0){

       return false;

   }

   //This returns true if base and height are valid

   return true;

}

//The main begins here

int main(){

   //This initializes the variables

   double base, hypotenuse, height, area;

   //This gets input for base and hypotenuse

   cout<<"Base: ";    cin>>base;

   cout<<"Hypotenuse: "; cin>>hypotenuse;

   //The calls the boolean method

   bool success = isoscelesTriangleHeightAndArea(base, hypotenuse, height, area);

   //If success is True

   while (success){

       //This calculates height

       height = sqrt(hypotenuse*hypotenuse - (base/2) * (base/2));

       //This calculates area

       area = 0.5 * base * height;

       //This prints height

       cout << "Triangle height is " << height << endl;

       //This prints area

       cout << "Triangle area is " << area << endl;

       //This gets input for base and hypotenuse

       cout<<"Base: ";    cin>>base;

       cout<<"Hypotenuse: "; cin>>hypotenuse;

       bool success = isoscelesTriangleHeightAndArea(base, hypotenuse, height, area);

   }

   cout << "Invalid Input!" << endl;

}

Read more about C++ programs at:

brainly.com/question/24833629

#SPJ1

You might be interested in
Pointssss 100 and brainliest :)
Delvig [45]

Answer:

thank you for the free point have a great rest of your day

7 0
3 years ago
What must engineers keep in mind so that their solutions will be appropriate?
vekshin1

Answer:

Context

Explanation:

It is of great value for an engineer to keep the context of his/her experiment in mind.

7 0
3 years ago
Are all transmissions fluids interchangeable
KiRa [710]

Answer:

<u>No</u>.

Explanation:

They are not all the same. Moreover, using a fluid that is not approved by the vehicle manufacturer will void the transmission warranty.

6 0
3 years ago
Koch traded Machine 1 for Machine 2 when the fair market value of both machines was $60,000. Koch originally purchased Machine 1
Mariana [72]

Answer:

Koch's adjusted basis in machine 2 after the exchange is $60,000

Explanation:

given data

fair market value = $60,000

originally purchased Machine 1 = $76,900

Machine 1 adjusted basis = $40,950

Machine 2 seller purchase = $64,050

Machine 2 adjusted basis = $55,950

solution

As he exchanged machine for another at $60,000

and this exchanged in fair market

so adjusted basis =  $50,000

Adjusted basis is the price of the item that affects the factors that are considered price. These factors usually include taxes, depreciation value, and other costs of acquiring and maintaining a given item. Adjusted basis is important so the right amount to sell

Adjusted basis increases when a person deducts expenses from factor taxes and operating statements

so Koch's adjusted basis in machine 2 after the exchange is $60,000

3 0
3 years ago
Calculate the pressure drop in a duct (measured by a differential oil manometer) if the differential height between the two flui
Burka [1]

Answer:

The pressure drop is 269.7N/m^2

Explanation:

∆P = ∆h × rho × g

∆h = 3.2cm = 3.2/100 = 0.032m, rho = 860kg/m^3, g = 9.8m/s^2

∆P = 0.032×860×9.8 = 269.7N/m^2

6 0
3 years ago
Other questions:
  • How much time does it take a freezer to make a tray of ice cubes out of a tray of 0.25kg liquid water at 10 Celsius). Assume the
    13·1 answer
  • In a fluid power system, if energy is not transferred to work, what form does it take?
    6·1 answer
  • Find the inductive reactance per mile of a single-phase overhead transmission line operating at 60 Hz, given the conductors to b
    6·1 answer
  • A moving-coil instrument, which gives full-scale deflection with 0.015 A has a copper coil having resistance of 1.5 Ohm at 15°C
    7·1 answer
  • If the driver gear has 5 teeth and the driven gear has 10 teeth,what is the gear ratio?​
    13·2 answers
  • A misfire code is a type ____ DTC<br> A) 1 or 2<br> B) a or b<br> C) c or d<br> D l or ll
    15·1 answer
  • P9.28 A large vacuum tank, held at 60 kPa absolute, sucks sea- level standard air through a converging nozzle whose throat diame
    12·1 answer
  • Suppose to build RSA crypto system you picked primes "p" and "q" as 3 and 7 and "e" as 5 what are the public and private keys? W
    11·1 answer
  • Describe the first case where the power of synthesis was used to solve design problems.
    15·1 answer
  • Accidents occur as a result of ____ and ____.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!