Interior Design Program Guidance

  • (2 Pages)
  • +
  • 1
  • 2

24 Replies - 951 Views - Last Post: 31 January 2014 - 03:31 PM Rate Topic: *---- 1 Votes

#1 junied32167  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 17-January 14

Interior Design Program Guidance

Posted 19 January 2014 - 07:48 AM

I need to Design a program to be used by an interior decorator to estimate the cost of painting a room.The following conditions should be met.
1.1 The decorator needs to enter the height of the room (between 2 and 6 metres), then the length of all four walls (minimum 1 metre; maximum 25 metres).
1.2 The program should then calculate the total area of the room.
1.3 The program should allow a choice of three paints:
 Luxury quality which cost £1.75 per square metre
 Standard quality which costs £1.00 per square metre.
 Economy quality which costs £0.45 per square meter.
1.4 The decorator should also be able to choose to use undercoat paint if required, which costs an additional £0.50 per square metre.
1.5 The program should display the area of the room and the chosen choice of paint and whether undercoat was chosen or not.
1.6 The program should display an itemised bill with a total with and without VAT included.
1.7 The program should allow the user the choice to exit or re-enter new room height and length and calculate new cost estimate.
1.8 The program should include on-screen help for the user.
1.9 The program should include a main menu (switchboard) with the following options (Note: It is advised to use procedures for each menu option) :
 Estimate Paint Cost
 View Estimate Total
 Help and FAQ
 Exit Program
Dim rHeight, wall1, wall2, wall3, wall4 As Integer
        Dim areaofroom As Integer
        Console.Write("Please enter the height of the room between 2 and 6 metres:")
        rHeight = Console.ReadLine
        Console.WriteLine("please enter the length of the first wall of the room")
        wall1 = Console.ReadLine
        Console.WriteLine("please enter the length of the second wall of the room")
        wall2 = Console.ReadLine
        Console.WriteLine("please enter the length of the third wall of the room")
        wall3 = Console.ReadLine
        Console.WriteLine("please enter the length of the fourth wall of the room")
        wall4 = Console.ReadLine
        Console.ReadLine()

        areaofroom = (wall1 + wall2 + wall3 + wall4) * rHeight

This is my coding so far. There is a problem with my coding regarding the calculation part as when the console is run it does not calculate it.

This post has been edited by modi123_1: 19 January 2014 - 09:02 AM
Reason for edit:: please use code tags


Is This A Good Question/Topic? 0
  • +

Replies To: Interior Design Program Guidance

#2 demausdauth  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 176
  • View blog
  • Posts: 638
  • Joined: 03-February 10

Re: Interior Design Program Guidance

Posted 20 January 2014 - 06:46 AM

On the contrary it works exactly as you have written it. You input the five values, sum the 4 wall values and then multiply by the height. While debugging I was able to see the values all calculated as written. What error are you seeing?
Was This Post Helpful? 0
  • +
  • -

#3 junied32167  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 17-January 14

Re: Interior Design Program Guidance

Posted 20 January 2014 - 10:10 AM

Sub Main()
        Dim rHeight, wall1, wall2, wall3, wall4 As Integer
        Dim areaofroom As Integer
        Console.ForegroundColor = ConsoleColor.Blue
        Console.Write("Please enter the height of the room between 2 and 6 metres:")
        rHeight = Console.ReadLine

        Console.ForegroundColor = ConsoleColor.Blue
        Console.WriteLine("Please enter the length of the first wall of the room")
        wall1 = Console.ReadLine

        Console.ForegroundColor = ConsoleColor.Blue
        Console.WriteLine("Please enter the length of the second wall of the room")
        wall2 = Console.ReadLine

        Console.ForegroundColor = ConsoleColor.Blue
        Console.WriteLine("Please enter the length of the third wall of the room")
        wall3 = Console.ReadLine

        Console.ForegroundColor = ConsoleColor.Blue
        Console.WriteLine("Please enter the length of the fourth wall of the room")
        wall4 = Console.ReadLine
        Console.ReadLine()

        Console.ForegroundColor = ConsoleColor.Blue
        areaofroom = (wall1 + wall2 + wall3 + wall4) * rHeight
        Console.WriteLine("Area of room:" & areaofroom)
        Console.ReadLine()

This is my coding so far. I require help knowing how to give the user the options to choose from the paints as specified. I also require guidance as to how i should dim them.

This post has been edited by AdamSpeight2008: 20 January 2014 - 12:57 PM

Was This Post Helpful? 0
  • +
  • -

#4 demausdauth  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 176
  • View blog
  • Posts: 638
  • Joined: 03-February 10

Re: Interior Design Program Guidance

Posted 20 January 2014 - 12:05 PM

This sure reads like a homework assignment.

As for helping with Diming variables - you are already know how to do that. Follow the suggestion in requirement 1.9, create methods to do the different areas.

Some other hints:
  • you will need some variables scoped globally (paint costs, measurements, etc...) - actually pretty much all the variables will need to be scoped globally
  • error handling - if you enter a letter instead of a number for a wall1 what happens?

Was This Post Helpful? 0
  • +
  • -

#5 junied32167  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 17-January 14

Re: Interior Design Program Guidance

Posted 20 January 2014 - 03:35 PM

Any suggestions as to how I should include d coding for d paint prices
Was This Post Helpful? 0
  • +
  • -

#6 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8940
  • View blog
  • Posts: 33,525
  • Joined: 12-June 08

Re: Interior Design Program Guidance

Posted 20 January 2014 - 03:38 PM

What have you tried?
Was This Post Helpful? 0
  • +
  • -

#7 junied32167  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 17-January 14

Re: Interior Design Program Guidance

Posted 20 January 2014 - 03:47 PM

I done
Dim luxury standard and economic as integer
Furthermore wen I try put on d prices like dis
Luxury = 1.50
Standard = 1.00
Economic = 0.40
It does not work
Was This Post Helpful? 0
  • +
  • -

#8 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3223
  • View blog
  • Posts: 10,821
  • Joined: 12-December 12

Re: Interior Design Program Guidance

Posted 20 January 2014 - 03:51 PM

Quote

Furthermore wen I try put on d prices like dis

Do not use this child-like text-speak on a forum. You need to explain yourself clearly. Re-write your previous post.

This post has been edited by andrewsw: 20 January 2014 - 03:52 PM

Was This Post Helpful? 2
  • +
  • -

#9 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8940
  • View blog
  • Posts: 33,525
  • Joined: 12-June 08

Re: Interior Design Program Guidance

Posted 20 January 2014 - 03:52 PM

Then you need to go back and read up on data types... which datatype can accept what values, etc.

http://msdn.microsof...y/47zceaw7.aspx
Was This Post Helpful? 0
  • +
  • -

#10 junied32167  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 17-January 14

Re: Interior Design Program Guidance

Posted 20 January 2014 - 04:02 PM

I would also like to ask wat a switchboard is and how I cn make one
Was This Post Helpful? 0
  • +
  • -

#11 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8940
  • View blog
  • Posts: 33,525
  • Joined: 12-June 08

Re: Interior Design Program Guidance

Posted 20 January 2014 - 04:03 PM

You'll need to provide context for your "switchboard".
Was This Post Helpful? 0
  • +
  • -

#12 junied32167  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 17-January 14

Re: Interior Design Program Guidance

Posted 20 January 2014 - 04:21 PM

 Estimate Paint Cost
 View Estimate Total
 Help and FAQ
 Exit Program
This is d context for my menu

[quote name='andrewsw' date='20 January 2014 - 03:51 PM' timestamp='1390258287' post='1961056']

Quote

Furthermore wen I try to put d prices on wiv the pound sign it dies not recognise dat
Do not use this child-like text-speak on a forum. You need to explain yourself clearly. Re-write your previous post.

Was This Post Helpful? 0
  • +
  • -

#13 junied32167  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 17-January 14

Re: Interior Design Program Guidance

Posted 25 January 2014 - 06:44 AM

I need to know how to loDo While rHeight

If rHeight > 6 Then
Console.WriteLine("Please enter a number between 2 and 6 !")
ElseIf rHeight < 2 Then
Console.WriteLine(" Your number is below 2 please try again !!!")
End If
Was This Post Helpful? 0
  • +
  • -

#14 junied32167  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 17-January 14

Re: Interior Design Program Guidance

Posted 25 January 2014 - 06:50 AM

i meant i need to know how to loop the if statement until the condition is met
Was This Post Helpful? 0
  • +
  • -

#15 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8940
  • View blog
  • Posts: 33,525
  • Joined: 12-June 08

Re: Interior Design Program Guidance

Posted 29 January 2014 - 09:11 AM

... Ah, what?
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2