Question: #8900

EGN 3211 – Fall ASSIGNMENT Complete Solution

EGN 3211 – Fall 2015 ASSIGNMENT


You have been asked to write a program for “AMCD Hosting Inc” which prints the
monthly bill for their customers. The company provides internet hosting and marketing
services. The company allows the customer to build their own bundles by selecting the
package for each service available. If the customer subscribes to more than one service, he
is eligible for a 5% discount on their monthly bill. The packages available are:


Service 1 - Web Hosting
[1] -Silver: $29.99/month
• Unlimited Bandwidth
• 1 Website Hosting
• 1 GB Hard Drive Space


[2] - Gold: $39.99/month
• Unlimited Bandwidth
• 5 Website Hosting
• 10 GB Hard Drive Space


[3] - Platinum: $49.99/month
• Unlimited Bandwidth
• 10 Website Hosting
• 50 GB Hard Drive Space
Service 2 - Email Marketing


[1] - Economy: $19.99/month
• Up to 1,000 subscribers
• Unlimited emails
[2] - Deluxe: $29.99/month
• Up to 5,000 subscribers
• Unlimited emails
• Over 160 ready-made design
[3] - Premium:$39.99/month
• Up to 10,000 subscribers
• Unlimited emails
• Over 160 ready-made design
Service 3 - Internet Marketing
[1] - Basic: $59.99/month
• Link Building (Organic SEO)
• Video Marketing
[2] - Supreme:$99.99/month
• Link Building (Organic SEO)
• Video Marketing
• Facebook Marketing
• Twitter Marketing
Web Hosting Optional Services (IP Type)
The customer use shared or dedicated IP with their hosting. The price is as follows:
[1] - Shared IP - $2.99/moth
[2] - Dedicated IP $6.99/month
Gathering the information from the customer
Prompt the customer to select the package for each of the available services:
 Web Hosting
 Email Marketing
 Internet Marketing
Valid packages are only those available for the selected service:
 Packages 1, 2 or 3 for Web Hosting
 Packages 1, 2 or 3 for Email Marketing
 Packages 1 or 2 for Internet Marketing
 Option 1 or 2 for Optional Web hosting (IP Type)
3
If customer selects Web hosting services, they MUST also choose between shared or
dedicated IP. IP Type is either
 Shared
 Dedicated
Calculating the Amount Due
Once all the information is collected, calculate the amount of the monthly bill as follows:
 Email Marketing cost is the cost of the selected package
 Internet Marketing cost is a cost of the selected package
 Web Hosting cost is a cost of the selected package + IP Type
Total cost is calculated by adding the cost of all selected services.
Bundle discount is 5% off the total cost. It only applies if more than one service is
selected.
Taxes are calculated by adding 8% to the total cost (after deducting bundle discount if
applies)
Amount due is calculated by adding Taxes to the total cost. Displaying the bill Please see the sample runs below for the format of the bill. Sample run 01 - Select Service 1 and 2:
Welcome to AMCD Hosting Inc. Would you like to subscribe to Web Hosting service? (Y or N): Y Choose package 1, 2 or 3: 1 Choose IP type: Shared (1) or Dedicated (2): 1
Would you like to subscribe to Email Marketing Service? (Y or N): Y Choose package 1, 2 or 3: 1
Would you like to subscribe to Internet Marketing? (Y or N): N

Output:

----------------------------------------------------------------------------
AMCD HOSTING INC Bill Details
----------------------------------------------------------------------------
Service Package Cost
Web Hosting 1 $29.99 NOTE: $ symbol and decimal points
IP Shared 1 $2.99 should line up in column
Email Marketing 1 $ 19.99
Subtotal: $51.97
Bundle Discount: 5% $ 2.60
Total Before Tax $49.37
Tax 8% $3.95
Amount Due: $53.32
---------------------------------------------------------------------------
Sample run 02 - Select Service 1, 2 and 3:
Welcome to AMCD Hosting Inc.
Would you like to subscribe to Web Hosting service? (Y or N): Y
Choose package 1, 2 or 3: 3
Choose IP type: Shared (1) or Dedicated (2): 2
Would you like to subscribe to Email Marketing Service? (Y or N): Y
Choose package 1, 2 or 3: 2
Would you like to subscribe to Internet Marketing? (Y or N): Y
Choose package 1 or 2: 1
Output:
----------------------------------------------------------------------------
AMCD HOSTING INC Bill Details
----------------------------------------------------------------------------
Service Package Cost
Web Hosting 3 $49.99
IP Dedicated 2 $6.99
Email Marketing 2 $ 29.99
Internet Marketing 1 $ 59.99
Subtotal: $146.99
Bundle Discount: 5% $ 7.35
Total Before Tax $139.64
Tax 8% $11.17
Amount Due: $150.81
---------------------------------------------------------------------------
5
Sample run 03 - Select WebHosting (Service 1) only
Welcome to AMCD Hosting Inc.
Would you like to subscribe to Web Hosting service? (Y or N): Y
Choose package 1, 2 or 3: 3
Choose IP type: Shared (1) or Dedicated (2): 2
Would you like to subscribe to Email Marketing Service? (Y or N): N
Would you like to subscribe to Internet Marketing? (Y or N): N
Output:
----------------------------------------------------------------------------
AMCD HOSTING INC Bill Details
----------------------------------------------------------------------------
Service Package Cost
Web Hosting 2 $49.99
IP Shared 1 $6.99
Subtotal: $56.98
Bundle Discount: 5% $ 0.0
Total Before Tax $56.98
Tax 8% $4.56
Amount Due: $61.54
---------------------------------------------------------------------------
Submission Instructions
You must check with the professor of your section for the due date and submission
details for this assignment. Save your code to a file named “monthlybill.c” and create an
output file name “monthlybill.exe”. Also, you must provide three snapshots of the cmd
screen for three different scenarios of service selection.
Your program MUST include the following comment:
/* Student Assignment Submission Form
I declare that the attached assignment is wholly my own work in accordance with UCF
Academic Policy. No part of this assignment has been copied manually or electronically
from any other source (including web sites) or distributed to other students.
My name is : LastName FirstName */

Solution: #8928

EGN 3211 – Fall Assignment Complete Solution

#include int main() { char option; int hostingPackageType = 0; ...
Tutormaster
Rating: A+ Purchased: 11 x Posted By: Vikas
Comments
Posted by: Vikas

Online Users