Help with C# programming in Microsoft Visual Studio: You will be creating a program that uses a GUI to allow the user to enter information about an employee. In addition to the main class you create, there will also be four additional classes named fileOutput, baseEmployee, superEmployee and advancedEmployee which you will have to create. For this problem, the baseEmployee class will need to accept user input for a name, email and address for a base employee. The advancedEmployee class should be able to extend the baseEmployee, by allowing an hourly rate and hours worked to be entered. Hours worked must be in the range of 0 to 80 and hourly rate is in the range of 10 to 42.50. The superEmployee class will then extend the advancedEmployee class and allow permission level of high, medium or low to be entered, along with their office number. The program should show a radio button that allows the user to choose whether or not the user is a base employee, advanced employee, or super employee. Whichever option they choose, only the fields that should be entered for that employee type should show up on the screen. After the employee information has been entered, it should be output to the GUI Screen. In addition, all output should be placed into an array or arraylist. The information in this array or arraylist should then be sent to a file named employeeInformation   Edit: Not sure what the commenter meant by "Screen needed".

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Computer Science

Help with C# programming in Microsoft Visual Studio:

You will be creating a program that uses a GUI to allow the user to enter information about an employee. In addition to the main class you create, there will also be four additional classes named fileOutput, baseEmployee, superEmployee and advancedEmployee which you will have to create. For this problem, the baseEmployee class will need to accept user input for a name, email and address for a base employee. The advancedEmployee class should be able to extend the baseEmployee, by allowing an hourly rate and hours worked to be entered. Hours worked must be in the range of 0 to 80 and hourly rate is in the range of 10 to 42.50. The superEmployee class will then extend the advancedEmployee class and allow permission level of high, medium or low to be entered, along with their office number. The program should show a radio button that allows the user to choose whether or not the user is a base employee, advanced employee, or super employee. Whichever option they choose, only the fields that should be entered for that employee type should show up on the screen. After the employee information has been entered, it should be output to the GUI Screen. In addition, all output should be placed into an array or arraylist. The information in this array or arraylist should then be sent to a file named employeeInformation

 

Edit: Not sure what the commenter meant by "Screen needed".

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question
  • The program will consist of one file - the main application class
    • Name the class appropriately and name the file Program.cs (the default when you create the application)
    • Include documentation at the top of the file that includes
      • Your name
      • Date of development
      • Assignment (e.g., CIS214 Performance Assessment - User Entry of Age)
      • Description of the class
  • The main application class must meet the following requirements
    • Print a line that states "Your Name - Week 4 PA User Entry of Age"
    • Ask the user to enter their age
    • If the age is between 1 and 100
      • print a message stating the age the user entered
      • exit the program
    • If the age is less than 1 or greater than 100
      • generate an ArgumentOutOfRangeException
      • print the exception information
      • print an error message
    • If the value is not an integer
      • handle the FormatException
      • print the exception information
      • print an error message
    • Continue asking the user to enter their age until a valid age is entered
    •  
Your Name - Week 4 PA User Entry of Age
Please enter your age: twenty
System. FormatException: Input string was not in a correct format.
at System.Number. ThrowOverflowOrFormatException (ParsingStatus status, TypeCode type)
at System.Convert.ToInt32 (String value)
at UserAgeEntry.Main(String[] args) in C:\source\CIS214 Week 4\pa_user_age_solution\Program.cs:line 26
Please enter an integer in range 1 100.
Please enter your age: 0
System.ArgumentOutOfRangeException:
Specified argument was out of the range of valid values.
at UserAgeEntry.Main(String[] args) in C:\source\CIS214 Week 4\pa_user_age_solution\Program.cs:line 30
Please enter an integer in range 1 - 100.
Please enter your age: -5
System.ArgumentOutOfRange Exception: Specified argument was out of the range of valid values.
at UserAgeEntry.Main(String[] args) in C:\source\CIS214 Week 4\pa_user_age_solution\Program.cs:line 30
Please enter an integer in range 1 - 100.
Please enter your age: 101
System.ArgumentOutOfRangeException:
Specified argument was out of the range of valid values.
at UserAgeEntry.Main(String[] args) in C:\source\CIS214 Week 4\pa_user_age_solution\Program.cs:line 30
Please enter an integer in range 1 100.
Please enter your age: 25
The age entered is: 25
-
Transcribed Image Text:Your Name - Week 4 PA User Entry of Age Please enter your age: twenty System. FormatException: Input string was not in a correct format. at System.Number. ThrowOverflowOrFormatException (ParsingStatus status, TypeCode type) at System.Convert.ToInt32 (String value) at UserAgeEntry.Main(String[] args) in C:\source\CIS214 Week 4\pa_user_age_solution\Program.cs:line 26 Please enter an integer in range 1 100. Please enter your age: 0 System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. at UserAgeEntry.Main(String[] args) in C:\source\CIS214 Week 4\pa_user_age_solution\Program.cs:line 30 Please enter an integer in range 1 - 100. Please enter your age: -5 System.ArgumentOutOfRange Exception: Specified argument was out of the range of valid values. at UserAgeEntry.Main(String[] args) in C:\source\CIS214 Week 4\pa_user_age_solution\Program.cs:line 30 Please enter an integer in range 1 - 100. Please enter your age: 101 System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. at UserAgeEntry.Main(String[] args) in C:\source\CIS214 Week 4\pa_user_age_solution\Program.cs:line 30 Please enter an integer in range 1 100. Please enter your age: 25 The age entered is: 25 -
Solution
Bartleby Expert
SEE SOLUTION
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY