Create windows application and write appropriate code

Assignment Help DOT NET Programming
Reference no: EM131301273

Problem Scenario

Specification and Task

Using Microsoft Visual Studio and C#.net, Create windows application and write appropriate code for both activities 1 and 2. Activity1 is about array and text file and Activity2 is aggregation, inheritance and polymorphism. Use editor provided debugging tools to resolve syntax and logic Error. After completing each step, test the program and confirm code meet the program requirements. Write a short note for test performed and achieved result. Submit that document with the assessment. For the coding, consider the layout, C# naming & commenting conventions and write internal comments as well.

Activity 1

1) Design a form in a windows application. The Forms control specifications are as follows

Control Name Property Value
Form Form1 Text Employee Information


StartupPosition CenterScreen
Label Labe11 name NameLabel


Text Name
ComboBox ComboBox 1 name NameComboBox
Button Button1 name ExitButton


Text Exit
Label Label2 name LabelSalary


Text Salary
Label Label3 name LabelHighestSalary


Text Highest Salary
Button Button2 name SummaryButton


Text Summary 

2) Write a function to read following employee name from employee.txt file and store into array. Employee's Personal information3) Display the employee name in a combo box from the array.
4) Create an array to store employee's salary from above Employee's Personal Information.
5) Display the salary of selected employee from combo box.
6) Create a function/method to find highest salary. Display the employee name and amount.
7) Store the employee's name and salary in a text file "Salary.text" who earns more than $6000 and less than $10000

Activity 2
Create a windows application and follow each steps sequentially to implements following shapes hierarchy and draw a class diagram for them.

Employee Name Title Salary
Kavin Manager 4500
John Clerk 5400
Bob Analyst 5750
Magi Programmer 6140
David Accountant 6355
Klren DBA 6620
Roulf Accountant 7130
Alan Manager 8000
Paulo Analyst 8090
Maget Analyst 9000

Step1 Classes

Shapes: Shapes has "height" and "width" instance variables of type double. 2DShapes: Create a derived class of the shapes class for 2DShapes.

Triangle: Triangle is a derived class of 2DShapes. It has an instance for a string field "style'. Rectangle: Rectangle is a derived class of

2DShapes. It has an instance for a string field "style'.

3DShapes: 3DShapes is a derived class of the shape. 3DShapes has a double type instance variable radius. Sphere: Sphere is a derived class of 3DShapes. Create an instance for a string field "style".

Cube: Create a derived class of 3DShapes for Cube. Cube has a string type field style.

Step2. Constructor

Shapes: Two constructors- one is null and another one with two double type parameter 'height' and

2DShapes: Two constructors- one is null and another one with two double type parameters height and width. For both call the base constructor.

3DShapes: Two constructors- one is null and another one with three double type parameter 'height', 'width' and 'radius'. For both call the base constructor.

Triangle: Two constructors- One is null and another one with four parameters string 'style' , double 'height', 'width' and 'radius'. Call the base constructor. Style= style + ": A triangle is one of the basic shapes of Geometry: a polygon with three corners\ n" + "or vertices and three sides or edges which are line segments.";

Rectangle: Two constructors- One is null and another one with four parameter string 'style' , Double 'height', 'width'. Call the base constructor. Style= style + ": A Ractangle (geometry) is a polygon with two equal length, hight and angles.";

Cube: Two constructors- One is null and another one with four parameter (string 'style', double 'height', 'width' and 'radius'. Call the base constructor. Style= style + ": a cube is a three-dimensional solid object bounded by six square \ n" + "faces, facets or sides, with three meeting at each vertex.";

Sphere: Two constructors- One is null and another one with four parameter string 'style' , Double 'height', 'width' and 'radius'. Call the base constructor. Style= style + ": A Sphare is a perfectly round geometrical object in three dimensional space.";

Step3. Methods

Shapes: Public virtual method Area() and return the area. Note- (area=height*width).

2DShapes: Public virtual method Volume() and return the volume. Note-(volume=height*width). 3DShapes: Public virtual method Volume() and return the volume. Note-(volume=height-width*radius). Triangle: Three public method
i) Area() will return area,
ii) Volume() will return volume.
iii) Show description() will return style.
Note- Area () and Volume () will override their base method. Hint- (volume=1/29 Width * height )), (area=Widthsheight/2).
Rectangle: Public method Show description() will return style. Cube: Three public method

ii) Volume() will return volume.
Pi) Show description() will return style.

Note- Area () and Volume () will override their base method.

Hint- ( volume = 4/3*( Math.PI*Math.Pow(Radious,3))), (Area=4 * Math.PI * Math.Pow(Radious,2)).

Sphere: Three public method

i) Area() will return area.

ii) Volume() will return volume.

iii) Show description() will return style.

Note- Area () and Volume () will override their base method.

Hint- (volume = 4/3 * (Math.PI*Math.Pow(Radious,3))), (area=4 * Math.PI * Math.Pow(Radious,2)).

Step4. Graphical User Interface (GUI)

Read height, Width and Length/Radius for Triangle, Rectangle, Cube, Sphere and show their area, volume and description.

Testing:

Create and conduct simple tests to ensure both applications meet given specifications. Document the tests performed and result.

Reference no: EM131301273

Questions Cloud

Estimate the concentration of ammonia vapor : Estimate the concentration of ammonia vapor 500 m from the accident. Is the concentration dangerous to the workers in the plant? The wind speed during the period was nominal (3 m/s).
What actions will you need to take to align the risk level : Does the risk level of your portfolio correspond to your personal risk tolerance? If it does not correspond, what actions will you need to take to align the risk level of your portfolio and your own personal risk tolerance?
Design and simulate buck-boost converter : Design and simulate a buck-boost converter using ideal switches. Switching frequency is of your choice. Ratings are of your choice. Show how your converter operates in CCM, CCM/DCM boundary, and in DCM. Explain when and why does your converter ente..
Relative value of the planning phase : Consider the relative value of the planning phase, specifically the objectives and targets, in relation to management system improvement efforts. How can the development and implementation of objectives provide an organization with a clear path to..
Create windows application and write appropriate code : Using Microsoft Visual Studio and C#.net, Create windows application and write appropriate code for both activities 1 and 2. Activity1 is about array and text file and Activity2 is aggregation, inheritance and polymorphism.
Difference between competing-accommodating : What is the difference between Competing, Accommodating, and Compromising? How would you use each Competing, Accommodating, and Compromising? Give specific personal or professional examples.
Describe the assessment you used to analyze your skills : Describe the assessment you used to analyze your skills. Discuss your communication gaps. Describe any additional training you need in specific areas of communication.
Reflect on the value of clear learning objectives : Reflect on the value of clear learning objectives from the perspective of both a learner and a trainer. Describe a scenario in which you encountered learning objectives that were unclear or not aligned with the broader outcomes or goals.
Demonstrate your strategic skills to the ceo : The objective of this assignment is to allow you to demonstrate your knowledge of the steps required to recruit and staff for an important segment of the workplace and to demonstrate your strategic skills to the CEO.

Reviews

Write a Review

DOT NET Programming Questions & Answers

  Write down a visual studio c console application to

write a visual studio c console application to simulate the rolling of two dice. use an object of the random class for

  What characteristics of the ajax programming style

What characteristics of the Ajax programming style do you believe will make it attractive to be utilized in applications within your workplace?

  Create a timeentry windows form application

You will create a "TimeEntry" windows form application, user will input work hours for each day in a week (5 days) repeatedly, the program will record the user's time entries, calculate the payment and display on the form

  Program that computes the amount of money the computer club

Write a program that computes the amount of money the computer club will receive from proceeds of their granola bar sales project. Allow the user to enter the number of cases sold and the sale price per bar. Each case contains 12 bars; each case is p..

  Write a program that allows auser to enter a car price

Write a program that allows auser to enter a car price. The output is the salesperson's commission. Save the programas Commission.cs.

  Html coding

Write a two- to four-page paper describing how you would change or enhance your site if you "knew then what you know now". Be sure to include interaction with Spry Validation Text Field, Spry Collapsible Panel widget, and Adobe widgets in your new..

  A parking garage charges a 200 minimum fee to park for up

a parking garage charges a 2.00 minimum fee to park for up to three hours. the garage charges an additional 0.50 per

  Describe two types of loops that can be used to print

Describe two types of loops that can be used to print every third integer from 0 to 300 (i.e., 0, 3, 6, 9, etc.), each on its own line. Which would be a better choice and why? Write the code using that type of loop.

  Write asp dot net script to enter two integers

Write down the ASP.NET script to enter two integers, gets numbers from user and outputs to label which displays larger number followed by words "is larger".

  Different data types and their typical usage

In programming, you'll find that variables are fundamental building blocks in creating programs. Review the various data types used in C# and discuss and elaborate in detail as to the typical usage of those data types. Discuss a minimum of six dif..

  Create a data base backup using asp.net with c# language

Create a DATA BASE BACKUP USING ASP.NET WITH C# LANGUAGE: Users right to login with their registered ID and password in the application

  Create login id and password

System must ensure the password must be at least 9 characters but no more than 18 characters long. Password must contain some upper case and lower characters, some digits, and some special characters such as $, !, #, -, etc...

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