Flash Website Builder- Trendy Site Builder is a Flash Site Building tool that helps users build stunning websites. Check Out Custom Custom Logo Design by LogoBee. Website Design and Free Logo Templates available.
 CodingForums.com Noob Problem.

Before you post, read our: Rules & Posting Guidelines

Enjoy an ad free experience by logging in. Not a member yet? Register.
 04-28-2006, 07:19 AM PM User | #1 zero3xile New to the CF scene   Join Date: Apr 2006 Posts: 2 Thanks: 0 Thanked 0 Times in 0 Posts Noob Problem. ok guys im really new at java and just want some help in making this work I basically need to Implement this pseudocode in java. This is basic program which just finds the total area of which i need to cut on the lawn. i need to calculate the area of the land and then subtract of from the area of the house. The problem is that i can't seem to figure out wat code i need to type. below is my identifer list. IDENTIFIER - TYPE - DESCRIPTION blockArea - Integer - total area of house block. blockLength - Integer - length of the block. blockWidth - Integer - width of the block. houseArea - Integer - the area which the house occupies houseLength - Integer - length of the house. houseWidth - Integer - width of the house. mowingArea - Integer - the area surrounding the house mowingTime - Real - how long it takes to mowe the calculated mowingArea, consider in 1 minute they can mow 2 square meters. I have constructed a basic algorithm as well.. Algorithm Calculate_mowing_time Prompt for blockLength, blockWidth Get blockLength, blockWidth blockArea = blockLength * blockWidth Prompt for houseLength, houseWidth Get houseLength, houseWidth houseArea = houseLength * houseWidth mowingArea = blockArea - houseArea mowingTime = mowingArea / 2 Display mowingTime END If anyone here could help me out please in producing a code or atleast guiding me to a site which explains on how to produce calculations and promots then tat would be great. I also need to produce OO implementation driver but i may be able to do that later. thanks
 04-28-2006, 08:32 AM PM User | #2 Philip M Supreme Master coder!     Join Date: Jun 2002 Location: London, England Posts: 17,482 Thanks: 200 Thanked 2,470 Times in 2,448 Posts Sounds like a homework assignment to me. And Java is a completely different language to JavaScript, in spite of the confusingly similar names.
 04-28-2006, 08:45 AM PM User | #3 _Aerospace_Eng_ Supreme Master coder!     Join Date: Dec 2004 Location: In a place far, far away... Posts: 19,291 Thanks: 2 Thanked 1,044 Times in 1,020 Posts Read your book. Look into declaring and initializing variables. You are using ints so it won't be hard. Prompting the user to enter input can be done in various ways. I find JOptionPane to be easiest but you probably haven't learned that yet. Look into System.in or the Scanner class to get user input if you want it from the DOS prompt. What book are you using anyways? __________________ ||||If you are getting paid to do a job, don't ask for help on it!||||

 Bookmarks

 Thread Tools Rate This Thread Rate This Thread: 5 : Excellent 4 : Good 3 : Average 2 : Bad 1 : Terrible

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home :: Client side development     JavaScript programming         DOM and JSON scripting         Ajax and Design         JavaScript frameworks         Post a JavaScript     HTML & CSS     XML     Flash & ActionScript         Adobe Flex     Graphics and Multimedia discussions     General web building         Site reviews         Building for mobile devices :: Server side development     Apache configuration     Perl/ CGI     PHP         Post a PHP snippet     MySQL         Other Databases     Ruby & Ruby On Rails     ASP     ASP.NET     Java and JSP     Other server side languages/ issues         ColdFusion         Python :: Computing & Sciences     Computer Programming     Computer/PC discussions     Geek News and Humour Web Projects and Services Marketplace     Web Projects         Small projects (quick fixes and changes)         Medium projects (new script, new features, etc)         Large Projects (new web application, complex features etc)         Unknown sized projects (request quote)         Vacant job positions         Looking for work/ for hire         Project collaboration/ partnership         Paid work offers and requests (Now CLOSED)     Career, job, and business ideas or advice     Domains, Sites, and Designs for sale         Domains for sale         Websites for sale         Design templates and graphics for sale :: Other forums     Member Offers     Forum feedback and announcements

All times are GMT +1. The time now is 04:21 PM.