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

  Part-1use one business rule delivery fees consist of a

part-1use one business rule delivery fees consist of a fixed amount of 1000 per truck plus carbon emission charge and

  Programming uml

programming uml

  Create a gpa calculator that ask user to input list of class

Create a GPA calculator that Ask the user to input a list of classes and the number of tests per class. Once the user has entered this initial information, allow the list to be saved when the user exits the program.

  List out the data types available in c sharp

List out the data types available in C# and their corresponding class/struct in .NET class library.

  Crm system

Development of a simple sales and invoice component where a customer fills out a form on a web page to request a truck delivery and then receives an online invoice in PDF format.

  Create one method that the server takes a piece of code

Create one method that the server takes a piece of code or data from the user client-side, manipulates it server side after post back, and then provides the manipulated data back to the user.

  Use linq to sort the list in ascending order

Write a console app that inserts 30 random letters into a List . Perform the following queries on the List and display your results: Use LINQ to sort the List in ascending order

  How can you enhance linq to sql application performance

Describe how can you enhance LINQ to SQL application performance? Provide examples. Ajax calls can be in form of a GET or POST. Which of these two options are you more likely to use over the other? Consider performance issues in your decision.

  Creates three arrays of type double

Write a C# program that creates three arrays of type double. Using a loop, prompt the user to input 10 initial values for each of two arrays (for a total of 20 values).

  Create an asp.net web application

Create an ASP.NET web application main form containing a list of hyperlinks and images. You will also add a form with five text boxes and a Submit button.

  Create a gas price windows form application

Create a "Gas Price" Windows Form Application, here is the sample input/output: Allow user to enter gas prices for 12 month from the textbox and click the Enter button

  Write an app to simulate the rolling

With C#, write an app to simulate the rolling of two dice. The app should use an object of class random once to roll the first die and again to roll the second die. The sum of the two values should then be calculated. Each die can show an integer val..

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