Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Question 6 (40points): Write a class named Person that has following properties: a) It stores two global variables for height (inch) and weight (pounds).

image text in transcribed

C#

Question 6 (40points): Write a class named Person that has following properties: a) It stores two global variables for height (inch) and weight (pounds). (5points) b) Write a Default constructor with no parameters (initialize parameters as height=65 inches and weight= 110 pounds). (5points) c) Write an overloaded constructor with two parameters. (5points) d) Write a method named getBmilndex that returns the body mass index of the person using following formula. (10 points) index = 2 x703 w e) Write the necessary statement to create a person object named Zeynep with height=60 inches and weight=120 pounds. (5points) f) Write a statement to calculate bmi index of Zeynep and assign it to local variable then print it. (10 points)

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

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions

Question

5. How do economic situations affect intergroup relations?

Answered: 1 week ago