You are required to provide:-
(i) Algorithm (Flowchart or Pseudocode) and
(ii) Java program
for the following problem.
Write a program that reads positive integers, finds the smallest of them. Assume that the input ends with number -1. Suppose that you entered 3 5 2 5 5 5 -1; the program finds that the smallest is 2.
Here are sample runs of the program:
Sample 1: Enter numbers:
3
5
2
5
5
5
-1
The smallest number is 2.
Due Date : 10/4/2016
Subscribe to:
Post Comments (Atom)
Cara download Installer windows 10 dalam format ISO
1. Jika anda bercadang untuk download windows 10 melalui website rasmi windows - pilihan untuk download dalam format ISO tidak di berikan. ...
-
ANSWERS TO CHAPTER EXERCISES (CHAPTER 8) Review Questions 1. List and describe various types of output, including technolog...
-
Based on real life scenario on any local company/ organization which you are very familiar, define the problem that could be addressed thr...
-
A. Response to the following statements by circling either T (TRUE) or F (FALSE). [10M] I. 1. Java enables users...
No comments:
Post a Comment