|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
i need help with this...and i know nothing about java : mad:
Code a little application for creation and visualization of small files, and also a little calculator to make simple operations (addition, subtraction, multiplication, division and square root). While executed, the application must ask the user if he wants to use the text processor, the calculator or exit the program. - Chosing the text processor, the user may chose between creating a new text file or read an existing one. - If the user choses to read a file, he must write the name of the file, andhaveaccess to the content of the file. - If the user choses to create a file, he must insert the text till he writes #END# in an isolated line, after that he must chose the name of the file where to save the text. - In the end of any of the options, the user should return to the main question: use to text processor, calculator or exit. - When you "implement" the application, you must use a class to the text processor, another to the calculator, and another to combine both and the interaction with the user, and any other you think its necessary. --------------------- this is how it should look: WELCOME TO WORLDCAC! ------------------------ - Which option you want to execute? Text Processor [WORD], Calculator [CALC], or Exit [EXIT]? WORD[i/] --------------------- - Would you like to read a file [READ] or create a new one [WRITE]? [i]READ --------------------- - What's the name of the file? read_text.txt - The content of the file is: The happy dogs make me happy. The happy dogs make me happy. --------------------- - Which option you want to execute? Text Processor [WORD], Calculator [CALC], or Exit [EXIT]? WORD --------------------- - Would you like to read a file [READ] or create a new one [WRITE]? WRITE - Insert the content of the file (end with #WNS# in an isolated line) The happy dogs love jah. The happy dogs love jah. - What's the name of the file? --------------------- - Which option you want to execute? Text Processor [WORD], Calculator [CALC], or Exit [EXIT]? CALC --------------------- - Which operation you want to execute: addition [ADD], subtraction [SUB], multiplication [MULT], division [DIV] or square root [ROOT]? ROOT - What's the value you want to use? 25 - The result is 5.0. --------------------- - Which option you want to execute? Text Processor [WORD], Calculator [CALC], or Exit [EXIT]? EXIT {the end} NOTE: The italic text represents the data inserted by the user. (on other words, it represents what the user has writen!) thanks ![]() |
|
#2
|
||||
|
||||
|
Sounds like a homework assignment to me.
|
|
#3
|
||||
|
||||
|
> i know nothing about java
Sounds like an excellent learning opportunity... You already have the visuals worked out, try laying out some pseudo-code and you're assignment is half-done... Remember, when you're prepared properly, coding is the easy part... |
|
#4
|
|||
|
|||
|
balt,
I have to agree 100% with Daryl and Daryl (Reminds me of the Newhart show -- "This is my brother Daryl, and my other brother Daryl!" LOL) Anyways... Like I said, I agree with them. If you're interested in learning the language (or programming in general), you need to start the assignment (I too think it's an assignment) on your own. Then if you run into a problem, we're always here to help... But nobody's going to "do it" for you. I would suggest speaking to an assistant/tutor on getting you started with the fundamentals (especially if you're having a hard time in class). HTH! |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > need help! urgent ;p little prog! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|