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

  Develop web services based application

Develop and test a Web services based application that meets the requirements applying SOA design principles.

  Design style elements in asp

Add drop down lists for modifying the different style elements for the label element that displays the time

  Create a shopping cart in asp

The users will use a browser to access the on-line store. The web server software for the production web server is Windows 2003 Server /IIS6.

  Inventory management system in c# application

Inventory management system in c# application

  Using .net resources to teach .net

This project will use the .NET framework to produce a set of materials to demonstrate the fundamental principles of .NET. Ideally it should demonstrate some of the principles of the framework e.g. interoperability.

  Prepare a marymount faculty site

Prepare a Marymount faculty site

  Blinky lights

Analysis proving that your code blinks the LEDs at the specified rates.

  Prepare a web application

Prepare a web application that will be used to keep track of patients registering in a hospital.

  Implementing the insurance management system

Implementing the Insurance Management System and implementation of Components as Web Services.

  Describe the characteristics of visual studio 2005

Describe the characteristics of Visual Studio 2005 Visual Studio.Net is a suite of products that includes 4 main languages. Name these languages and outline their use in industries

  What is a connectionstring

What is a ConnectionString. Give a suitable example to illustrate the various part of a ConnectionString

  Prepare a web application for internet service provider

Prepare a Web application and write the code also event planning document base. This web application allows the user to sign up for an Internet service provider for home connectivity.

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