Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is one code. please help me out and please makw it correct The Member class has a default constructog, a constructor with one parameter,

this is one code. please help me out and please makw it correct
image text in transcribed
image text in transcribed
image text in transcribed
The Member class has a default constructog, a constructor with one parameter, and a constructof with three paraineters. Dectate the following objects - membert with no arguments - member2 with memberName as an argument - member3 with memberName, memberAge; and membentteight as arguments Ex: If the ingut is Jan 22,4,75, then the outpot is: Member: Unnamed, ,e Member: Jan, 0, e.e0 Member: 2an, 22, 4.75 4 using nase spack istd; class Hebter publick Haber(): Hober'(strifig nonberiaas): Waher(string mobberNans, int maberige, double aowberibeight); void Print(); prlvatu: string naeoz int agei dowble helght; 17.15 18 : 19. Menbert:Maber() nase is "Unnaned"; alge = os helieht oft: The Member class has a defaulf constructor, a constructor with one parameter, and a constructor with three parametera. Dectare the following objects: - memberr with no segurnents - member2 with memberName as an argument - member3 with memberName, memberAge, and memberteight as arguments Ex If the input is Jan 22.4,75, then the output is Menber: Unnaned, ,.ee Member: 2an,8,8.00 Menber; Jan, 22, 4.75 heaberi:Member(string nonberkane, int monberAge, double neaberteight) ( nane a menbertiane; age - neaberage: height n aubervieight; void nember:iprint () ( cout \& fixed \& setprecision(2) \&s "Meabert " k. nane " ", " \& age \&r ", " cr height \&s endl; int asin() (.) The Member class has a defaut constructor, a constructor with one parameter, and a constructor with three parameters. Declate the following objects: - member with no argumentis - member2 with memberName as an argurnent - membor3 with memberName, memberAge, and memberheight as arguments Ex if the input is Jan 224.75, then the output is: Nember: Unnamed, e, e.ee Member: Jan, 8,8,0e Nember: Jan, 22, 4.75 : vour code gaes here /. menber1, Print(): maber? Print (): seaberj.Print () : return of

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions