Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Create C# programs for singleton design pattern using following implementations


1- Thread-Safety Singleton using Double-Check Locking.

2- Thread-safe without a lock.

3- Using .NET 4's Lazy<T> type.


Using Visual Studio, create a Console App that:


a. Has a class to encapsulate the following data about a bird:


1.


. English name


i. Latin name


ii. Date last sighted


a. Allows the user to enter the information for a bird;


b. Stores the information in a Bird object; and


c. Displays the information to the user.



Write a program that allows the user to enter any number of names. Your prompt can inform the user to input their first name followed by a space and last name. Order the names in ascending order and display the results with the last name listed first, followed by a comma and then the first name. If a middle initial is entered, it should follow the first name. Your solution should also take into consideration that some users may only enter their last name (one name).


Write an application that displays revenue generated for exercise classes at the Tappan Gym. The gym offers two types of exercise classes, zumba and spinning, six days per week, four times per day. Zumba is offered at 1, 3, 5, and 7 p.m.; spinning is offered at 2, 4, 6, and 8 p.m. When attendees sign up, they agree to pay $4.00 per class for zumba and $5.00 for spinning. Produce a table displaying the number of attendees per time slot. Display a row and column of totals showing the total number of attendees by day and also time period. Also include a column showing the revenue generated each day and the overall revenue per type of exercise. Do a compile-time initialization of your data structures using data from the following table.


Write a program that reads in 10 midday temperatures for Port Elizabeth, for 10 consecutive days.


Only temperatures higher than 0 and less than 45 are valid (working with integer values for


temperatures). It must calculate and display the following:


• The warmest temperature


• The average temperature


• The number of days that the temperature was higher than 30


• The list of temperatures entered


Write a two class solution that includes data members for the name of the course, current enrollment, and maximum enrollment. Include an instance method that returns the number of students that can still enroll in the course. The To String( ) method should return the name of the course, current enrollment, and the number of open slots. Design your solution using parallel arrays. Declare an array of class objects in your implementation class.



Using C# and Visual Studio, design and implement a standalone command line application that fulfils the following requirements:


1. The user shall be able to enter the following values:


a. Gross monthly income (before deductions).


b. Estimated monthly tax deducted.


c. Estimated monthly expenditures in each of the following categories:


i. Groceries


ii. Water and lights


iii. Travel costs (including petrol)


iv. Cell phone and telephone


v. Other expenses


2. The user shall be able to choose between renting accommodation or buying a property.


3. If the user selects to rent, the user shall be able to enter the monthly rental amount.


4. If the user selects to buy a property, the user shall be required to enter the following values for a home loan:


a. Purchase price of property


b. Total deposit


c. Interest rate (percentage)


d. Number of months to repay (between 240 and 360)


5. The software shall calculate the monthly home loan repayment for buying a property based on the values that the user entered






Identify errors in the following program.After identification make correction and write correct code again



(1)



namespace FirstSessional1



{



interface MyInterface{



string name;



public void Function1();



void Function2() {Console.WriteLine("Function 2");}



}



Class Employee:MyInterface{



void Function1() { }





static void Main(string[] args)



{



MyInterface obj=MyInterface();



}



}



}




(2)



byte a=300,b=500,result;



try



{



r=a+b;



MessageBux.Display("A+B" +r);



}



catch(Exception err)



{



MessageBux.Display("Handle Exception");



}



catch(ArithmeticException ex)



{



MessageBux.Display("Handle Arithmetic Exception);



}

1.Write a code to close the curent form and show second form?



2.Write a code that raise an event after 10second,in event display your complete name using messageBox.



3.Supose you have a form that has one Button,when you click on Button,yoy should display a OpenDialogBox.When OpenDialogBox is open,if user click on Button,Show Message that you click on ok button.If user click cancel button,show messgae that yo click on cancel button.

Notify syntax eroor, if any do correct them.



(1)MsgBox.Display("Wel Come") ;



(2)txtPassword.txt="MyText" ;



(3)Project.Run(new Form1 ()) ;



(4)private void btn1Click(object sender, EventArgs e)



(5)In Click even of Button named btn_2



txtResult.Text==txtResult. Text+ "B";

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS