Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the whole code in python, its better to write it with explanations thanks You've been hired by a telecommunications company to write a program

image text in transcribedimage text in transcribedimage text in transcribedWrite the whole code in python, its better to write it with explanations thanks

You've been hired by a telecommunications company to write a program to help people add and remove apps from their smartphone. To do this you should write a class that models a smartphone. Your class should do the following: class Smartphone: Test your class and make sure it works as you expect-you will need to write your own tester program for this. Then, write a program that asks the user to create a new phone and then allows them to use all of the features in your class. A sample running of this program is below. Size of your new smartphone (32, 64, or 128 GB ):64 Smartphone name: Ada's phone Smartphone created! Name: Ada's phone Capacity: 0 out of 64GB Available space: 64 Apps installed: 0 (r) eport, (a) dd app, r (e)move app or (q) uit: a App name to add: Sky Guide App size in GB: 10 (r) eport, (a) dd app, r (e)move app or (q) uit: r Name: Ada's phone Capacity: 10 out of 64 GB Available space: 54 Apps installed: 1 - Sky Guide is using 10 GB (r)eport, (a) dd app, r(e)move app or (q) uit: a App name to add: Duolingo App size in GB: 15 (r) eport, (a) dd app, r (e)move app or (q) uit: a App name to add: Endel App size in GB: 10 (r) eport, (a) dd app, r (e)move app or (q) uit: r Name: Ada's phone Capacity: 35 out of 64GB Available space: 29 Apps installed: 3 - Duolingo is using 15GB - Endel is using 10GB - Sky Guide is using 10GB (r)eport, (a) dd app, r (e)move app or (q)uit: a App name to add: Twitter App size in GB: 15 (r)eport, (a)dd app, r(e)move app or (q)uit: a App name to add: Mastodon App size in GB: 15 Cannot install app, no available space (r) eport, (a) dd app, r(e)move app or (q) uit: r Name: Ada's phone Capacity: 50 out of 64GB Available space: 14 Apps installed: 4 - Duolingo is using 15 GB - Endel is using 10GB - Sky Guide is using 10 GB - Twitter is using 15GB (r) eport, (a) dd app, r(e)move app or (q)uit: e App name to remove: Twitter App removed: Twitter (r) eport, (a) dd app, r(e)move app or (q) uit: a App name to add: Mastodon App size in GB: 15 (r) eport, (a) dd app, r(e)move app or (q) uit: r Name: Ada's phone Capacity: 50 out of 64GB Available space: 14 Apps installed: 4 - Duolingo is using 15 GB - Endel is using 10GB - Mastodon is using 15 GB - Sky Guide is using 10GB (r) eport, (a) dd app, r(e)move app or (q) uit: q Goodbye

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_2

Step: 3

blur-text-image_3

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

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions