Analyze a numeric value provided by the user

Assignment Help Basic Computer Science
Reference no: EM131349044

Write a code segment that will analyze a numeric value provided by the user to determine if he or she is a newborn, a child, a teenager, or an adult. Make sure to include the following in your code:

  • Display the message "Please enter your age in years" to the user.
  • Use the ReadLine() method to obtain a value from the user.
  • Use the Parse() method to convert the user's value to an appropriate data type for numeric comparisons.
  • Check to be sure the user entered a value greater than or equal to 0 and less than or equal to 150.
  • Use ElseIf statements to determine the stage of life associated with the user's input.An input value of 0 indicates the user is a newborn.An input value of 1 up to but not including 13 is a child.An input value of 13 up to but not including 20 is a teenager. An input value of 20.0 or more is an adult.

Reference no: EM131349044

Questions Cloud

Write a five page research paper about humility : Write a research paper 3-5 page about HUMILITY. I want atlest 4 references no more of em from the internet.
Desirable for a structure chart : Question 2: Why is it desirable for a structure chart to be highly cohesive and loosely coupled?
Write a paper about race inequality and class difference : Write a paper about Race inequality, and class difference. Main argument: Race inequality issue is not independent from social class difference, there is an interrelationship between race and class.
Attached to webpage development : HTML is usually attached to webpage development, giving instructions to a web browser on how to display the webpage, how does it work with mobile development?
Analyze a numeric value provided by the user : Write a code segment that will analyze a numeric value provided by the user to determine if he or she is a newborn, a child, a teenager, or an adult. Make sure to include the following in your code:
Problem regarding the technological breakthroughs : Of all the technological breakthroughs since 2000, which will have the most influence on the next ten years of your life? Please answer this question in two phases; first, deal with life around you and, second, focus directly on the life of you an..
Why are so many people victims of cybercrime : What motivated Jack the Ripper? What has caused the rise of ISIS? Why do some Americans think immigrants are more likely to commit crimes than native born Americans? Why are so many people victims of cybercrime?
Bachelor of science in information technology program : As one of the requirements for the Bachelor of Science in Information Technology program, you must design and develop a computer program using professional principles and standards.
Define and argue a business case to justify a new product : Assessment Task: Marketing Report - Briefly analyse the external and internal environments (SWOT) and Identify a relevant strength, opportunity - Identify and describe a target market - Develop a suitable new product for the company to introduce for ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Wants to design a decision support system

The owner of a hardware store wants to design a decision support system to predict how many and which type of nails she should sell and what information she needs to do so. The scenario is described below:

  Name of the wsh object that vbscript

What is the name of the WSH object that VBScript uses to open an text file for reading or writing data?

  What is the current size of q

Suppose an initially-empty queue Q has performed a total of 32 enqueue operations, 10 front operations, and 15 dequeue operations, 5 of which generated QueueEmptyExceptions,

  Information technology internal controls framework

COBIT is a widely adopted information technology internal controls framework. COBIT is distributed by ISACA. Access ISACA's Web site at http://www.isaca.org/Knowledge-Center/COBIT/Pages/Overview.aspx.

  Draw a lai artifact table to define a module

Using the notation of your choice, draw a process diagram of a software development process that prototypes three different designs and choose the best from among them.

  Medical treatment-temporary disability-permanent disability

Research a real Workers' Compensation Case. Provide an overview of the case and discuss which classification the case would fall in (medical treatment, temporary disability, permanent disability, vocational rehab or survivor benefit). Discuss the ..

  Access the administrative tools

Access the Administrative Tools

  How well does the number of hops correlate

How well does the number of hops correlate with geographical distance?

  Explain the key benefits that object-oriented programming

Explain the key benefits that object-oriented programming could afford the health care industry - Provide example that demonstrates the key manner in which the health care industry could implement functions.

  Computing a dense full cube of low dimensionality

Computing a dense full cube of low dimensionality (e.g., less than eight dimensions).

  Simple jquery question

Simple jQuery question

  Write a program that will define the f string manipulation

1.) Write a program that will define the following string manipulation functions. Each is analogous to thecorresponding C++ string function.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd