Structured Programming
MCT · Quiz · Spring 26
Paper 1 of 2Batch 39 · SAJID (MCT-252) (1)Switch
Batch 39
Paper 1 of 2
Read the questions as text
Read off the PDF by AI, so it may have mistakes. The PDF is the original.
Daffodil International University
Faculty of Science & Information Technology
Department of Multimedia and Creative Technology (MCT)
Quiz 2- Spring 2026
Course Code: 0613-121 Course Title: Structured programming
Course Teacher: Si
Level: 1 Term: 2 Batch: 39
Time: 35 min.
Marks: 15
Set: D
Answer ALL Questions
1. A man goes to a computer shop to buy some hardware components. He buys 2 SSDs, 2 RAM sticks, and 5 keyboards. The price of one SSD is 5000 BDT, one RAM is 3200 BDT, and one keyboard is 800 BDT. [5]
15% VAT is added only on the total price of SSDs.
The shop offers a discount on the total bill (for example, 10% discount on the total purchase amount). After applying the discount on the total bill,
Write a C program to calculate and display the total price of SSDs, RAMs, and keyboards, the total bill before discount, the discount amount on the total bill, the subtotal after discount, the VAT amount on SSDs, and the final payable amount.
2. A school is developing a simple typing practice software for students. When a student presses a key on the keyboard, the system needs to identify whether the entered character is a vowel or a consonant. This feature will help students improve their understanding of English alphabets while practicing typing. [5]
Write a C program that takes a character input from the user and checks whether the entered character is a vowel or a consonant using the if-else statement. The program should display an appropriate message based on the condition. If the entered character is not an alphabet, the program should display an error message.
3. A digital management system in a school stores monthly reports based on the month number entered by the user. The system accepts a number from 1 to 12, where each number represents a specific month of the year (1 for January, 2 for February, and so on). To make the system user-friendly, it must display the correct month name and the number of days in that month according to the entered month number. [5]
Write a C program that takes a month number (1-12) as input from the user and prints the corresponding month name along with the total number of days using the switch statement. If the user enters an invalid number, the program should display an appropriate message.