Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Steps for Your application will demonstrate the use of system exception incorporate the following requirement into your application. The program will consist of one file

Steps for Your application will demonstrate the use of system exception incorporate the following requirement into your application.
The program will consist of one file - the main application class.
Name of class appropriately andname of the gile program.cs ( the dafault when you create the application)
Include documetation at the top of the file that includes
Your name
Date of development
Assignment(CIS214 performance Assessment - User Entry of Age)
Description of the class
The main application class must meet the following requirement
Print the line state " Your name - PA User Entry of Age"
Ask the user to enter their age.
If the age is less than 1 or greater than 100
Generate an ArgumentOutOfRangeException
Print the exception information
Pront error message
If the value is not an integer
Handle the FormatException
Print the rxception information
Print an error message
Contiune asking the user to enter their age until vaild age is entered

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Name three benefits and two costs of decentralization?

Answered: 1 week ago