A mobile service provider has two data plans for its customers:

Silver plan: For $29.99 a month, 4 gigabytes are provided. Additional data costs $10 per gigabyte.
Gold plan: For $49.99 a month, 8 gigabytes are provided. Additional data costs $5 per gigabyte.

For both plans, the additional data is rounded up to an integral number of gigabytes. For example, if the additional data is 2.1 gigabytes, it is rounded up to 3 gigabytes, and the cost is $30 for the silver plan and $15 for the gold plan. Write a program that displays a menu of choices.

Answers

Answer 1

The program is an illustration of built-in functions and conditional statements.

Built-in functions are functions that have specific roles defined in them, while conditional statements are statements whose execution depends on the truth values of the condition.

The program in Python, where comments are used to explain each line is as follows:

import math

#This prints the menu

print("Menu\n1.- Silver plan\n2. Gold plan")

#This gets input for the plan from the user

selection = int(input("Select a plan: "))

#This gets the additional data from the user

additional_data = float(input("Additional data: "))

#This rounds up the additional data to the next integer

additional_data = math.ceil(additional_data)

#If selection is 1

if selection == 1:

   #This calculates the additional cost and the total cost

   additional_cost = 10 * additional_data

   total = additional_cost + 29.99

#If selection is 2

elif selection == 2:

   #This calculates the additional cost and the total cost

   additional_cost = 5 * additional_data

   total = additional_cost + 49.99

#For other inputs, the selection is considered invalid

else:

   print("Invalid selection")

#This prints the additional and the total costs, for selections 1 and 2

if selection == 1 or selection == 2:

   print("Additional cost:",additional_cost)

   print("Total cost: {:.2f}".format(total))

At the end of the program, the appropriate costs are printed for valid selections.

Read more about similar programs at:

https://brainly.com/question/25210352


Related Questions

Which option is a subsection of the General Description section of the SRS?
A.
Abbreviations
B.
Acronyms
C.
References
D.
Definitions
E.
Product Functions

Answers

Answer:

E

Explanation:

Product Functions.

How is a worm different from a Trojan?

A. A worm reproduces itself on the same computer, whereas a Trojan attempts to spread through the network.

B. A worm gathers information and transmits to a server, whereas a Trojan hides and then spreads through a network.

C. A worm spreads through a network, whereas a Trojan hides inside another program.

D. A worm prevents a device from functioning until a ransom is paid, whereas a Trojan gathers information and transmits it to another device.

Answers

Answer:

C. A worm spread through a network, whereas a trojan hides inside another program.

Explanation:

Worms spread through computer networks, a great example of a popular computer worm that struck the world is the "ILOVEYOU" / "Love Letter for You" worm. The malware infected over ten million personal computers and was spread via the user's email and sent to all addresses in the user's address book.

A trojan virus is essentially a piece of malicious software that looks legitimate from the outside but in under the seal it's highly malicious and destructive; hence how it got it's name "Trojan Horse" which is a reference to an Ancient Greek story of deception.

Briefly describe the following advanced database systems and applications: object-relational databases, spatial databases, text databases, multimedia databases, the World Wide Web

Answers

Object-relational databases (ORD) are a type of database management system (DBMS) designed based on an object-oriented database model. The database framework and query language of ORD support objects, classes, and inheritance.

Spatial database is a kind of database designed for keeping and querying data that depicts objects specified in a geometric area.

Text database is a type of database designed to handle the maintenance of huge text compilation, then create quick and valid access to it.

Multimedia database is a type of database that saves multimedia data, including text, images, graphic objects, animation, audio, video, etc.

The World Wide Web is an information system that connects several documents through hyperlinks and can be accessed or retrieved through the internet. It is usually termed as web.

Hence, in this case, it is concluded that this advanced database and applications are vital in the modern world.

Learn more here: https://brainly.com/question/13044551

flujograma de nómina ​

Answers

Explanation there is the rest in comments

These are the methods of cleaning and sanitizing kitchen tools and equipment?

A. Disassembling, Immersion, Sterilizing
B. Sterilizing, Disassembling, Immersion
C. Disassembling, Sterilizing, Immersion
D. Sterilizing, Immersion, Disassembling

Answers

Answer:

C. Disassembling, Sterilizing, Immersion

CHOOSE ME THE BRAINLIEST

Question 3 A benefit of using online tools is that: O you have more privacy because the information is stored locally on your computer. they are accessible anywhere you have the internet. it is the only way to utilize essential business software. everything is stored in the same place. Question 4​

Answers

Answer:

False, it doesn't mean that if a application is stored on a device, it can't steal any data. Take cloud service for example it is not locally stored on your computer it is stored on the huge amount of databases, meaning that the service provider could steal the files or delete them without consent.

A news story’s overall theme and structure is referred to as a:
A.
frame
B.
source
C.
placement
D.
connotation

Answers

Answer: I think it's B sorry if Im wrong

Explanation:

1. Match the following Teamwork Skills to their descriptions
1. Effective Communicator
2. Active Listener
3. Problem Solver
4. Reliable
5. Respectful

Answers

Answer:

effective communicator

demons I shall be your eternal nightmare

Answers

What does this mean??? Should I be scared right now? Just kidding I’m not scared. Hope you’re not trying to cause harm. Hope you have a positive day and happy Thanksgiving to you and your family

A footnote can be configured to take up a fixed number of ______ of text

Answers

Footnote just like endnotes can be formatted to have a fixed number of lines of texts.

Footnotes are used to leave reference in the text for readers to make reference too and basically placed at the bottom of the page, although with a little formatting they can come in handy despite their limitations

Footnotes generally include the

Author name, The publication title,Publication date,Publisher information with the very first citation, and a Page number.  

For more information on footnotes and endnotes kindly visit

https://brainly.com/question/25365614

 

Everything on a slide is an object that can be manipulated and formatted separately
from all other objects.

Answers

true everything on a slide is an object

Declare an eight by eight two-dimensional array of strings named chessboard.

Answers

Answer:SOLUTION:  

String [][] chessboard = new String [8][8];

I have problems in compiling this Java code:
class SumMatrix{
public static void main(String[] args){
matrixAdd({{1;2}; {5;6}}; {{8;7}; {3;4};});}
public static double[][] matrixAdd(double m1[][], double m2[][]){
int i,j;
double sum[][];
for (i=1;i<=2;i++){
for(j=1;j<=2;j++){
sum[i][j]=m1[i][j]+m2[i][j];
}}
for (i=1;i<=2;i++){
for(j=1;j<=2;j++)
return sum[i][j];
}
}
}
I get this errors:

Answers

Not my fault double sun you should restart your computer for it work

Where is the fill handle located

Answers

The fill handle will appear as a small square in the bottom-right corner of the selected cell(s). Click, hold, and drag the fill handle until all of the cells you want to fill are selected. Release the mouse to fill the selected cells

2) RMU divides students into house groups based on the month that they were born in.
born in May, June, July or August are put into Bridge House. All other students are
Students born in January, February, March or April are put into Ship house. Students
put into Anchor house.
Design a flowchart that will:
. Ask the user to enter a number (1 to 12) relating to their birth month
Decide which house they are in and print this out.
Keep a running total of how many students are in each house.
Repeat the above for 20 students.
When 20 students have entered their details, print out how many students are in
each house

Answers

describe your childhood

opción.
La configuración manual de parámetros
de red se realiza en la ventana de
"propiedades" del adaptador ethernet,
haciendo doble clic sobre la opción:
D

Answers

Answer:

haga doble clic en el icono de conexiones de red

Explanation:

haga doble clic en el icono de conexiones de red.

(perdón por mi mal español, todavía no soy muy bueno en eso, sin embargo espero que esto ayude)

Which of these developments occurred because of the introduction of street cars in cities

Answers

Answer:

development of suburban areas

Explanation:

quizlet

What does a variable do?


A variable solves for x.

A variable solves for x.


A variable helps scientists make studies of control groups.

A variable helps scientists make studies of control groups.


A variable names a memory location to hold different values in your program.

A variable names a memory location to hold different values in your program.


A variable evaluates a boolean expression.

A variable evaluates a boolean expression.

Answers

Answer:

A variable names a memory location to hold different values in your program.

Explanation:

Variables are the names you give to computer memory locations which are used to store values in a computer program.

Develop the truth table for each of the combinational logic circuits
shown below.
A
B
C
A · B · C
A
B
C
X
a.)
A
B
C
X
b.)
A
B
C
X

Answers

Answer:

ang haba po grabe hahahhaahhahahahahah

Explanation:

pabrainlest po t.y

What is the best Computer in the World?
Wrong answer will be reported!

Answers

Dell XPS Desktop Special Edition is the best Computer in the World

▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪

Cutest Ghost

▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪

Crashes involving new teen drivers are only caused by poor skills.
True
False

Answers

The answer is false because it can be someone else’s bad driving, they can run into you.

What is the key benefit of the least privilege approach
to security?
o It results in task being completed quicker
o It minimises the level of compromise in the event of a security breech
O Ensures modular, reusable output

Answers

Answer:

2nd

Explanation:

it has a low security

Where do you find the option to Restore a Davinci Resolve Archive project file?

Answers

With your project fully archived, you need to restore it to use in Resolve. Back in the project window, right-click anywhere, and hit “restore.” Navigate to the archived project folder, and select open. Resolve will then import the project, bins, and media exactly as you left them prior to archiving

QUESTION 7
Any use of a direct quote or paraphrased idea does not need to be cited properly in APA style.
O True
O False

Answers

false, it needs to be properly cited because that is plagiarism which is illegal

your favorite type of advertising

Answers

Answer:

Here are some of the best types of advertising:

•Social Media Advertising.

•Pay-Per-Click Advertising.

•Mobile Advertising.

•Print Advertising.

•Broadcast Advertising.

•Out-of-Home Advertising.

•Direct Mail Advertising.

•Target the Right Audience.

'But my favorite type of advertising is SOCIAL MEDIA ADVERTISING..'

Explanation:

Hope it helps you..

Y-your welcome in advance..

(;ŏ﹏ŏ)(ㆁωㆁ)

To change the type of tab showing in the Tab Selector Box, which of the following should be done? Right-click on the Tab Selector Box Click on the Ruler Right-click on the Ruler Click on the Tab Selector Box

Answers

Literally, a tab selector presents to the user varieties of tab marker options.

To change the type of tab, you simply (d) Click on the Tab Selector Box

The tab selector is situated at the left of the ruler, and there are four basic types of tabs.

Left-alignedCenteredRight-alignedDecimal-aligned.

To change between these tabs, you simply click on the tab selector.

Hence, the correct option to change the type of tab is option (d)

Read more about tab at:

https://brainly.com/question/14459387

What is Smart Content Profits all about?

Answers

Answer:

Smart Content Profits is a ground-breaking app that builds WordPress sites on auto-pilot. Just add in a domain and let this system do the rest.

Answer: A friendly system that lets you build content sites very quickly.

Explanation:

1.5 Code Practice: Question 1

Answers

What’s the question?
Always remember to add any reasonable information for someone to help or answer!!

Have a good rest of your day.

What reduces the likelihood of accidents occurring?

Answers

The first three on top are correct. This is correct because I took the test and it makes the most sense.

Hope this helps have a nice day :)

can u please answer this logos?​

Answers

Answer:

19 is apple

I'm sorry I only know that, but I hope this helped you!!

Other Questions
What is mosque? Who has the chief authority in it? What is the value of x?(The diagram).. what is the sum of 3 - 2i and -5 + 6i? what is the answer to 10x+3x Select all polynomial expressions that are equivalent to 6X^4 + 4X^3 - 7X^2 + 5X +8.A. 16x^10B. 6X^5+ 4X^4 - 7X^3+ 5X^28.C. 6X^4 + 4X^3 - 7X. ^2 + 5X +8.D. 8 + 5X 7x^2 _ 4x^3 + 6x^4E. 8 + 5X - 7x^2 + 4x^3 + 6x^4 What state of matter is water in a lake? Gas Liquid Solid Transitive What is the power of a diverging lens of focal length 0.4 ma) 2.5b) 3.5c)-3.5d)-2.5 1. A basketball player made 12 out of 15 free throws she attempted. She wants to know how many consecutive free throws she would have to make to raise the percent of successful free throws to 85%. (a) Write an equation to represent this situation. (b) Solve the equation. How many consecutive free throws would she have to make to raise her percent to 85%? write the equation of the line that passes through the points (8, 2) and (0, 6) Can someone help me with this Give the gradient of a graph of p against T in terms of n, R and V. If 8% of a number equals 30, find 40% of that number. Evaluate: log(ab/c) + log(bc/a) - log(a/c) = ? according to the opponent-process theory, cells that are turned "on" by Sam has saved 140 sand dollars and wants to give them away equally to his friends. Find the total number of sand dollars each of Sam's friends will get if Sam gives them to 10 friends. The following expression can be solved in 5 steps using the rules of order of operations. Write the step by step solution in the spaces provided below: [(-2)3][(-9)-5+2]Note: You may copy the question from the previous step and replace the operation performed with the result. For example, given the question 4-62, you would copy the question and replace the index term in step 1: 16-62. For step 2, you copy the expression from step 1 and replace the product to get: 16-12. In step 3, you only have one operation left to perform so you just need to write the final answer: 4 3)Calcular la distancia entre los puntos A = (2,1) y B =(-3,2) It is an area represented by an MP Underline the odd one out 1. ceiling fireplace chimney fire 2. modern suburb spacious light 3. basement first floor top floor balcony 4. cottage house apartment garage 5. path floor gate patio What is the equation of a line perpendicular to y= -3x+4 that passes through (-1, 6)