Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext ThreadShow in Flat Mode*


SubjectRe: Java Assignment help! Reply to this message
Posted bybluejaywpg
Posted on04/02/06 00:24 AM



These tasks sound extremely simple - I am not a Java programmer but I think I could write such a program in 2 hours or less just by researching about Java programming via the Internet. (I don't have time to prove this now...)

The important thing when programming in any language is to make it so that you can easily change a program with as little coding changes as possible. For example write the program printing the stars so that by changing 1 number, it will print up to 21 stars - or step by 4 stars rather than 2. I know BASIC (or VB - generally the same concept) so I can tell you what code would be used there but you have to learn the concept of programming.

You might want to write it out, post the code here, & then maybe someone can offer tips on how to make it better. But asking for help on essentially a blank slate sounds suspicious at best.

> Hey All I have an assignment where I need to code some stuff in java and need
> some help with it so all you java techheads read in ;)
>
>
> "Task 1 Write a simple (console) program in Java (Task1.java), using loops (you
> may require
> nested loops) to print the following pattern:
> *********
> *******
> *****
> ***
> *
> ***
> *****
> *******
> *********
> Thus there are 9, 7, 5, 3, 1, 3, 5, 7 and 9 stars in each of the corresponding
> rows.
> Marks distribution for the exercise-
> Printing correct pattern (using loops):
> Code commenting:
> Code indentation:
> Task 2
> Write a console program in Java (Task2.java) that provides two different ways to
> reverse
> a string- “rotator”. You can hardcode the string in the program (i.e. you do not
> have
> to ask for a user input- you will cover user input later on, in the semester).
> Thus you will write two functions (obviously with different logics) that will
> reverse the
> string.
> Marks distribution for the exercise-
> Correct implementation (with an elegant logic):
> Code commenting:
> Code indentation:
> In case you have some special instructions about your program, include them in a
> readme.txt file. Zip all the files and submit only one zipped file through
> Weblearn."
>
> those are the two tasks that I need help with if anyone can help me out shout me
> out an email kthnx!
>
>
>


Jay
Hardware/Tech Support Moderator

# of bugs found in Windows so far:



-
Entire Thread
Subject  Posted byPosted On
*Java Assignment help!  Trizae03/31/06 10:15 AM
..Re: Java Assignment help!  bluejaywpg04/02/06 00:24 AM
.*Re:   Looker03/31/06 12:13 PM
.*Re: Java Assignment help!  LordEvilElmo03/31/06 10:44 AM