Results 1 to 9 of 9
Like Tree2Likes
  • 2 Post By sagarvk

Thread: Help with creating a code

  1. #1
    Europolak is offline Member
    Join Date
    Jan 2015
    Posts
    1
    Rep Power
    0

    Unhappy 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. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    12,059
    Rep Power
    26

    Default Re: Help with creating a code

    Quote Originally Posted by Europolak View Post
    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
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

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

    Default Re: Help with creating a code

    Quote Originally Posted by Europolak View Post
    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?
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  4. #4
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,995
    Rep Power
    9

    Default 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.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  5. #5
    sagarvk is offline Member
    Join Date
    Jan 2015
    Posts
    25
    Rep Power
    0

    Default Re: Help with creating a code

    Quote Originally Posted by Europolak View Post
    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. #6
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Help with creating a code

    Quote Originally Posted by sagarvk View Post
    Now regarding your app,I can make a app for you.
    That really won't help the OP...
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  7. #7
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,995
    Rep Power
    9

    Default Re: Help with creating a code

    Quote Originally Posted by sagarvk View Post
    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...
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  8. #8
    sagarvk is offline Member
    Join Date
    Jan 2015
    Posts
    25
    Rep Power
    0

    Default Re: Help with creating a code

    Quote Originally Posted by SurfMan View Post
    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.
    DarrylBurke and JosAH like this.

  9. #9
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,995
    Rep Power
    9

    Default Re: Help with creating a code

    Quote Originally Posted by sagarvk View Post
    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 :)
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. Creating Classes for my code!
    By Khaled in forum New To Java
    Replies: 2
    Last Post: 05-28-2014, 08:24 PM
  2. Help with creating a code about Java files
    By incxx in forum New To Java
    Replies: 2
    Last Post: 03-28-2013, 02:30 AM
  3. please help.creating a source code for classes
    By adrianking in forum New To Java
    Replies: 5
    Last Post: 03-04-2013, 04:40 PM
  4. dice game code creating help!
    By singingglue in forum New To Java
    Replies: 17
    Last Post: 11-22-2011, 03:34 AM
  5. Creating a java gui to create xml code
    By Jman in forum New To Java
    Replies: 3
    Last Post: 04-27-2008, 07:56 PM

Posting Permissions

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