Microsoft Visual C#
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
bartleby

Concept explainers

Question
Book Icon
Chapter 5, Problem 4E
Program Plan Intro

Program plan:

  1. A class DailyTemps is created.
  2. The variable tot of type int is used to contain the total temperature values which is initialized to 0.
  3. The variable temperature of type int is used to store the valid values of temperature.
  4. The variable count of type int is used to store the count of temperatures entered and initialized to 0.
  5. A while loop is used to prompt a user for a series of temperature and end when user enters “999” as temperature.
  6. A if loop is used for checking the valid range of temperatures.

Program description:

The main purpose of the program is used to find the two largest values among 10 digits.

Blurred answer
Students have asked these similar questions
I am trying to create a application that generates a random number in the range of 1 through 100 and asks the user to guess what the number is.  If the user’s guess is higher than the random number, the program should display “Too high, try again.”  If the user’s guess is lower than the random number, the program should display “Too low, try again.”  If the user guesses the number, the application should congratulate the user and then generate a new random number so the game can start over.  Accumulate the guesses until the user guesses the number.  When the user correctly guesses the random number, the program should display the number of guesses they took.  "You guessed the number in # guesses", where # is the number of guesses it took.  And the programming language i am using is visual basic or vb.net 2019 edition
create an application that will find the largest and the smallest number of a series of integers input by the user. Assume that the user will input only integers that are between -100 and 100 (both inclusive) (no need to validate the input). When the user inputs 101, the application should output the smallest and the largest number.
Write an application that prompts a user for a month, day, and year. Then display the appropriate message: YYYY is not this year MM was a month earlier this year MM is a month later this year MM is this month An example of the program is shown below:
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    EBK JAVA PROGRAMMING
    Computer Science
    ISBN:9781337671385
    Author:FARRELL
    Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT