•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 423,990 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,966 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 289 | Replies: 1
•
•
Join Date: May 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
I was wondering if I can get some guidance on the following questions.
___________________________________________________________________________
Write a text menu-based program to allow a user to continually select from the following options:
a. Store up to a maximum of 20 integers in an array. Enter numbers until the sentinel value -
99 is entered. Be sure to warn the user if they attempt to enter too many numbers.
b. Print out all the values in the array.
c. Search for a specified number in the array. If the number is found, print, “The number
<insert number> is found”, otherwise print, “The number <insert number> is not found”.
d. Remove a number from the array. If the number is found, print, “The number <insert
number> has been removed” and move elements to get rid of the “space” in the array. Print
out an appropriate message if the number is not found.
e. Set all cells in the array to contain the same user-specified number.
f. Calculate the average of the numbers in the array.
g. Quit the program.
___________________________________________________________________________
Write a text menu-based program to allow a user to continually select from the following options:
a. Store up to a maximum of 20 integers in an array. Enter numbers until the sentinel value -
99 is entered. Be sure to warn the user if they attempt to enter too many numbers.
b. Print out all the values in the array.
c. Search for a specified number in the array. If the number is found, print, “The number
<insert number> is found”, otherwise print, “The number <insert number> is not found”.
d. Remove a number from the array. If the number is found, print, “The number <insert
number> has been removed” and move elements to get rid of the “space” in the array. Print
out an appropriate message if the number is not found.
e. Set all cells in the array to contain the same user-specified number.
f. Calculate the average of the numbers in the array.
g. Quit the program.
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- memory management in wndows 2000 (Windows NT / 2000 / XP / 2003)
- very strange string behaviur.. (C)
- libtiff questions (C++)
- Sorting/assigning Help Needed Immediately (C++)
- Collapsible table sorting problem (JavaScript / DHTML / AJAX)
- Quick question about text processing (Shell Scripting)
- Finding duplicated names in a Sequential/Random File (Visual Basic 4 / 5 / 6)
- Help!! Applet only works in AppletViewer but not in html file with <applet> tags!!! (Java)
- This ought to be simple - extra spaces (PHP)
Other Threads in the Java Forum
- Previous Thread: JFormattedTextField Alphabeticals
- Next Thread: Stuck: Creating a clock



Threaded Mode