P3 Design an event-driven application to meet defined requirements
Program specification
Input:
Name
Telephone number
Date
Basic model
Engine type
Engine size
Body colour
Interior trim
Extras
Output:
Name
Telephone number
Date
Basic model
Engine type
Engine size
Body colour
Interior trim
Extras
VAT
Total price before VAT
Grand Total
Monthly finance for 12 months
Monthly finance for 24 months
Monthly price for 12 months
Monthly price for 24 months
Processes:
pricebeforevat = Model + petrol + diesel + interior + colour + extra
VAT = pricebeforevat * 0.2
GrandTotal = VAT + pricebeforevat
Finance12 = GrandTotal * 1.05
Finance24 = GrandTotal * 1.1
Monthly12 = Finance
Monthly24 = Finance
, Project statement
For this project, I was told to design a program for a car dealership that allows customers to
specify their vehicle and receive a quote. It should be form-based, allowing the user to input
their options using a mouse and keyboard. The program should also save the data that the
user enters, such as the user's name and phone number, and the date of when the form is
being filled in. It will consist of three forms: form 1 for options, form 2 for the summary and
price, and form 3 for the about us page. The VAT and monthly finance will be calculated
using formulas in the program and be displayed on from 2.
Design for form 1
File
Menu strip
Title
Label
Name Telephone number Date
Text box Text box Text box
Engine size
Basic car choice Fuel type Petrol Diesel
List box Radio buttons List box List box
Body colour Colour Interior trim Extras
List box panel box List box List box
Button
Show Quote
Program specification
Input:
Name
Telephone number
Date
Basic model
Engine type
Engine size
Body colour
Interior trim
Extras
Output:
Name
Telephone number
Date
Basic model
Engine type
Engine size
Body colour
Interior trim
Extras
VAT
Total price before VAT
Grand Total
Monthly finance for 12 months
Monthly finance for 24 months
Monthly price for 12 months
Monthly price for 24 months
Processes:
pricebeforevat = Model + petrol + diesel + interior + colour + extra
VAT = pricebeforevat * 0.2
GrandTotal = VAT + pricebeforevat
Finance12 = GrandTotal * 1.05
Finance24 = GrandTotal * 1.1
Monthly12 = Finance
Monthly24 = Finance
, Project statement
For this project, I was told to design a program for a car dealership that allows customers to
specify their vehicle and receive a quote. It should be form-based, allowing the user to input
their options using a mouse and keyboard. The program should also save the data that the
user enters, such as the user's name and phone number, and the date of when the form is
being filled in. It will consist of three forms: form 1 for options, form 2 for the summary and
price, and form 3 for the about us page. The VAT and monthly finance will be calculated
using formulas in the program and be displayed on from 2.
Design for form 1
File
Menu strip
Title
Label
Name Telephone number Date
Text box Text box Text box
Engine size
Basic car choice Fuel type Petrol Diesel
List box Radio buttons List box List box
Body colour Colour Interior trim Extras
List box panel box List box List box
Button
Show Quote