Professional Documents
Culture Documents
Course Code: Cap406 COURSE NAME: Modern Programming Tools & Techniques II Homework No. 1 Part A
Course Code: Cap406 COURSE NAME: Modern Programming Tools & Techniques II Homework No. 1 Part A
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.