Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3 (Table of Squares and Cubes) write a C# instance that calculates the squares and cubes of the numbers fromi to i+10 and displays the

image text in transcribed

3" (Table of Squares and Cubes) write a C# instance that calculates the squares and cubes of the numbers fromi to i+10 and displays the resulting values in table format. As an example, if F0, the table is shown below. All calculations should be done in terms of a variable i defined as a global variable. [Note: (1) the variable i is an instance variable, NOT a static variable. (2) this method does not have any parameter, and does not return any value. That is when it is called, it will perform the operations above and then stop Write a constructor that has no parameter. When it is called, this constructor will initialize the value of the global variable i, such as i0 Then, in the main method, create an instance of the class by calling this constructor which calls the method created above. (25 points) number square cube 1 1 4 27 16 25 36 49 64 81 100 125 216 343 512 729 1000 10 4. (Body Mass Index Calculator) write a C# method that has two parameters (named weight and height) and has no return statement. This method is an instance method (NOT a static function). When it is called, it calculates Body Mass Index (BMI). The formulas for calculating the Body Mass Index (BMI) are weightlnPounds x 703 heightlnlnches x heightlnlnches BMI = This method calculates and displays the user's body mass index. Then, in the main method, define two variables( named mweight and mheight). The main method creates an instance of the class by calling the default constructor which calls the method above and pass mweight and mheight to the method. (25 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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago