4) Write a C# program that inputs five numbers from user and determines and displays the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
4) Write a C# program that inputs five numbers from user and determines and displays the number of negative numbers input, the number of positive numbers input and the number of '0' input. [1 mark] 5) Write a C# program to perform to demonstrate the error handling using Try, catch and finally block. [1 Marks] 6) Write a C# program to create a BMI calculator app that reads the user's weight in pounds and height in inches (or, if you prefer, the user's weight in kilograms and height in meters), then calculates and displays the user's body mass index. The app should also display the following information from the Department of Health and Human Services/National Institutes of Health so the user can evaluate his/her BMI: [2.5 Marks] BMI VALUES Underweight: less than 18.5 Normal: between 18.5 and 24.9 Overweight: between 25 and 29.9 Obese: 30 or greater (Body Mass Index Calculator) The formulas for calculating the BMI are: BMI -w▬▬▬▬-e---i-g---------I----------0---- U--------------------- --7----0----3---- heightInInches x heightInInches 4) Write a C# program that inputs five numbers from user and determines and displays the number of negative numbers input, the number of positive numbers input and the number of '0' input. [1 mark] 5) Write a C# program to perform to demonstrate the error handling using Try, catch and finally block. [1 Marks] 6) Write a C# program to create a BMI calculator app that reads the user's weight in pounds and height in inches (or, if you prefer, the user's weight in kilograms and height in meters), then calculates and displays the user's body mass index. The app should also display the following information from the Department of Health and Human Services/National Institutes of Health so the user can evaluate his/her BMI: [2.5 Marks] BMI VALUES Underweight: less than 18.5 Normal: between 18.5 and 24.9 Overweight: between 25 and 29.9 Obese: 30 or greater (Body Mass Index Calculator) The formulas for calculating the BMI are: BMI -w▬▬▬▬-e---i-g---------I----------0---- U--------------------- --7----0----3---- heightInInches x heightInInches
Expert Answer:
Answer rating: 100% (QA)
4 CODE using system class Program static void Main ConsoleWriteLineEnter five nums var num new float... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
A 40 kg child uses a pogo stick to bounce up and down. The spring constant, k , of the toy equals 8,650 N/m. (a) By how much would the spring be compressed by the child if she simply balanced herself...
-
Please do the following Matlab problem, 1.Write a for loop ranging from 3 to 5. In the loop, print the value of the loop index to the screen using fprintf in the following format: Value is n where n...
-
Goodwill impairment tests are carried out annually. During 2014, goodwill impairment was determined to be $26,000 on the parents share of goodwill and $5,000 on the NCI share. In 2016, impairment in...
-
The membrane filter technique is used to test a polluted water sample for coliform group. Three different dilutions of the water sample were prepared and each was filtered through 5 filter membranes....
-
Several different situations are outlined below that may affect the financial results of two different companies operating in the same industry. Instructions (a) For each of the situations described...
-
The following transactions occurred between Retro Furnishings and DM Furniture Warehouse during July of the current year: Jul 4 Retro Furnishings purchased $7,200 of merchandise from DM Furniture...
-
The following data were taken from the financial statements of The Amphlett Corporation, which is all equity financed. Required: 1. Calculate the following ratios for 2016 and 2017: a. Return on...
-
Suppose that you are a collector of antique cars and you need to purchase spare parts for a 1938 engine. These parts are not made anymore and are scarce. You discover that Beem has the spare parts...
-
Required information Use the following information for the Exercises below. (Algo) [The following information applies to the questions displayed below] Year 1 total cash dividends Year 2 total cash...
-
Paul and Wayne equally own the PW Partnership. Paul's basis was $30,000 and Wayne's basis was $22,000 at the beginning of the year. PW Partnership had the following income and expense items:...
-
The Great Outdoors Company sells outdoor furniture. You are the manager of The Great Outdoors Company and are evaluating whether to invest in a new product line which will generate sales for 7...
-
On a summer day the air temperature is \(30^{\circ} \mathrm{C}\) and the relative humidity is \(55 \%\). Water evaporates from the surface of a lake at a rate of \(0.08 \mathrm{~kg} / \mathrm{h}\)...
-
Another term or description for natural variation is what?
-
A production process that exhibits only natural variation would be considered what?
-
Why would a consumer tolerate a certain amount of defectiveness in a product? When is this more common?
-
A major advantage of using SPT is the minimization of average flowtime. What is a disadvantage of the use of SPT?
-
A pension fund manager is considering three mutual funds. The first is a stock fund, the second is a long-term government and corporate bond fund, and the third is a T-bill money market fund that...
-
Briefly describe the following types of group life insurance plans: a. Group term life insurance b. Group accidental death and dismemberment insurance (AD&D) c. Group universal life insurance d....
-
State whether each of the following is true or false. If false, explain why. a) Functional programmings filter, map and reduce operations correspond to the IEnumerable extension methods Where, Select...
-
Describe the two ways in which control statements can be combined.
-
State whether each of the following is true or false. If false, explain why. a) When strings are compared with ==, the result is true if the strings contain the same values. b) A string can be...
-
Does monopoly retard innovation?
-
Which of the following is true of perfect competition but not true of monopoly? a. The firms average total cost curve is U-shaped. b. Marginal revenue is equal to price. c. A profit-maximizing firm...
-
Monopolists are like perfectly competitive firms in that a. both maximize profits at the output level where marginal revenue equals marginal cost. b. both could be earning either profits or losses in...
Study smarter with the SolutionInn App