MICROSOFT VISUAL C# <CUSTOM LL>
MICROSOFT VISUAL C# <CUSTOM LL>
7th Edition
ISBN: 9780357093344
Author: FARRELL
Publisher: CENGAGE C
Question
Book Icon
Chapter 7, Problem 8E
Program Plan Intro

Program Plan

1. Below mentioned variables are used

  • speedInteger variable that holds the wind speed.
  • hurricaneInteger variable that holds the category of hurricane.
  • s −Integer variable that is used as a parameter.

2. Below mentioned function is used

  • checkHurricaneOrNot() − used to check the type of hurricane as per the user input and return the type of hurricane.

Program description:

This program is for creating a console application that takes user input for the wind speed of the storm and outputs whether or not the storm is a hurricane. If the storm is a hurricane, the category of the hurricane is displayed.

Blurred answer
Students have asked these similar questions
To encourage good grades, Hermosa High School has decided to award each student a bookstore credit that is 10 times the student’s grade point average. In other words, a student with a 3.2 grade point average receives a $32.0 credit. Create an application that prompts a student for a name and grade point average, and then passes the values to a method (computeDiscount) that displays a descriptive message. The message uses the student’s name, echoes the grade point average, and computes and displays the credit, as follows: John, your GPA is 3.4, so your credit is $34.0.
To encourage good grades, Hermosa High School has decided to award each student a bookstore credit that is 10 times the student’s grade point average. In other words, a student with a 3.2 grade point average receives a $32.0 credit. Create an application that prompts a student for a name and grade point average, and then passes the values to a method (computeDiscount) that displays a descriptive message. The message uses the student’s name, echoes the grade point average, and computes and displays the credit. An example of the program is shown below: Enter your name >> John Enter your gpa >>3.4 John, your GPA is 3.4, so your credit is $34.0
1.__The output of first method should be that they are not equal. And the output of the second method should be that they are equal. Partial code is given below to help you complete this question. You can ignore this entirely and write your...
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage