Question: Question 1 : You're developing a subscription management system. Write a function named calculateSubscriptionCost that calculates the total cost of a subscription plan based on
Question : You're developing a subscription management system. Write a function named
calculateSubscriptionCost that calculates the total cost of a subscription plan based on the
provided parameters.
The function should take in three arguments
basePrice number: The base price of the subscription plan.
user Type string: Represents the type of user cither "regular" or "premium".
months number: The number of months for which the subscription is being purchased.
For "regular" users, there's no discount.
For "premium" users, apply a discount on the base price. Means multiply by
Calculate the total cost of the subscription for the given number of months after applying the discount.
In HTML Page create a division with class named form container having title as heeding Subscription
cost system containing the three arguments discussed in the question
Some Designs are applied to this page as follow:
The formcontainer should have a maximum width of centered using margin auto, using
and bordered with a px solid color of #cec. It should also have a border radius of along with
of padding.
All heading must be aligned center with margin bottom px and blue color
All labels in the form must be displayed block with margin bottom
All text input and select Should be set to a width of They should have px padding, an px
bottom margin, a border radius of px and a border of px solid color Hece.
The input type button needs to have a background color of HCAF white font color, and padding
set to by It should have no border, a borderradius of a pointer cursor, and a width
of
Subscription Cost System
Base Price
User Type
Number of Months
No Discount the cost is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
