Display message please enter your age in years to the user

Assignment Help Basic Computer Science
Reference no: EM131318641

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: EM131318641

Questions Cloud

Return on the tangency portfolio : Suppose there are two risky assets, c and d, the tangency portfolio is 60% c and 40% d, and the expected return and standard deviation of the return on the tangency portfolio are 5% and 7%, respectively. Suppose also that the risk-free rate of ret..
Explain the consequences to swapfin : Explain the consequences to SwapFin if CPN defaults with and without closeout netting. Within your answer, explain what is meant by cherry picking.
Generate a random integer number between 20 and 100 : The program informs the user about the number of trials, the randomly generated number, and his status of success or failure to guess the number.
How the therapeutic relationship aligns with interpersonal : Summarize the fundamental elements of your theory of choice, including definitions of important terms, personality development, and major historical figures associated with the theory. Explain how your personal worldview (e.g. core beliefs about..
Display message please enter your age in years to the user : 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.
Describe the strengths-weaknesses of the motivation theory : Using the readings provided or any other source, in three paragraphs describe the strengths and weaknesses of the motivation theory of Abraham H. Maslow, the Gestalt Approach of Fritz Perls or the client centered approach of Carl Rogers.The intern..
Determine which row has the largest sum : Print to the screen a string starting with "R" and then the number of the row with no spaces. For example, "R2".
Dealer engaging in derivatives transaction : Explain why end users, who conduct their risk management operations in the treasury department, should not require the treasury department to be a profit center ?
Which company you believe is winning the competition and why : Find a recent article or video describing the competition between two or more businesses. The competing businesses and the products they sell. Which company you believe is winning the competition and why?

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