Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ please You can use anp.sh or OnlineGDB to write and test your code for the following question. Once you are done, you can copy

C++ please image text in transcribed
You can use anp.sh or OnlineGDB to write and test your code for the following question. Once you are done, you can copy your code back to answer area, Write a program that calculates the due amount for a cellular telephone bill. The cell company offers the following two types of services: LOW: 50.2 per day minute for the first 100 minutes, plus $0.5 per each extra day minute. And all-night minutes are free HIGH: 50.1 for the first 200 day minutes, plus $0.2 per each extra day minute. The charge is free for the first 200 night minutes, plus 50.1 por each extra nightm The program should ask the user for the type of service (Input the word LOW or HIGH) that he uses and the amount of day minutes and night minutes he consumed print the service type (the word LOW or the word HIGH), total number of minutes, and the total amount due. Sample input/output: Enter the service type: regular You have entered an invalid service typel Sample input/output: Enter the service type: LOW Enter the number of day minutes and the number of night minutes: 51 200 The type of service is "LOW The total number of minutes is 251 The amount due is $10.2 Sample input/output: Enter the service type: LOW Enter the number of day minutes and the number of night minutes: 101 200 The type of service is "LOW" The total number of minutes is 301 The amount duo is $20.5 Camale Innut Inuin lick Save and submit to serve and submie. Click Save All Answers to save all answers

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions