Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

make rectangle class using dart language and VS code only SOLVE using dart language and VS Code only Part A: Rectangle Class (3 marks) Create

make rectangle class using dart language and VS code only
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
SOLVE using dart language and VS Code only
Part A: Rectangle Class (3 marks) Create a new Dart project. Rectangular shapes are defined by their widths & heights. Let's start by defining a Rectangle class with 2 integer properties; width and height. The class must be in the main.dart file. The class must have the following three methods: 1. Basic constructor 2. A method that calculates and returns its perimeter 3. A method that calculates and returns its area A Part B: The Web App Download this Lab06_index.zip file. Use the index.html in the archive to overwrite the default html file in your project. When running this html template file it should look like this: Width: Height: Add Rectangle Generate Table Reset This is how it should work: : Create an empty List of Rectangle objects; rectangles User fills the two boxes with positive integer numbers On clicking "Add Rectangle" button, instantiate a new Rectangle object and add it to rectangles (only if width and height aren't empty & not zero) (3 marks) Part A: Rectangle Class (3 marks) Create a new Dart project. Rectangular shapes are defined by their widths & heights. Let's start by defining a Rectangle class with 2 integer properties; width and height. The class must be in the main.dart file. The class must have the following three methods: 1. Basic constructor 2. A method that calculates and returns its perimeter 3. A method that calculates and returns its area A Part B: The Web App Download this Lab06_index.zip file. Use the index.html in the archive to overwrite the default html file in your project. When running this html template file it should look like this: Width: Height: Add Rectangle Generate Table Reset This is how it should work: : Create an empty List of Rectangle objects; rectangles User fills the two boxes with positive integer numbers On clicking "Add Rectangle" button, instantiate a new Rectangle object and add it to rectangles (only if width and height aren't empty & not zero)

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_2

Step: 3

blur-text-image_3

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

What is the fundamental determinant of an assets value?

Answered: 1 week ago

Question

public class AVL

Answered: 1 week ago

Question

Question Can a Roth IRA invest in stock of the IRA owners business?

Answered: 1 week ago