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
-
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....
-
Explain the difference between an absolute minimum and a local minimum.
-
Draw a box plot using the following 5-number summary: Min: 66 Q1: 68 Median: 73 Q3: 78 Max: 80
-
It looks to me that you have devoted everything to this company and they have treated you badly. Is that right?
-
Ohno Company specializes in manufacturing a unique model of bicycle helmet. The model is well accepted by consumers, and the company has enough orders to keep the factory production at 10,000 helmets...
-
Data Manipulation Tasks a Insert 20 records into each table for testing purposes. a Delete an entire order by using the unique identifier for that order. o Update the price of a product by using the...
-
An insurance company will insure a $ 50,000 diamond for its full value against theft at a premium of $ 400 per year. Suppose that the probability that the diamond will be stolen is .005, and let x...
-
The belief that a country should concentrate on producing the goods it can produce most efficiently is A. the belief that lowering taxes can increase revenue. B. the outside lag. C. the law of...
-
The Nelson partnership begins business on July 17, 2018. It is not able to use business purpose to support a tax year. The four partners, their interests in partnership capital and profits, and their...
-
Baker, a cash-basis, calendar-year taxpayer, is a partner in an accrual-basis partnership that reports its taxable income on an October 31 fiscal year. Baker has been provided the following...
-
A binary mixture of carbon dioxide and water exists in vaporliquid equilibrium at 343.15 K and 1 bar. The solubility of CO2 in the liquid has been measured as xCO2 = 0.000255. What is the Henrys law...
-
A major problem with EDs is the long wait times to be seen. This can lead to negative health consequences as well as patient dissatisfaction. What are the possible approaches to address this...
-
Describe how library and Internet research can be used to generate new business ideas.
-
The scientist has invented a pill that can replace sleep. It is organic, and cheap, and the only side effect is the elimination of dreaming. People taking it would recover approximately 25 years...
-
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...
-
Why is it important to synchronize data and process models?
-
Create the use-case descriptions and diagram(s) for the system in problems 1 and 2. Be sure to create your use cases so that they are complete and clear. Remember, in real life, the system...
-
Conduct a technical feasibility study. What would you recommend the company use in the creation and maintenance of their site (e.g. languages, speciific host, encryption)? Why does your choice affect...
Study smarter with the SolutionInn App