An Internet Service Provider(ISP) has three different subscription
packages for its customers:

Package A: For $15 per month with 50 hours of access provided.
Additional hours are $2.00 per hour over 50 hours.
Assume usage is recorded in one-hour increments,


Package B: For $20 per month with 100 hours of access provided.
Additional hours are $1.50 per hour over 100 hours.


Package C: For $25 per month with 150 hours access is provided.
Additional hours are $1.00 per hour over 150 hours

Assume the Billing Cycle is 30 days.

The ISP has contracted us to write the application software for their
new Billing System.

We will do the project over the next two weeks:

WEEK 9 -- Write the Functions to do the tasks that we will be using
to develop the application in Week 10.
WEEK 10 -- Write an Interactive Console Application using the
Functions which you developed in Week 9.

===========================================================================
DESCRIPTION of PROBLEM SET for Week 9
===========================================================================

Write the Function Definitions for the following tasks needed by
the ISP Billing System.

getPackage
validPackage
getHours
validHours
calculatePkg_A
calculatePkg_B
calculatePkg_C
---------------------------------------------------------------------------
getPackage: get value (A, B, C) for selected package from the keyboard.

validPackage: ensure that the value entered is an (A,B,C).

getHours: get value (0 - 720) for hours of usage from the keyboard.

validHours: ensure that the value entered is between 0 and 720.

calculatePkg_A: calculates the monthly charges for internet usage
based on hours of usage when Package 'A' is selected.

Answers

Answer 1

Use the knowledge of computational language in C code to write a code that has three different subscription packages for its customers.

How to write code about sales?

To make it simpler the code is described as:

#include <iostream>

#include <string>

using namespace std;

int main() {

string package;

float time;

float price;

cout << "Choose package: ";

cin >> package;

// Package validation

if ((package == "A") || (package == "B") || (package == "C")) {

cout << "The number of hours: ";

cin >> time;

// Time validation

if (time <= 744) {

// Package A

if (package == "A") {

if (time > 50) {

price = 15 + (time - 50) * 2;

} else {

price = 15;

}

// Package B

} else if (package == "B") {

if (time > 100) {

price = 20 + (time - 100) * 1.5;

} else {

price = 20;

}

// Package C

} else if (package == "C") {

if (time > 150) {

price = 25 + (time - 150) * 1;

} else {

price = 25;

}

cout << "Price: $" << price;

}

See more about C code at brainly.com/question/19705654

An Internet Service Provider(ISP) Has Three Different Subscription Packages For Its Customers: Package

Related Questions

what is human computer interaction​

Answers

Explanation:

Human computer interaction is research in the design and the use of computer technology, which focuses on the interfaces between people and computers.

Answer:

It is the way humans interact with computers; interfaces, special effects, icons, and buttons, it does not end there. HCI can also be looked at as a study to see what [person] will do with the computer.

what are all the fallacies and their meanings

Answers

Answer:

i dont know you tell me

Explanation:

A hexadecimal input can have how many values

Answers

Answer: Unlike the decimal system representing numbers using 10 symbols, hexadecimal uses 16 distinct symbols, most often the symbols "0"–"9" to represent values 0 to 9, and "A" to "F" (or alternatively "a"–"f") to represent values from 10 to 15.

Explanation:

Complete the sentence. are filters between the internet and a computer network.

Answers

Answer:

Fire walls

Explanation:

Answer:

Firewalls

are filters between the internet and a computer network.

Explanation:

1. Why does a computer have different types of ports?

Answers

Answer:

Computer ports are classified into two types based on the protocols used. A protocol is a set of rules and standards to be followed during data transfer and communication. Usually, data is transmitted in a particular pattern.

Explanation:

for a ser of rules and standards to be followed during data transfer and communication

Draw a flowchart or write a pseudocode to represent the logic of a program that allows the user to enter two values. The program outputs the sum of and the difference between the two values

Answers

Answer:

Start input myNumber

Start input myOtherNumber

set myAnswer = myNumber + myOtherNumber output myAnswer stop

Explanation:

Pseudocode is a computer programming language that resembles plain English and is compiled or processed into the computer. It explains the solution to the problem. Sometimes used as a detailed step by step process in developing a program

explain the claim that an operating system is the master controller of the computer system and it's importance to the information processing cycle ​

Answers

An operating system is a master control program due to the fact that it controls the functions of the computer system in all and also in the running of application programs. All computers cannot work without an operating systems.

What is the master controller of a computer?

The operating system is the master controller of the computer system as it is one that helps the PC to send and receive data.

A lot of distributed control system must have a Master Controller. The Master is said to have a board Microcontroller that is dedicated to performing different  functions.

Learn more about An operating system from

https://brainly.com/question/1763761

Different between barcode reader an

Answers

Different between barcode reader an


Explanation: not enough info

Which of the following are advantages of automatic updates?

They protect against viruses.

They protect against hackers.

They provide free software for your computer.

They keep your computer running at peak performance.

Answers

Answer:

They keep your computer running at peak performance.

This is the correct answer.

Answer:

A, B, and D

Explanation:

did and got correct

That’s a good point because of blank limitations

Answers

Answer:

I would assume so. Next time, please include the statement. Thank you!

I hope this helps, and have a wonderful day.

1222222222222222222222222222222

Answers

Answer:

whats that bro

Explanation:

brainliest me bro

To prevent information from getting into the wrong hands, _____ measures are necessary. Select 2 options. extreme extreme spyware spyware threat threat physical security physical security digital security

Answers

Answer: physical security and digital security

Explanation:

Physical security and digital security are the two measures necessary to prevent information from getting into the wrong hands.Therefore, the correct options are C and D.

What is physical and digital security?

Physical security involves securing physical access to places where sensitive information is stored or processed, such as data centers, server rooms, or offices. This can include measures such as access control systems, surveillance cameras, and security guards.

Digital security involves securing digital access to sensitive information, such as passwords, encryption, firewalls, and antivirus software. These measures protect against unauthorized access, hacking, and other digital threats.

Extreme spyware and threat are not measures that would prevent information from getting into the wrong hands.Therefore, the correct options are C and D.

Learn more about physical and digital security, here:

https://brainly.com/question/22440462

#SPJ3

The question is incomplete, but most probably the complete question is,

To prevent information from getting into the wrong hands, _____ measures are necessary. Select 2 options. \

A. extreme spyware

B. threat

C. physical security

D. digital security

Analyze the given word pattern and choose the correct option.
If WORD is coded as 9753, then what is the code for DOOR?

Answers

Answer:

The code for DOOR would be 3775.

Explanation:

WORD - 9753

W - 9

O - 7

R - 5

D - 3

DOOR: 3775

If WORD is coded as 9753, then what is the code for DOOR would be = 3775.

What is word coding?

Word pattern coding is defined as the systematic representation of words using another word, figures or numbers. That is;

W = 9

O = 7

R = 5

D = 3

This means that for the word DOOR, the code would be;

D = 3

O = 7

O= 7

R= 5

Code for WORD= 3775

Learn more about word pattern coding here:

https://brainly.com/question/31283683

#SPJ2

A example of an
"ITERATIVE STATMENT"

Answers

Answer:

for(let i = 0: i <=5; i++) {

console.log(I)

}

Explanation:

An iterative statement repeats a body of code until the condition is not true. Here we declare an integer (i) and make it 0. Then the loop checks if the second part is true (i is less than or equal to 5), and if it is true, it executes the code inside the loop body, which logs i, and finally runs the last past, which increments i by one. When the second part becomes false, the loop exits.

What does the example of Friendster illustrate about social media platforms?

A.
People are loyal to social networking sites.

B.
Users will have little patience for technical issues.

C.
Professional networking sites are more popular than social networking.

D.
Most social media platforms don’t last more than a year.

Answers

Answer:

A

Explanation:

It's just what it's meant it doesn't need much explanation

People are loyal to social networking sites is example of Friendster illustrate about social media platforms.

What are social media platforms?

Websites and programs that emphasize collaboration, sharing of content, engagement, and community-based feedback are collectively referred to as social media.

Social media is used by people to connect and communicate with their friends, family, and other communities. Social media applications are used by businesses to track consumer complaints as well as market and promote their products.

Websites that cater to businesses selling to consumers have social features like comment sections for users. Businesses can track, evaluate, and analyze the attention their firm receives from social media, as well as brand perception and customer insight, using a variety of technologies.

Therefore, People are loyal to social networking sites is example of Friendster illustrate about social media platforms.

To learn more about Social media platforms, refer to the link:

https://brainly.com/question/29459870

#SPJ2

touching touching color color is touelung ask What's your name? and wait NOUS MOUW mouse down? key pacmpressed distance to reset timer tamer gation of Sprite loudnese Dend aldur sensor value sensor button pressed Q. What is the function of the light blue blocks?

it is an Options Question. And the Options are: Motion. Operation. Sensing​

Answers

Answer:

Sensing.

These are all sensing blocks in a coding language called Snap! Build your own blocks. The same goes for Scratch.

The when touching brick calls a function if a sprite is touching a certain thing.

The mouse down calls a function when the mouse is down.

The reset timer declares a reset for the timer box.

Lastly, the when key pressed? declares that when a certain key is pressed, a function is called.

Answer:

sensing because the motion is green and operating is red.

Explanation:

Do you think social robots would need to develop emotions when interacting with humans? Are there any risks if robots start feeling “emotions”? Should scientists really build such robots?

Answers

Answer:

Yes

There are big risks for robots feeling emotions. This is good and bad. Robots can feel happy, excited, and emotional, which would be good emotions, drawing them closer to humanity. The bad thing is, they can feel anger and regret as emotions. These emotions would not be good if you did not want robots to riot or be offensive. Scientists could build these robots, and just find a way to exclude these dangerous emotions. That way, we could have better robot helpers that are like family.

-learning computers with potato

.Write a Basic program to display first 10 natural numbers
(using IF… THEN ..ELSE (or) FOR..LOOP)​

Answers

Explanation:

CLS

x=1

For I = 1 to 10

Print x;

x = x+1

Next I

End

Answer:

Using for loop:

int i=0;

for(i=1;i<=10;i++)

{

printf(“%d”,i);

}

Using while loop:

int i=1;

while(i<=10)

{

printf(“%d”,i);

i++;

}

Using do while loop:

int i=1;

do

{

printf(“%d”,i);

i++;

}while(i<=10);

2. While relaxing at home, you access your school's online library to complete your homework. This is a good example of
A. teens being addicted to their phones and the Internet.
B. a lack of proper infrastructure.
C. the Internet making research and learning easy.
D. the Internet making everyday tasks easier.

Answers

most likely going to be c

Accessing the school's online library from home showcases how the Internet simplifies research and learning.

Hence, The correct option is C.

The objective of this question is to assess your understanding of the positive impact the Internet has on research and learning.

It aims to evaluate your ability to identify and analyze the benefits of accessing online libraries from home.

Accessing your school's online library from the comfort of your home is a great example of how the Internet has made research and learning more convenient and accessible.

Instead of having to physically go to the library, you can now easily access a vast amount of resources and complete your homework from the comfort of your own home.

It's a wonderful way to take advantage of the benefits that the Internet offers for education.

Hence,

Option C is correct.

To learn more about a library visit:

https://brainly.com/question/31622186

#SPJ3

What is the best action to take when filling a police report regarding identity theft ?

Answers

Question

•What is the best action to take when filling a police report regarding identity theft ?

Answer:

•Obtain a copy of your FTC Identity Theft Report. This will help you set up a recovery plan.

•Provide a photo ID. You'll need to prove your identity by providing identification, such as a driver's license or passport.

•Provide your address.

•Provide proof of identity theft.

Explanation:

#Let's Study

#I Hope It's Help

#Keep On Learning

#Carry On Learning

Determine the value of a and b at the end of the following code segment:

int a = 5;
int b = 10;
a++;
b*=a;
a = b + b;

The value stored for a is _____ and the value stored for b is _____

Choices

120 and 60
60 and 30
5 and 10
30 and 60

Answers

Answer:

30 and 60

Explanation:

Find the output for the following program​

Answers

Answer:

It is a mathematical function program that displays many results to a math problem. R is the result of the problem, and when X and Y are done multiplying, they then print the result of this problem. That is why it says...

Print(f"The result is {R}")

Do not mind the letter f! That is just an abbreviation for an f string, a commonly used function in Python used to make string concatenation easier.

I hope this answers your question, apologies for late notice, and have a great day!

Answer:

(R)

Explanation:

cleann approved

Which of the following is an example of a project assumption? Current service levels to customers will be maintained throughout the project. All new technology components should be compatible with existing platforms. The project is designed to decrease costs by 45 percent in the first year after installation. The implementation plan must not disrupt the work of fellow employees.

Answers

Answer:

Current service levels to customers will be maintained throughout the project

Explanation:

The project assumption in the given options is: "Current service levels to customers will be maintained throughout the project."

A project assumption is a statement or belief about the project that is considered to be true, without any concrete evidence or proof at the time. It is an assumption made at the beginning of the project, based on available information and expectations.

In the given options, the assumption "Current service levels to customers will be maintained throughout the project" implies that the project team assumes that the quality and level of service provided to customers will remain consistent and unaffected during the project's execution.

Thus, this assumption suggests that the project team anticipates that any changes or activities related to the project will not have a negative impact on customer service.

For more details regarding project assumptions, visit:

https://brainly.com/question/31716624

#SPJ6

Determine the value of a and b at the end of the following code segment:

int a = 5;
int b = 10;
a++;
b*=a;
a = b + b;

The value stored for a is _____ and the value stored for b is _____

Answers

Answer:

15 and b is 20

Explanation:

Answer:

a = 120 and b = 60

Explanation:

a++ means a = a+1

b*=a is the same as b= a*b

After plugging in the variables,

Here are the results in order:

a = 6;

b = 60;

a = 120;

We only keep the nearest declared value of the variable, so "a" would equal 120 and "b" would equal 60.  

A bitmap image is provided in two different resolutions. Image 1 has a resolution of 1500 x 1225. Image 2 has a resolution of 500 x
350. Which of the following statements is true when the sizes of both the files are increased by 25 percent?
a.
a
Select one:
Image 1 is less sharp and has a smaller file size than image 2.
O b. Image 2 is less sharp and has a larger file size than image 1.
O c. Image 1 is sharper and has a larger file size than image 2.
O d. Image 2 is sharper and has a larger file size than image 1.
Clear my choice

Answers

The true statement regarding the two (2) bitmap images is: C. Image 1 is sharper and has a larger file size than image 2.

What is a bitmap image?

A bitmap image or bitmap image file (BIF) is also referred to as a raster graphic and it is generally made up of bits or dots that are called pixels.

Additionally, it is dependent on the resolution (size) of an image file and as such it becomes blurry when enlarged.

In this scenario, image 1 would become sharper and larger in size than image 2 when the original bitmap image files are increased by 25 percent.

Read more on bitmap image here: brainly.com/question/25299426

write down same applacations of AI in agrilcaltural health education and bussness​

Answers

Answer:

Crop and soil monitoring.

Insect and plant disease detection.

Livestock health monitoring.

Intelligent spraying.

Automatic weeding.

Aerial survey and imaging.

Produce grading and sorting

list four ways to edit cell contents?

Answers

Answer:

text, formatting, formulas, and functions

Explanation:

What type of program would you use to create a personal budget?

Answers

Answer:

using Excel is the easiest way to create and use a budget, based on the formulas you can create to have the budget do the work for you, instead of vice versaExplanation:

Jae is a network consultant hired by a small business client. He has been asked to recommend a firewall solution. Given the relatively small size of the infrastructure, he suggests a firewall that provides integrated intrusion detection system/intrusion prevention system (IDS/IPS) functionality because a single device offering multiple functions is cost- and space-effective. What is the solution

Answers

The  solution to the issue above is to use Virtual firewall.

What is intrusion detection prevention systems?

The Intrusion detection systems (IDS) and intrusion prevention systems (IPS) is known to be a kind of system that often look into the network of a person.

It is often set up to identify the different incidents and logging information about them, hindering incidents, and reporting any issues to security administrators.

See options below

a. Virtual firewall

b. Next-generation firewall (NGFW)

c. Appliance firewall

d. Commercial software firewall

Learn more about intrusion prevention system from

https://brainly.com/question/14284690

Briefly discuss what is the basic architecture of a computer system?

Answers

Answer:

From strictly a hardware aspect;

Explanation:

The basic architecture of a computer is the case (otherwise known as tower), the motherboard, and power supply unit. The case is used to house all of the necessary parts for the computer function properly. The motherboard will serve as the bridge between all other connections, and the power supply unit will deliver capable power to the rest of the system.

Other Questions
HELPPPP MEEE PLEASE QUICK 15 points A store has socks with different heights, patterns, and colors. The socks can be tall or short,have dots or he plain,and can be black,gray,or white. What is the probability that a random customer buys plain gray socks? Radioactive iodine, lodine 131, is used in Thyroid cancer therapies. Its half life is 8days. If a patients is given a total dose of 1 gram of lodine 131, how much will beleft in the patients blood stream after 32 days? *include units*PLSS HELP!! 2/5 of a number is what percentage of that number Select the correct answer. help me worth 40 points thank u good evening! Can someone please answer this, ill give you brainliest and your earning 50 points. Would be very appreciated. Is this statement true or false? Fulton got popular credit for ""inventing the steamboat. "" true false. We have very ___ bread left, so we need to buy some. How do japans actions before and during world war 2 compare with germanys actions over the same period Jamal takes a rectangular piece of fabric and cuts from one corner to the opposite corner. If the piece of fabric is 8.8 inches long and 3.9 inches wide, how long is the diagonal cut that Jamal made? If necessary, round to the nearest tenth. help please . number 2 . help meeeeee help meeeee please negative impact associated with the impact of human activities on rivers Roosevelts "Court-packing" plan: a. was considered by many to be one of his greatest political moves. b. proposed moving the Supreme Court to New York City. c. was criticized by many. d. achieved nothing. e. was approved by Congress. Help me with this question The color shown here, a pure green, is most likely to have which RGB value?A. 255, 0, 0B. 0,0,0O C. 0, 0, 255O D. 0,255, 0 A 12.0 kilogram mass weighs 84.0 newtons on a newly discovered planet. What is the magnitude of the acceleration due to gravity on this planet?A) 1.20 m/s^2B) 7.0 m/s^2C) 9.8 m/s^2D) 84 m/s^2 Determine the mass of a sphere with a radius of 8 cm having a density of 7500 kg / m3 if a figure is translated with the rule t(-5,3) which translation move to the image back to the original position?