
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".

Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

- 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
-](https://content.bartleby.com/qna-images/question/28e848f8-0b0f-447e-a5ec-054140b4d373/822da364-f286-4921-9249-8c9f518c632b/xmyiyw8_thumbnail.png)
- 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
-](https://content.bartleby.com/qna-images/question/28e848f8-0b0f-447e-a5ec-054140b4d373/822da364-f286-4921-9249-8c9f518c632b/xmyiyw8_thumbnail.png)
- QUESTION 7 Final data/code constructs are only inheritable once. O True O False QUESTION 8 You can include code in an interface by using the keywordarrow_forwardCreate etBeans project with the following configuration: Project Name: Assignment_3_6_1 Package: makechange • Class Name: MakeChange Write a program that calculates the number of coins necessary to make change for any amount the user types in. The program should have variables for the amount of: • toonies • loonies quarters • dimes nickels pennies (even though they don't exist any more) Display all of the information clearly in tl.e output of the program. HINT: Use integer division (/) and modulus (8) in your calculations. Your tion could look similar to:arrow_forwardThe 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 enteredarrow_forward
- Instructions Complete the following tasks: Use the Class Wizard in Visual Studio to create a class called Student. (Note that the Class Wizard will automatically create the .h and .cpp files.) Your Student class should have the following class members/properties: studentID, firstName, lastName, and studentStatus. (Note that the studentStatus member will be of type Status, which is an enum you will create.) Create a default constructor and a constructor that requires only the Student Id, first name, and last name. (The studentStatus member should not be initialized at this time.) Create a member function called getStudentInfo() that returns a string that contains the students first name, last name, and their status. Create a destructor for the Student class. (Note that the Class Wizard automatically includes a destructor.) Add a status.h file to the solution. Then add a Status enumeration to that file with the following entries: Attending, NonAttending, and Graduated. Then include this…arrow_forward________ are the number of different ways in which objects can be arranged without regard to order. Simple events Random variables Combinations Permutationsarrow_forwardInstructions: IMPORTANT: This is a continuation of the previous part of the project and assumes that you are starting with code that fulfills all requirements from that part of the project. Modify the your code from the previous part of the project to make it modular. In addition to the main method, your code must include the following static methods: Method 1 - displayTitle A method that creates a String object in memory to hold the text “Computer Hardware Graphics Quality Recommendation Tool” and displays it Method 2 – getResolutionString A method that accepts an integer value (1, 2, 3, or 4) that denotes the monitor resolution. The method should return the appropriate String representation of the monitor resolution. For example, if the method is passed an integer value of 1, it should return a String with a value of “1280 x 720”. (See Step 4 of Project 1) Method 3 – getMultiplierValue A method that accepts an integer value (1, 2, 3, or 4) that denotes the monitor resolution and…arrow_forward
- Object-Oriented Programming ❤❤❤ Matchmaker with Java ❤❤❤ Summary: Create a Java application that will determine your true love. Prerequisites: Java, VS Code, and Terminal In this assignment you will develop and test a command-line application written in the Java language that asks questions to determine if a person is your true love. More specifically your application should ask five questions in the form of statements and allow the user to respond to each statement with the numbers 1 through 5 with 1 indicating strongly disagree and 5 indicating strongly agree. You will then compare the person’s answers with your desired “true love” answers. The closer the answers are to your desired “true love” answers the better match the two of you are for each other. For example, suppose you choose the statement “Broccoli is delicious.” and your desired answer was 1 (strongly disagree) because you really don’t like broccoli. If the application user entered 4 (agree), then the two of you would not…arrow_forwardAssignment Submission Instructions:This is an individual assignment – no group submissions are allowed. Submit a script file that contains the SELECT statements by assigned date. The outline of the script file lists as follows:/* ******************************************************************************** * Name: YourNameGoesHere * * Class: CST 235 * * Section: * * Date: * * I have not received or given help on this assignment: YourName * ***********************************************************************************/USE RetailDB;####### Tasks: Write SQL Queries ######### -- Task 1 (Customer Information):-- List your SELECT statement below. Make sure the SQL script file can be run successfully in MySQL and show the outcome of the code on MySQLarrow_forwardWrite a class name FileDisplay with the following methods: Constructor: takes the name of a file as an argument displayHead: displays only the first five lines of the file’s contents. If the file contains less than 5 lines, it should display the file’s entire contents. displayContents: displays the entire contents of the file, the name of which was passed to the constructor. writeNew: displays the contents of a file, the name of which was passed to the constructor. Each line should be preceded with a line number followed by a colon. The line numbering should start at 1. As each line is displayed it should also be written to a new file, the name of which is passed in as a parameter. I have provided a test file called “testfile.txt”. I have also provided a driver for the application called “filedisplaytest.java”. This file is complete and should not be altered. Test File: This is line one.This is line two.This is line three.This is line four.This is line five.This is line…arrow_forward
- Portfolio Instructions: You are working for a financial advisor who creates portfolios of financial securities for his clients. A portfolio is a conglomeration of various financial assets, such as stocks and bonds, that together create a balanced collection of investments. When the financial advisor makes a purchase of securities on behalf of a client, a single transaction can include multiple shares of stock or multiple bonds. It is your job to create an object-oriented application that will allow the financial advisor to maintain the portfolios for his/her clients. You will need to create several classes to maintain this information: Security, Stock, Bond, Portfolio, and Date. The characteristics of stocks and bonds in a portfolio are shown below: Stocks: Bonds: Purchase date (Date) Purchase date (Date) Purchase price (double)…arrow_forwardCar Class Project The car classwill havethe following attributes: •year: an integer that holds the car's model year •model: a string that holds the make of the car •make: a string that holds the model of the car •speed: an integer that holds the car's current speed Your class should contain thefollowing: A docstring that briefly describes the class and lists the attributes. The docstring will serve as the documentation for your class. •A constructor (__init__ method) that takes the car's year model and make as optional arguments. The constructor will set the value of the speed attribute to 0.•An __str__ method that returns the car's year model and makein a string. •To test your class, create acar object and use the print function to verify that the constructor and __str__ methodsare working correctly. •An accessor method which returns the value stored in the speed instance variable. Call this method getSpeed(). •A modifier method called accelerate() which adds 5 to the speed variable…arrow_forwardTrue or False: Object privileges allow you to add and drop usersarrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY





