Visual Basic Programming Assignment: Chapter 9, 10 and its Solutions

Verified

Added on  2022/08/20

|9
|405
|13
Homework Assignment
AI Summary
This document presents a solution to a Visual Basic Programming assignment, focusing on problems from Chapters 9 and 10. The assignment addresses various programming scenarios, including calculating gross pay with conditional statements, applying discounts based on customer type, determining fees based on user categories, and calculating interest rates based on different criteria selected from a group box. The solution provides detailed explanations and code implementations for each problem, demonstrating how to handle user input, apply logical conditions, and perform calculations. The document includes test cases to ensure the accuracy of the calculations and covers scenarios where the user selects different options and enters various amounts. This assignment solution is designed to help students understand and apply programming concepts in Visual Basic, providing a valuable resource for their coursework.
Document Page
Visual Basics Programming
Name of the student
Name of the university
Author note
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Chapter 9
Question 3
The gross pay calculation is as follows.
If for some reason user gives an input greater than 40 then the following message will be shown
in the message box.
Document Page
Question 9
In Santini company the discount is only for the students. The following sample is given below.
For other customers the price is also given below.
Document Page
Chapter 10
Question 3
For different users there is special fee. They are listed below.
For the singles, fees is 40$.
For the family, fees is 50$.
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
For the Senior couples, fees is 35$.
For the single seniors, fees is 30$.
Document Page
For the children, fees is 5$.
Question 16
btnDisplay_Click Procedure:
btnDisplay_Click procedure first checks what is selected in the group box. There are four
selection choice in the group box. They are Excellent, Good, Average and Poor. After selecting
the group box value the procedure calculate the rate. If the user choose ‘Excellent’ option then
the rate of loan will be 5%. After that if the user choose ‘Good’ option then the rate of loan will
be 5.2%. If the user choose ‘Average’ option then the procedure will check if the amount of
money is greater than 10000, then the rate of loan will be 6%. Otherwise the rate of loan will be
5.5%. If the user choose ‘Low’ option then the procedure will check if the amount of money is
greater than 2500, then the rate of loan will be 8%. Otherwise the rate of loan will be 7.5%.
Testing details are given below.
The interest rate is shown for poor and the amount of money is less than 2500.
Document Page
The interest rate is shown for poor and the amount of money is greater than 2500.
The interest rate is shown for Average and the amount of money is less than 1000.
tabler-icon-diamond-filled.svg

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
The interest rate is shown for Average and the amount of money is greater than 10000.
The interest rate is shown for Good.
Document Page
The interest rate is shown for Good.
chevron_up_icon
1 out of 9
circle_padding
hide_on_mobile
zoom_out_icon
[object Object]