Вы находитесь на странице: 1из 2

Problem #1: Write a console application which uses a List collection class to create a list of integers.

Add about 20 integers using random numbers. Then find the lowest and highest number in the list. Problem # 2: Write a loop which goes from 1 to 100. Then in the loop do the following checks a) print string fizz if the number is a multiple of 3 b) print string buzz if the number is a multiple of 5 c) print string fizzbuzz if the number is a multiple of 3 AND 5 Problem # 3: Write a console program in C# which prints first 100 numbers of Fibonacci series. Fibonacci series starts with 0, 1. The next number can be computed by adding the previous two numbers. For example the first 5 numbers in Fibonacci series are: 0, 1, 1, 2, 3, 5 Problem #4: Write a console application using the following code. This code is incomplete. You should fix it and also implement simple method which swaps two integers. public static void main () { int x= 10, y = 20; SwapInt(put the correct calling parameters here once this method is implementd); //here x should 20 and y should be 10 } Basically you need to define the method signature, implement the method and then call it correctly in the main program. Problem # 5: a) Write a web service which provides method(s) to convert from Celsius to Fahrenheit. The conversion formula is Fahrenheit to Celsius and b) Write a simple ASP.NET webpage in C# which uses the above web service. There should an editbox where one can type a number only. Second element should be a dropdown which specifies the following i) Convert from Celsius to Fahrenheit ii) Fahrenheit to Celsius and the

last form element is a submit button. When clicked on submit, the page should display the converted temperature.

Вам также может понравиться