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
wolverine [178]
3 years ago
9

What is wrong with the following code? 6 print (what is your name?)

Engineering
2 answers:
Nina [5.8K]3 years ago
5 0

it is simple the title name after all it is just asking your name

ki77a [65]3 years ago
3 0

Answer:

pakipic na lang po question nyo para masagot po

Explanation:

please po di ko masyado gets po e

You might be interested in
Amanda and Tyler opened a business that specializes in shipping liquids, such as milk, juice, and water, in cylindrical containe
USPshnik [31]

Answer:

circleType.h

#ifndef circleType_H

#define circleType_H

class circleType

{

public:

void print();

void setRadius(double r);

//Function to set the radius.

//Postcondition: if (r >= 0) radius = r;

// otherwise radius = 0;

double getRadius();

//Function to return the radius.

//Postcondition: The value of radius is returned.

double area();

//Function to return the area of a circle.

//Postcondition: Area is calculated and returned.

double circumference();

//Function to return the circumference of a circle.

//Postcondition: Circumference is calculated and returned.

circleType(double r = 0);

//Constructor with a default parameter.

//Radius is set according to the parameter.

//The default value of the radius is 0.0;

//Postcondition: radius = r;

private:

double radius;

};

#endif

circleTypeImpl.cpp

#include <iostream>

#include "circleType.h"

using namespace std;

void circleType::print()

{

cout << "Radius = " << radius

<< ", area = " << area()

<< ", circumference = " << circumference();

}

void circleType::setRadius(double r)

{

if (r >= 0)

radius = r;

else

radius = 0;

}

double circleType::getRadius()

{

return radius;

}

double circleType::area()

{

return 3.1416 * radius * radius;

}

double circleType::circumference()

{

return 2 * 3.1416 * radius;

}

circleType::circleType(double r)

{

setRadius(r);

}

cylinderType.h

#ifndef cylinderType_H

#define cylinderType_H

#include "circleType.h"

class cylinderType: public circleType

{

public:

void print();

void setHeight(double);

double getHeight();

double volume();

double area();

//returns surface area

cylinderType(double = 0, double = 0);

private:

double height;

};

#endif

cylinderTypeImpl.cpp

#include <iostream>

#include "circleType.h"

#include "cylinderType.h"

using namespace std;

cylinderType::cylinderType(double r, double h)

: circleType(r)

{

setHeight(h);

}

void cylinderType::print()

{

cout << "Radius = " << getRadius()

<< ", height = " << height

<< ", surface area = " << area()

<< ", volume = " << volume();

}

void cylinderType::setHeight(double h)

{

if (h >= 0)

height = h;

else

height = 0;

}

double cylinderType::getHeight()

{

return height;

}

double cylinderType::area()

{

return 2 * 3.1416 * getRadius() * (getRadius() + height);

}

double cylinderType::volume()

{

return 3.1416 * getRadius() * getRadius() * height;

}

main.cpp

#include <iostream>

#include <iomanip>

using namespace std;

#include "cylinderType.h"

int main()

{

double radius,height;

double shippingCostPerLi,paintCost,shippingCost=0.0;

 

cout << fixed << showpoint;

cout << setprecision(2);

cout<<"Enter the radius :";

cin>>radius;

 

cout<<"Enter the Height of the cylinder :";

cin>>height;

 

 

cout<<"Enter the shipping cost per liter :$";

cin>>shippingCostPerLi;

 

 

//Creating an instance of CylinderType by passing the radius and height as arguments

cylinderType ct(radius,height);

 

double surfaceArea=ct.area();

double vol=ct.volume();

 

 

shippingCost+=vol*28.32*shippingCostPerLi;

 

char ch;

 

cout<<"Do you want the paint the container (y/n)?";

cin>>ch;

if(ch=='y' || ch=='Y')

{

cout<<"Enter the paint cost per sq foot :$";

cin>>paintCost;    

shippingCost+=surfaceArea*paintCost;    

}    

cout<<"Total Shipping Cost :$"<<shippingCost<<endl;

 

return 0;

}

3 0
3 years ago
A heat engine is coupled with a dynamometer. The length of the load arm is 900 mm. The spring balance reading is 16. Applied wei
miss Akunina [59]

Answer:

P = 80.922 KW

Explanation:

Given data;

Length of load arm is 900 mm = 0.9 m

Spring balanced  read 16 N

Applied weight is 500 N

Rotational speed is 1774 rpm

we know that power is given as

P = T\times \omega

T Torque = (w -s) L = (500 - 16)0.9 = 435.6 Nm

\omega angular speed =\frac{2 \pi N}{60}

Therefore Power is

P =\frac{435.6 \time 2 \pi \times 1774}{60} = 80922.65  watt

P = 80.922 KW

4 0
3 years ago
I am standing on the upper deck of the football stadium. I have an egg in my hand. I am going to drop it and you are going to tr
Alina [70]

Answer:

Δx = 25 ft.

Explanation:

Assuming that the person on the ground starts running at the same time as the egg is dropped, we have two simultaneous trajectories:

1 ) Egg falling:

If the egg is dropped, and we neglect the air resistance, we can use the kinematic equation that relates the distance and fall time, as follows:

yf-y₀ = 1/2* g* t²

If we take the up direction as positive, we can solve for t as follows:

0-100 ft = 1/2* (-32.15 ft/s²)* t²

⇒ t = \sqrt{(100*2)/32.15} = 2.5 sec.

2) Person on the ground running away:

In order to be able to run away, and then return to catch the egg, running at constant speed, he must run during exactly the half of the time that the egg is falling, i.e., 1.25 sec.

We can get the distance at which he can reach, applying the definition of velocity:

v = (xf-x₀) / (tfi-t₀)

If we choose t₀=0 and x₀ = 0 , we can solve for xf, as follows:

xf = v*t = 20 ft/sec*1.25 sec = 25 ft.

8 0
3 years ago
Convert A'B'C'D' + A'B'C'D + A'B'CD' + A'BC'D + AB'C'D' + AB'C'D+ AB'CD' to SOP form
bazaltina [42]

Answer:

thats really hard how could you answerthis hhhhhhh

6 0
2 years ago
Read 2 more answers
Whats viruses c liver?
PtichkaEL [24]

Answer:

Hepatitis C is a viral infection that causes liver inflammation, sometimes leading to serious liver damage. The hepatitis C virus (HCV) spreads through contaminated blood.

5 0
2 years ago
Read 2 more answers
Other questions:
  • Air is compressed in a piston-cylinder device. List three examples of irreversibilities that could occur
    13·1 answer
  • Electricity is generated in two forms namely………A. Alternating current and wave form B. Alternating current and basic current C.
    7·2 answers
  • A six-lane freeway (three lanes in each direction) currently operates at maximum LOS C conditions. The lanes are 11 ft wide, the
    5·1 answer
  • Choose the best data type for each of the following so that any reasonable value is accommodated but no memory storage is wasted
    5·1 answer
  • It is possible to have liquid water at 200°C. a)-True b)- False
    14·1 answer
  • Products. of sheet metal​
    8·1 answer
  • A railroad runs form city A to city B, a distance of 800km, through mountainous terrain. The present one-way travel time (includ
    13·1 answer
  • When Hailey participated in a tree plantation drive, she wore her most comfortable loungewear. However, the same attire was not
    11·1 answer
  • 1. A flywheel is suspended by resting the inside of the rim on a horizontal knife edge so that the wheel can swing in a vertical
    5·1 answer
  • What is another term for the notes that a reader can add to text in a word-processing document?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!