1 Replies - 2048 Views - Last Post: 05 October 2005 - 05:36 AM Rate Topic: -----

#1 big-bad-dave  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 23-September 05

writing java programs

Post icon  Posted 04 October 2005 - 08:05 PM

i need some help writing three programs i dont now where to start here are mt three problilms Lab 8a. Fundamental Algorithms explored

Description

Write a program that will input a dataset of numbers that is followed by the sentinel -999. The program should calculate the sum of the numbers in the dataset, the count of the numbers in the dataset, and the smallest number in the dataset. The program should perform the above described processing using a single while loop – when you fall out of the while loop, each value that is calculated should be printed in a cosmetically pleasing fashion (so that the answers look good).

Lab 8b. Fundamental Algorithms explored w/Strings

Description

Write a program that will input a dataset of words that is followed by the sentinel ENDWORD. The program should count how many times that the word and appears in the dataset. The program should perform the above described processing using a single while loop – when you fall out of the while loop, each value that is calculated should be printed in a cosmetically pleasing fashion.

Lab 8c. Fundamental Algorithms explored w/Counting Loop

Description

Write a program that will input a dataset of numbers. For this problem, the dataset is not followed by a sentinel. The program should input the count of items in the dataset. The program should then set up a counting loop (use a for loop) and proceed to input the dataset, to calculate the sum of the numbers in the dataset, the count of the numbers in the dataset, and the smallest number in the dataset. The program should perform the above described processing using a single for loop – when you fall out of the for loop, each value that is calculated should be printed in a cosmetically pleasing fashion (so that the answers look good).



Please do the following:

1. Complete a brief pseudo-code solution for each problem to be submitted with the java source code

2. Construct a corresponding Java program for each problem which solves the problem

Is This A Good Question/Topic? 0
  • +

Replies To: writing java programs

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: writing java programs

Posted 05 October 2005 - 05:36 AM

Well, it is asking you to describe in pseudocode (wording) how your prgram will function, and then to wrote the program. We'd be happy to guide you in the right direction, but we like to see that you have attempted them for yourself as well.

Please post what you have done so far, and we'll ensure you're on the right track.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1