Tasks •Write a program to print the area of a rectangle by creating a class named 'Area' having two methods. First method named as 'setDim' takes length and breadth of rectangle as parameters and the second method named as 'getArea' returns the area of the rectangle. Length and breadth of rectangle are static values not dynamic. • Print the average of three numbers entered by user by creating a class named 'Average' having a method to calculate and print the average.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 9E
icon
Related questions
Question
100%
Tasks
• Write a program to print the area of a rectangle by creating a class
named 'Area' having two methods. First method named as 'setDim'
takes length and breadth of rectangle as parameters and the second
method named as 'getArea' returns the area of the rectangle. Length
and breadth of rectangle are static values not dynamic.
• Print the average of three numbers entered by user by creating a
class named 'Average' having a method to calculate and print the
average.
Transcribed Image Text:Tasks • Write a program to print the area of a rectangle by creating a class named 'Area' having two methods. First method named as 'setDim' takes length and breadth of rectangle as parameters and the second method named as 'getArea' returns the area of the rectangle. Length and breadth of rectangle are static values not dynamic. • Print the average of three numbers entered by user by creating a class named 'Average' having a method to calculate and print the average.
Task
• Design a small system that has 5 different employees and that can
caluclate experience, salary and expected awards for employees.
• Declare necessary classes
• Use necessary constructors
• Declare and initialize minumum variables
• Use necessary functions
Transcribed Image Text:Task • Design a small system that has 5 different employees and that can caluclate experience, salary and expected awards for employees. • Declare necessary classes • Use necessary constructors • Declare and initialize minumum variables • Use necessary functions
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Math class and its different methods
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,