I am very stuck. I need to write a prog that uses arrays and receives the length and the width of a multiroom building and find the area needed for for the carpet or wood flooring. This is just the first part and thisis as far as I am able to go/understand. Any help would greatly appreciated, Thank You.
Public Class Form1
Dim dimensions() As Integer
Dim rooms As Integer
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim prompt1, prompt2, title As String
Dim i As Short
prompt1 = "Enter the length of the room"
prompt2 = "Enter the width of the room"
rooms = InputBox("How many rooms?", "Create Array")
If rooms > 0 Then ReDim dimensions(rooms - 1)
For i = 0 To UBound(dimensions)
title = "Room " & (i + 1)
dimensions(i) = InputBox(prompt1, title)
Next
End Sub