✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Q 1 (25%). Write a program titled "User Greeting”.
- The program should prompt the user to enter their name.
- After the user inputs their name, the program should display the message: "Hello, [Name]!".
Q 2 (35%). Write a program titled "Simple Calculator."
- The program should prompt the user to input two numbers.
- Then, the program should offer a choice of operations: addition, subtraction, multiplication, or division.
- After the user selects an operation, the program should display the result of the calculation.
Q 3 (40%). Write a program titled "Random Number Generator.
- The program should prompt the user to input the minimum and maximum values of a range.
- Afterward, the program should generate and display a random number within the specified range.
- Ensure the program includes validation to check that the minimum value is not greater than the maximum value.
Requirements to Qs:
- The code must be clean, well-structured, and include comments explaining key sections.
- The program should run without errors and meet the specified requirements.
Each Q will be checked for plagiarism and AI usage. If any borrowed code or AI-generated content is detected, the student will receive 0.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!