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
yaroslaw [1]
3 years ago
8

he Animal Insurance Company:Writes a program that repeatedly prints the insurance fee to pay for a pet according to the followin

g rules: A dog that has been neutered costs $50. A dog that has not been neutered costs $80. A cat that has been neutered costs $40. A cat that has not been neutered costs $60. A bird or reptile costs $10. Any other animal generates an error message.
Engineering
1 answer:
nordsb [41]3 years ago
4 0

Answer:

Program code is given below.

Explanation:

#include <iostream>

using namespace std;03

int main()

{

char neutered, opselect, animal;

const int dogcost = 80, catcost = 60, birdOrReptilecost = 0;

cout << "What kind of animal do you have?\n";

cout << "d for dog, c for cat, b for bird or reptile and o for others.\n\n";

cin >> animal;

cout << "Answer the following questions\n";

cout << "With Y for yes or N for no.\n\n";

cout << "Is your pet neutered? ";

cin >> neutered;

cout << "Enter a select code: ";

cout << "\n1)A dog that has been neutered: ";

cout << "\n2)A dog that has not been neutered: ";

cout << "\n3)A cat that has been neutered costs: ";

cout << "\n4)A cat that has not been neutered costs: ";

cout << "\n5)A bird or reptile: ";

cin >> opselect;

switch (opselect)

{

  case 1:

    cout << "The price for dog that has been neutered is " << dogcost - 30;

    break;

  case 2:

    cout << "The price for dog that has not been neutered is " << dogcost << endl;

   break;

  case 3:

    cout << "The price for cat that has been neutered is " << catcost - 20 << endl;

   break

  case 4:

    cout << "The price for cat that has not been neutered is " << catcost << endl;

   break;

  case 5:

    cout << "The price for bird or reptile is " << birdOrReptilecost << endl;

break;

return 0;

}

You might be interested in
A joining process in which a filler metal is melted and distributed by capillary action between faying surfaces, the base metals
PolarNik [594]

Answer:

A soldering process

Explanation:

Given that ,The filler metal's melting point temperature is less than 450 ° C.

Usually, the brazing material has the liquid temperature of the melting point, the full melting point of the filler material approaching 450 degrees centigrade, while the filler material is less than 450 degrees centigrade in the case of soldering.

Therefore the answer is "A soldering process".

4 0
3 years ago
Automotive class
sp2606 [1]

Answer:

what  are you in

Explanation:

7 0
3 years ago
Which cod is the best whoever has the best awnser gets brainliest​
Gnesinka [82]

Explanation:

black ops 2

5 0
3 years ago
Exceeding critical mach may result in the onset of compressibility effects such as:______.
klio [65]

Answer:

Sound barrier.

Explanation:

Sound barrier is a sudden increase in drag and other effects when an aircraft travels faster than the speed of sound. Other undesirable effects are experienced in the transonic stage, such as relative air movement creating disruptive shock waves and turbulence. One of the adverse effect of this sound barrier in early plane designs was that at this speed, the weight of the engine required to power the aircraft would be too large for the aircraft to carry. Modern planes have designs that now combat most of these undesirable effects of the sound barrier.

4 0
3 years ago
How do you distinguish the difference between drag and lift forces?
kumpel [21]

Answer Explanation :

LIFT FORCE:

  • Lift force is that force which acts right angles to the direction of motion
  • Lift forces is produced through air
  • Lift forces is created by difference in air pressure
  • force on wings of bird is an example of lift force

DRAG FORCE:

  • Drag force is that force which act opposite to the direction of motion
  • Drag is caused by friction and differences in air pressure
  • Skydiving is an example of drag force

6 0
4 years ago
Other questions:
  • Water flows at low speed through a circular tube with inside diameter of 2 in. A smoothly contoured body of 1.5 in. diameter is
    10·1 answer
  • Determine the COP of a refrigerator that removes heat from the food compartment at a rate of 5160 kJ/h for each kW of power it c
    14·2 answers
  • 1 2 3 4 5 6 7 8 9 10
    14·1 answer
  • What term specifically describes small chunks of rocks and debris in space that burn up in Earth’s atmosphere?
    6·1 answer
  • What is the area enclosed by the cycle area of the Carnot cycle illustrating on a T-s diagram?
    8·1 answer
  • If gain of the critically damped system is increased, the system will behave as a) Under damped b) Over damped c) Critically dam
    13·1 answer
  • The linkage is made of three pin-connected A992 steel members, each having a diameter of 114 in. A three-member system. Pin supp
    6·1 answer
  • A fuel gas containing 45.00 mole% methane and the balance ethane is burned completely with pure oxygen at 25.00 degree C, and th
    11·1 answer
  • Look around your house. What do you own that you think might be manufactured?
    14·1 answer
  • Pressure sensor rated at 0-500 psi and has an output of 0-10 Volts DC (10 V correspond to
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!