Task 1 (5 marks) Define a class with at least 3 fields, 3 properties and 3 methods. Override the To Stirng function that returns a summary of the properties of your object.
Task 2 (5 marks) Initialize an Array of 10 numbers Initialize an Array of 5 strings Initialize an Array of 5 objects that you created in Task 1 Task 3 (5 marks) Using 3 different Loops types, output each element of the array of 10 numbers Repeat the same process for the array of 5 strings and array of 5 objects *9 loops total* Task 4 (5 marks) Create a struct called Mouse Give the struct three (3) appropriate properties and a one (1) constructor Call the struct using the constructor and not calling the constructor Output each of the properties of both instantiated structs
Create a windows application that contains two textboxes and three buttons. The textboxes should be used to allow the user to input two positive numeric values. The buttons should be labeled Add, Multiply and Reset. Create event handler methods that retrieve the values, perform the calculations and display the result of the calculations on a label. The result label should initially be set to invisible with a font color of yellow. If invalid data is entered, change the font color to red on the result label and display the message saying “value must be numeri and >0”. When the final answer is displayed, the font color should be yellow. Additional labels will be needed from the textboxes captions. Do not allow non numeric characters to be entered. Invoke the TryParse() method to retrieve the values. All controls involved in program statements should be named. Right justify values in the textbox.
You are a Windows developer for a data analysis company. For one of your applications you need to create a keyword searching form that asks for a filename and a keyword from the user (as shown in below figure). The form should search for the keyword in the file and display the number of lines that contain the keyword in the results group box. Your form assumes that the entered keyword is a single word. If it is not a single word, you need to create and throw an exception for that case.
This donation management system will help NGOs to find donors easily. This system has three modules namely, Administration, NGO and Donor. Admin can login using credentials and manage the request raised by NGO by approving or rejecting it. Approval will be done after verifying the NGO documents uploaded by NGO. Admin will get the report of NGOs who get donations. NGOs can register and raise request by uploading NGO documents. Once admin gets the approval, they can login using credentials. NGO can raise request in need to the various registered donor. They can view the previous events list and donation report. Donor can simply register and login using credentials. They will get the notification of the request raised by NGOs for donation. They need to fill the details regarding donation on approval of request. Donor will get the date of donation. They can also view Donation history. NB Use Visual studio- C# (windows forms) to develop the donation management system and make use of CRUD, SQL Server
1) Create a class Worker with attributes name, age and salary. This class contain default constructor, GetData and Display.
a) A function SalariedEmployeeComission calculates the commission of the worker and display total salary constantly.
b) A function HourlyEmployeeComission calculates the commission of the worker with of 5% and display total salary constantly
Note: Declare variables as per need, Commission of an employee of Salaried class is 10% and for class Hourly employee is 5%
Create an application for a Pizza delivery company. The application must provide a place for the user to enter their contact information (address, cell, telephone, e-mail) and some of the contact information should be displayed when the order is placed. Your application should have a picture logo and company name. Provide selections such as small, medium and large for pizza (Vegetarian, Hawaiian, Something Meaty….etc). BE CREATIVE You can also sell wings, mini-loaves, chicken strips or any other restaurant food of your choice. Also include beverages. You must display the price for the order and reset the order form. Experiment, explore, change properties and the review the .Designer.cs.file