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
SpyIntel [72]
2 years ago
10

Write a Person class with a constructor that accepts the following details:

Engineering
1 answer:
Liono4ka [1.6K]2 years ago
3 0

The person class is an illustration of constructors;

In computer programs, constructors are automatically called when the object of a class is created

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

The class and the constructor program written in C++ programming language is as follows:

int main(){

   string fname, lname,dob,idno,mobileno;

   cin>>lname; cin>>fname; cin>>dob;  cin>>idno; cin>>mobileno;

Person c(fname,lname,dob,idno,mobileno);

if(mobileno.length() == 12){

    if(mobileno[3] == '-' && mobileno[7] == '-'){

        cout << "Name: " << c.getfname() << " " << c.getlname() << endl

 << "Date of birth: " << c.getdob() << endl

 << "ID number: " << c.getid() << endl

 << "Mobile: " << c.getmobile() << endl

 << "Age: "<< getAge(dob)<<endl;

 ;

    }

}

The complete program is added as an attachment

Read more about C++ programs at:

brainly.com/question/13168905

#SPJ1

Download cpp
You might be interested in
1. When jump starting a car, make sure it is in __________.
____ [38]

Answer:

Make sure both cars are in park or neutral with the parking brake engaged. This makes sure that all electrical functions (headlights, radios, etc.) are turned off.

8 0
3 years ago
Remy noticed that after oiling his skateboard wheels, it was easier to reach the speeds he needed to perform tricks. How did the
Sidana [21]

Answer:

The oil reduced friction between the moving parts of the skateboard. ( A )

Explanation:

The oil reduced Friction between the moving parts of the skateboard and this is because the reduction in friction between moving parts causes an increase in speed.

Remy will oil the moving parts that connects the wheels of the skateboard to the Board, because this is where the most friction is found. the friction between the wheels and the ground cannot be affected by oiling the wheels

4 0
3 years ago
PLEASE HELP
Anna11 [10]
PLEASE HELP
NASA scientists have determined that the chance a single person would get hit by a piece of falling satellite is one in 3,200. What can you infer based on this probability?



A. Satellites that enter Earth’s atmosphere land mostly in the ocean.


B. NASA does a good job informing people of when satellites will enter the atmosphere.


C. Satellites that enter Earth’s atmosphere land mostly in unpopulated areas.


D. Much of a satellite is destroyed during the process of entering Earth’s atmosphere.
8 0
3 years ago
Read 2 more answers
You have a 12-inch PVC water main that is 850 feet long flowing at 5.6 cfs. Point A is at an elevation of 750 ft. Point B is at
alex41 [277]

Known :

D = 12 in = 1 ft

L = 850 ft

Q = 5.6 cfs

hA = 750 ft

hB = 765 ft

PA = 85 psi = 12240 lb/ft²

Solution :

A = πD² / 4 = π(1²) / 4

A = 0.785 ft²

<u>Velocity of water :</u>

U = Q / A = 5.6 / 0.785

U = 7.134 ft/s

<u>Friction loss due to pipe length :</u>

Re = UD / v = (7.134)(1) / (0.511 × 10^(-5))

Re = 1.4 × 10⁶

(From Moody Chart, We Get f = 0.015)

hf = f(L / d)(U² / 2g) = 0.015(850 / 1)((7.134²) / 2(32.2))

hf = 10 ft

PA + γhA = PB + γhB + γhf

PB = PA + γ(hA - hB - hf)

PB = 12240 + (62.4)(750 - 765 - 10)

PB = 10680 lb/ft²

PB = 74.167 psi

8 0
3 years ago
The insulator is the connection between the grounded circuit conductor and the equipment grounding conductor at the service.
Arada [10]
The answer to your question is correct/ true
4 0
3 years ago
Other questions:
  • Sheet metal cutting operation along a straight line between two cutting edges is called Shearing Operation's. a)- True b)-False
    15·1 answer
  • The man (75 Kg) is climbing up the rope with acceleration 0.25 m/s2 relative to the rope. MA = 80 Kg. What is the rope tension a
    7·1 answer
  • Which allows a user to run applications on a computing device? Group of answer choices Application software CSS Operating system
    11·1 answer
  • 50 for brainliest HELP ASAP<br> absurd answers will be recorded
    10·1 answer
  • Determine the voltage which must be applied to a 1 k 2 resistor in order that a current of
    10·1 answer
  • How to fix a twisty pets wing permanatley after it has snaped without super glue
    8·2 answers
  • Two aerial photographs were taken 30 seconds apart over one east-bound lane of l-80 near Grand Island, NE. The following results
    12·1 answer
  • What conclusions can you reach from your gym teacher’s science-fair display?
    13·1 answer
  • How to update android 4.4.2 to 5.1 if there isnt any update available​
    15·2 answers
  • Technician A says that one function of oil is to clean. Technician B says that one function of oil is to cushion. Who is correct
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!