• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh


Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The process of finding the largest value or smallest value in a sequence is commonly used in many computer applications. This assignment involves developing a program that prompts the user to enter a series of 10 integers and then determines and displays the largest and smallest values entered. Your solution must use at least the following variables:

           counter                        a counter to count how many integers were entered

           number                       the integer most recently input by the user

           smallest                       the smallest number entered so far

           largest                         the largest number entered so far

Write three separate programs for this assignment. Name the first program Unit4Lab3A and use a while construct in the solution. Name the second program Unit4Lab3B and use a for construct in the solution. Name the third program Unit4Lab3C and use a do-while construct in the solution.
Saloon Keeper
Posts: 9561
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
Ew. You guys are ugly with a capital UG. Here, maybe this tiny ad can help:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic