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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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