You are on page 1of 3

Course: Introduction to Programming (BBA)

Write an algorithm/Draw a flowchart for the following problems and implement those using Visual Basic 2005: Numbers and Basic Arithmetic Operations 1. Calculate numbers. 2. Calculate the Average of three numbers. 3. Calculate the Percentage of one number to another number (for example, 35 is 70% of 50) 4. Calculate the Area of a rectangle/square/triangle/circle. 5. Calculate the Price of an item after 30% discount. 6. Calculate the Amount of Simple Interest from principal amount, annual rate and time. Conversion 7. Convert the length in km (kilometer) to meter/feet/centimeter and vice versa. 8. Convert Fahrenheit temperature to Celsius and vice versa. Decision 9. Determine whether a number is Positive/Negative/Zero number. 10. Determine whether a number is Odd/Even number. 11. Determine whether a number is Multiple of 3/5. 12. Determine whether a company has made Profit or Loss from Cost and Revenue of the company. 13. Determine the minimum/maximum of two/three numbers. 14. Determine whether a student has failed or passed based on the total percentage marks obtained by the student. 30% marks need to be the Addition/Subtraction/Multiplication/Division of two

Course: Introduction to Programming (BBA)


achieved by a student to pass. Marks of 5 subjects will be input and total marks of each subject will be 100. 15. Calculate the total salary (with bonus) for an employee of an organization. The bonus will be calculated by the following criteria: Salary >25000 20000-25000 <20000 20% Bonus 40% 30%

16. Calculate the discount gained on total purchase amount by a customer in a Super shop. The discount rate is determined by the following criteria: Total Purchase Amount >=5000 2500-4999 < 2500 5% Discount 15% 10%

17. Determine the grade of a student based on the total marks obtained in a subject. The grading criteria is given below: Total Marks >=90 70-89 60-69 50-59 < 50 B C D F Grade A

18. Calculate the total cost of CDs sold by a computer store. The computer store sells DVDs at 70 taka each for small orders or at 60 taka each for orders of 100 DVDs or more.

Course: Introduction to Programming (BBA)

You might also like