# Thread: Help with creating a code

1. Member
Join Date
Jan 2015
Posts
1
Rep Power
0

## Help with creating a code

Hello everyone,
I need help to create a code for this asign:

Write a program that computes the cost of painting and installing carpet in a room. Assume that the room has one door, two windows, and one bookshelf. Your program must do the following:a. Prompts the user to enter, in feet, the length, width, and height of a room.
A. Read the dimensions of the room.
b. Prompts the user to enter the width and heights, in feet, of the door, each window, and the bookshelf. Read these quantities.
c. Prompts the user to enter the cost, per square foot, of painting the walls. Read these quantities.
d. Prompts the user to enter of cost, per square foot, of installing carpet. Read these quantities.
e. Output the cost of painting the walls and installing the carpet.

Can someone write a code for me at lest a simple one, so I can learn from the structure, I was trying on my own but with no sucess Thank you

2. ## Re: Help with creating a code

Originally Posted by Europolak
Can someone write a code for me
No, we won't do your homework for you. We will, however, help you sort out any problems you have -- after you post your best efforts and ask a specific question.

db

3. Just a guy
Join Date
Jun 2013
Location
Netherlands
Posts
5,114
Rep Power
12

## Re: Help with creating a code

Originally Posted by Europolak
I was trying on my own but with no sucess Thank you
That's just a pretty way of saying "I gave up".

Don't give up. Rather put it away for a moment and try again later, possibly after having read some relevant chapters of your Java book again to get a better grasp on the language structures you need to use. You have a book to learn from, right?

4. ## Re: Help with creating a code

This assignment may look huge, but it isn't. Your program only does three things:
1) Keep a bunch of variables
2) Getting input from the user
3) Calculate stuff with basic math

Try writing a program that asks two numbers from the user and then you output the sum. If you can manage this, you can do the entire assignment.

5. Member
Join Date
Jan 2015
Posts
25
Rep Power
0

## Re: Help with creating a code

Originally Posted by Europolak
Hello everyone,
I need help to create a code for this asign:

Write a program that computes the cost of painting and installing carpet in a room. Assume that the room has one door, two windows, and one bookshelf. Your program must do the following:a. Prompts the user to enter, in feet, the length, width, and height of a room.
A. Read the dimensions of the room.
b. Prompts the user to enter the width and heights, in feet, of the door, each window, and the bookshelf. Read these quantities.
c. Prompts the user to enter the cost, per square foot, of painting the walls. Read these quantities.
d. Prompts the user to enter of cost, per square foot, of installing carpet. Read these quantities.
e. Output the cost of painting the walls and installing the carpet.

Can someone write a code for me at lest a simple one, so I can learn from the structure, I was trying on my own but with no sucess Thank you

I am a Civil Engineer and before writing the code for your app,you should know that there some deduction rules for calculating the area of painting of walls,plastering the walls.The rules are different for internal and external side.If you make a code to calculate the cost without using the deduction rules,the cost will be approximate.

Now regarding your app,I can make a app for you.

6. Moderator
Join Date
Apr 2009
Posts
13,541
Rep Power
26

## Re: Help with creating a code

Originally Posted by sagarvk
Now regarding your app,I can make a app for you.
That really won't help the OP...

7. ## Re: Help with creating a code

Originally Posted by sagarvk
I am a Civil Engineer and before writing the code for your app,you should know that there some deduction rules for calculating the area of painting of walls,plastering the walls.The rules are different for internal and external side.If you make a code to calculate the cost without using the deduction rules,the cost will be approximate.

Now regarding your app,I can make a app for you.
Yeah, and while you're at it, please add the brushes, rollers, thinner (or water if it's acryllic based), hourly wage, write-off of vans, ladders, buckets etc.

Gee, this is not about an accurate area calculation, this is a Java exercise.

Please don't make that app for him. Just... Please... Don't...

8. Member
Join Date
Jan 2015
Posts
25
Rep Power
0

## Re: Help with creating a code

Originally Posted by SurfMan
Please don't make that app for him. Just... Please... Don't...
Okay i wont make a app for him,but help him in doing it on his own.

9. ## Re: Help with creating a code

Originally Posted by sagarvk
Okay i wont make a app for him,but help him in doing it on his own.
That's the spirit! This is about learning, not getting stuff handed on a silver plate :)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•