Visual basic (Console) Edit the source code by adding a class that computes for the area of 3 rectangle and display results. Source Code Module Module1 Sub Main() Dim length As Single = 0.0F Dim breadth As Single = 0.0F Dim area As Single = 0.0F Console.Write("Enter the length of rectangle: ") length = Single.Parse(Console.ReadLine()) Console.Write("Enter the breadth of rectangle: ") breadth = Single.Parse(Console.ReadLine()) area = length * breadth Console.WriteLine("Area of ractangle: {0}", area) End Sub End Module

CMPTR
3rd Edition
ISBN:9781337681872
Author:PINARD
Publisher:PINARD
Chapter13: Creating A Workbook
Section: Chapter Questions
Problem 8QY
icon
Related questions
Question
100%

Visual basic (Console)

Edit the source code by adding a class that computes for the area of 3 rectangle and display results.

Source Code

Module Module1

Sub Main()

Dim length As Single = 0.0F
Dim breadth As Single = 0.0F
Dim area As Single = 0.0F

Console.Write("Enter the length of rectangle: ")
length = Single.Parse(Console.ReadLine())

Console.Write("Enter the breadth of rectangle: ")
breadth = Single.Parse(Console.ReadLine())

area = length * breadth

Console.WriteLine("Area of ractangle: {0}", area)

End Sub

End Module

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Function Arguments
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
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage