You want Internet connection for your office. You go to a phonecompany to find o
ID: 3615751 • Letter: Y
Question
You want Internet connection for your office. You go to a phonecompany to find out the cost of providing Internet connection.
They say that if you have up to 10 users in your office, theywill charge you 1500 AED per month.
If the number of users is between 10 and 20, the cost rises to2500 AED per month. If the number of users is between 20 and 30,the cost rises to 3250 AED per month. Finally for over 30 users,the cost is 4000 AED per month.
You are required to pay 1200 AED as installation charges for thefirst year only. You will also be charged 12% tax. Write a programthat takes the number of users in an office and the year ofconnection (i.e., 1, 2, …) and calculates the total cost forthe whole year.
Explanation / Answer
please rate - thanks you question isn't clear, for example, is 20 users 1500 or2500 per month #include using namespace std; int main() {int users, year; double cost=0,month; coutusers; coutyear; if(year==1) cost+=1200; switch(users/10) {default: month=4000; break; case 1: month=1500; break; case 2: month=2500; break; case 3: month=3250; } cost+=(month*12); cost+=(cost*.12); coutRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.