Question: PartI (40 points) Write a program that will calculate the cost of a web presence. There are three parts to the plan: domain name registration,
PartI (40 points) Write a program that will calculate the cost of a web presence. There are three parts to the plan: domain name registration, hosting, and security Domain name registration is a yearly cost based on the type of domain name: .com: 12.99 .org: 17.99 .net: 15.99 Web hosting is a monthly cost. There are three levels available, which provide different amounts of storage, email addresses, and bandwidth: 4.99 economy 5.99 deluxe 799 ultimate Security is a yearly cost. There are two types of security, premium DNS and SSL. The security options are: e no security premium DNS: 28.99 SSL: 62.99 premium DNS and SSL: 85.99 Input . name of company (on first line, read whole name with one statement) e full domain name (on second line) . flag for hosting plan (1 for economy, 2 for deluxe, 3 for ultimate) . flag for security plan (1 for none, 2 for DNS, 3 for SSL, 4 for DNS& SSL) Make sure you read the input data in the order given and that you use the flag values as given. Processing Use String methods to get the type of domain (com, .net, or.org) from the domain name, and determine the domain name registration charge. Output Format your output to look like the following: MCC Web Hosting of
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
