Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

COURSE CODE: CAP406

COURSE NAME: Modern Programming Tools & Techniques II


Homework No. 1
PART A
1. According to you what are the features of C# in contrast with C++ and java?
2. Write a Program to Find Largest of three No’s. Also make these no’s in increasing order
3. Elaborate the significance of of intermediate language(IL).
4. Write a program to input your name and display output on console window and
messagebox.?
5. write a program to change atleast 10 properties of form at runtime.?
PART B

1. Write a Program to Print Sale Bill of a Garment House, with following terms of discount
on each product :-

• if MRP is less than or equals to 500 and quantity sold is less than or equals to
2 Mtr, then discount = 3.5%
• if MRP is greater than 500 and less than or equals to 1000 and quantity sold is
more than 2 mtr and less than or equals to 10 Mtr, then discount = 6.5%
• if MRP is greater than 1000 and less than or equals to 5000 and quantity sold
is more than 10 mtr and less than 40 mtr., then discount = 10%
• otherwise discount is 14%.
2. Write a program to find paired numbers in the series from 1 to 1000 using for control
statement.

3. Write a Program to count total lines, words, characters, Uppercase alphabets, lowercase
alphabets, numbers , spaces and special symbols typed by user in a text box.
4. Write a Program that finds the location and number of occurrences of a particular number
in an array.
5. Write a program that implements dynamic arrays.

You might also like