Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using C# Logic: - If the applicant's age is 13 or below, they can't register. - If the applicant's age is 19 or below, they
Using C#
Logic: - If the applicant's age is 13 or below, they can't register. - If the applicant's age is 19 or below, they must pay $10.00. - If the applicant is aged 20 to 29 , they must pay $35.50. - If the applicant is aged 30 to 64 , they must pay $70.50. - If the applicant is aged 65 or older, they are free. Step 2: Start Month Adjustment Ask for the month the applicant wishes to start their subscription. Using the information outlined below determine what their "start month adjustment" will be. You must use a switch statement to get full marks. Logic: - For a start month of January or February add a discount of $10.00. - For a start month of March add a discount of 10% of the age fee. - For a start month of April or May they get charged an additional $20.00. - For all other start months, (i.e. June to December), no adjustment is made. Step 3: Client Referral Discount Ask If the applicant was referred by an existing client. Using the information outlined below determine their discount. Logic: - If the applicant was referred by a client, they receive a discount of $25.00 Step 4: Subtotal Using the fee information gathered thus far determine the monthly subscription subtotal. Logic: - Add the Age Fee and Start Month Adjustment, then subtract the Client Referral Discount. - If the calculation for the subtotal above is less than 0 then set the subtotal to 0 . Step 5: Taxes Using the information provided below determine the amount to be paid in taxes. Logic: - Determine the amount of HST to be paid on the subtotal, (13\%) - Determine the city services tax to be paid on the subtotal, (9%) Step 6: Final Fee Using all your calculated values determine what the final amount of the monthly subscription is including all taxes. Step 7: Output Output all gathered and calculated information. The final output should be structured as shown in the 2 sample outputs on the next page. Note that all monetary values are to be shown in proper currency format and that all output values are clearly described. Sample Output 1 Your age: 21 Your registration month: January Monthly subscription based on age: $35.50 Start month adjustment: $10.00 Client referral adjustment: $25.00 Subtotal: $0.50 HST $0.07 City Services Tax: $0.05 Final Monthly Subscription Total: $0.61 Sample Output 2 Your age: 34 Your registration month: May Monthly subscription based on age: $70.50 Start month adjustment: $20.00 Client referral adjustment: $0.00 Subtotal: $90.50 HST $11.77 City Services Tax: $8.15 Final Monthly Subscription Total: $110.41Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started