CHALLENGE
ACTIVITY
1.6.1: Defining a class constructor.
Write a constructor with parameters self, num_mins and num_messages. num_mins and num_messages should have a default
value of 0.
Sample output with one plan created with input: 200 300, one plan created with no input, and one plan created with input: 500
My plan... Mins: 200 Messages: 300
Dad's plan... Mins: Messages: 0
Mom's plan... Mins: 500 Messages: 0

Python please

Answers

Answer 1

Coding:

class PhonePlan:

 

   def __init__(self, minutes=0, messages=0):

       self.num_mins=minutes

       self.num_messages=messages

   def print_plan(self):

       print('Mins:', self.num_mins, end=' ')

       print('Messages:', self.num_messages)

my_plan = PhonePlan(int(input()), int(input()))

dads_plan = PhonePlan()

moms_plan = PhonePlan(int(input()))

print('My plan...', end=' ')

my_plan.print_plan()

print('Dad\'s plan...', end=' ')

dads_plan.print_plan()

print('Mom\'s plan...', end= ' ')

moms_plan.print_plan()

Have a great day <3


Related Questions

When you run your Windows Form application, what is the lifespan of a global variable (also known as a "field" or "class" variable)?

Answers

The lifespan of a global variable (also known as a "field" or "class" variable) exist only until any additional classes are initialized.

What is Windows form application?

Windows Forms is defined as a form of UI backbone that is often uused for creating Windows desktop apps.

It is known to help its user in a lot of ways to produce or make  desktop apps using  the visual designer given in Visual Studio. It has a lot of Functionality such as drag-and-drop placement of visual controls and others.

See full question below

When you run your Windows Form application, what is the lifespanof a global variable (also known as a “field” or “class”variable)?

a. during the initial click button event

b. global variables only exist if they are constants

c. only until any additional classes are initialized

d.as long as the form is running

Learn more about Windows  from

https://brainly.com/question/26420125

What is the difference between conceptual architecture view and module architecture view?

Answers

Answer:

The conceptual architecture view provides a high-level map of how the system performs what it's meant to do, and the module architecture view demonstrates how the software's major parts are translated to modules and subsystems.

Explanation:

Is it possible to have the present value of a future payment that is greater than the future payment (i.e. the present value is $1200, and the future payment is $1000)? Explain, using complete, grammatically-correct sentences.

Answers

Note that the present value always less than the future value and so Is it not possible to have the present value of a future payment that is greater than the future payment.

Can present value be greater than future cash flows?

The present value is known to be often less than the future value this is due to the reason that money has interest-earning rate on top of it.

So therefore, that base on the fact that as long as interest rates are positive, then the present value of a sum of money will have to be less than its future value.

Learn more about present value from

https://brainly.com/question/20813161

Which layer abstracts away the need for any other layers to care about what hardware is in use?

Answers

Answer:

data link layer

Explanation:

you answer is data link layer

How might the project team recommending an ERP design strategy justify its recommendation as compared with other types of design strategies?

Answers

The project team recommending an ERP design strategy by stating that in all, most of the attributes of a specific plan will bring about a good, quick and full return on that investment.

The project team can legitimize their ERP strategy by inputting the main preferred viewpoint to reengineering the proposed business procedure.

What is a ERP strategy?

The term  ERP strategy is a term that connotes the use of a technology strategy that often helps to integrates a combination of business functions.

The functions includes finance, HR and purchasing and linked  with operational areas, such as manufacturing  via a tight rope from operational business works to financial records.

Learn more about design strategy  from

https://brainly.com/question/5971614

do you think film is a great media in exposing information?​

Answers

not really everything don’t need to be on the internet

Answer:I think film is a great media in exposing information

Explanation:Films are great for exposing information for many reasons. Films are long, which increases the chance the watcher will remember, also it makes the watcher more involved and more interactive

UCLA Extension's marketing department wants
to study the effectiveness of their email
campaign. The department surveyed 40
students randomly selected from a contact
database. The survey shows 26 of the 40
students surveyed enrolled in one course
because of reading the email. 8 of the 40
enrolled in three courses after reading the
email, and 6 of the 40 did not enroll even after reading the email.

The effectiveness of the email campaign is measured by course enrollment. Can you calculate the mean as a measure of central tendency
reading the email?

Answers

The measure of central tendency to determine the effectiveness can be the mean, median or mode

It is true that you can calculate the mean as a measure of central tendency for reading the email

How to determine the true statement?

The survey result is given as:

Sample size, n = 40Enrolled in one course = 26Enrolled in three courses = 8Not enrolled = 6

To determine if the email is effective or not, we simply carry out a test of significance.

However, if the central of tendency is to be used to determine the effectiveness; it is best to use the mean.

Hence, it is true that you can calculate the mean as a measure of central tendency for reading the email

Read more about measure of central tendency at:

https://brainly.com/question/17631693

Which function can be used to insert the current date into a spreadsheet?
DATE
TODAY
MM/DD/YYYY
DATE&TIME
Help please

Answers

Answer:

its MM/DD/YYYY

Explanation:

How do I write this program?

def goingUp(n): # prints the stars from the row with 1 until a row with n

def goingDown(n): # prints the stars from the row with n to the row with 1

If the user enters a negative value, your program should print nothing.

If the user enters 0, your program should print nothing.

If the user enters 1, your program should print a single line with one star.

If the user enters any number greater than 1, your program should print according to the pattern shown above.

The prompt to the user must be Please enter a value

Answers

Answer:

Sorry but I don't know this

Create a Python console application following the requirements below to allow the entry of 6 bowlers' scores
for a bowling game. After that, the average, minimum and maximum scores are determined, and all results
displayed.

Answers

Average

a=[scores]

ans=0

max=max(a)

min=min(a)

for i in a:

   ans+=i

ans=ans/len(a)

What is the purpose of linking text boxes?

Answers

The answer that the person answered is the same answer I was gonna answer so Yh it’s correct

write a C++ program to print name, age, class, school​

Answers

Answer:

#include <iostream>

using namespace std;

int main()

{

   string name;

   string age;

   string Nameclass;

   string school;

   cout<<"What is your name?\n";

   cin>>name;

   cout<<"What is your age?\n";

   cin>>age;

   cout<<"What is your class?\n";

   cin>>Nameclass;

   cout<<"What is your school?\n";

   cin>>school;

   cout<<"Name: " + name;

   cout<<"\nAge: " + age;

   cout<<"\nClass: " + Nameclass;

   cout<<"\nSchool: " + school;

   return 0;

}

Explanation:

does anyone know what blue holler is if so, what are the new tracks?

Answers

Answer:

No

Explanation:

No I don't know about it sorry

What happens when you press the enter key at the end of a bulletin text

Answers

it starts a brand new line to start a sentence

What components are part of the secondary ignition system ( high Voltage)

Answers

Answer:

The components that are part of the secondary ignition system ( high Voltage ) are :: Distributor cap, Distributor rotor, Spark plug cable, and Spark plug.

Explanation:

They are called a part of secondary ignition system because they can take and increase the voltages as much as 40,000 volts.

In Cell D2, create a SUMIFS function to total the fee when the criteria in cells C2 and E2 are met

Answers

Sum values are founded on one or additional necessities by utilizing the SUMIFS role in a procedure.

There are 5 participants in a Symmetric Key system and they all wish to communicate with each other in a secure fashion using Symmetric Keys without compromising security. What's the minimum number of Symmetric Keys needed for this scenario keeping in mind that each pair of participants uses a different key

Answers

Answer:

10 keys.

Explanation:

There are 5*4/2 = 10 pairs in a group of 5. You need that many keys.

Every member of the group will have 4 keys.

If you draw 5 dots on a piece of paper and connect each one with a line, you'll be drawing 10 lines. Each line needs a key.

Create a file using any word processing program or text editor. Write an application that displays the files name, containing folder, size, and time of last modification. Save the file as FileStatisits.java

Answers

Explanation:

TO MAKE FOLDER

-right click

-select 'new'

-and click on folder

What rules should we have about cell phone
the classroom/school?.

THIS IS AN 5 PARAGRAPH ESSAY HELP ME

Answers

Introduction: There are many rules schools should follow when it comes to cell phone use during school hours. Technology can be very distracting and durning school is when kids need to pay attention. Most people see cell phone rules un fair or bad, however it's not like that. The school just wants what's best for the students and so they can learn, which will ultimately help them on later in life.

Body paragraphs (wont write the rest of the paragraphs but heres some ideas) Only using the phone when needed like if it's an emergency, phones have to stay on silent to not disrupt others, during free period you can choose whether to be on your phone

then you write your conclusion based on what you wrote

Most of the Info you would need:

-If we don't allow cellphones many school issues would be solved.

-There is a mistake if they use cellphone, but its a great mistake if they misuse.

- Phones in classes just defeat the point of going to school- for learning.

- There are benefits, yes, but there is no doubt that the privilege will be abused.

-Cell phones are only good for distracting the students from the education that they are at school to obtain.

- we think it is one of the best ways to get distracted during class to use your cellphone.

-Cell phones create massive and on going classroom management issues for teachers.

-There is no need for allowing students to use mobile phones in schools. Ultimately they are not using mobiles for the calling purpose. Thus it is a perfect no from our side.

Please have a good day <3

Question #4
Dropdown
You are writing a program to ask the user for the coordinates of two points and then find the slope. Identify each step as input, process, or
output. Not all steps are listed.
#Ask the user for the x-coordinate of the first point.
#Calculate the slope
#Display the slope

Answers

Answer:

The y-intercept is going to fall by -2 but the x-intercept will run +5

Explanation:

Becuase the derivative of the equation causes this when plugged into the formula

Ask the user for the x-coordinate of the first point: Input.

Calculate the slope: Process.

Display the slope: Output.

Ask the user for the x-coordinate of the first point:

This step involves obtaining data from an external source, which is the user.

The program needs the x-coordinate of the first point to perform calculations.

The program doesn't have this information beforehand, so it relies on the user to provide it.

Hence, it falls under the category of input.

Calculate the slope:

This step involves performing computations and transformations on the provided input data.

The program takes the coordinates of two points, computes the differences in y-coordinates and x-coordinates, and then calculates the slope using these differences.

This involves mathematical operations and logic, which is processing the data to derive a meaningful result.

Therefore, it is categorized as a process.

Display the slope:

This step involves presenting the result of the calculations to the user. The program is sending information to an external destination, which is the user's screen.

The calculated slope is being made accessible to the user, providing them with the outcome of the computation.

Hence, it falls under the category of output.

To learn more on Programming click here:

https://brainly.com/question/33815139

#SPJ3

6.1.5: Function definition: Volume of a pyramid.


Define a function calc_pyramid_volume with parameters base_length, base_width, and pyramid_height, that returns the volume of a pyramid with a rectangular base.

Sample output with inputs: 4.5 2.1 3.0
Volume for 4.5, 2.1, 3.0 is: 9.45
Relevant geometry equations:
Volume = base area x height x 1/3
Base area = base length x base width.

Answers

Answer:

def calc_pyramid_volume(base_length, base_width, pyramid_height):

   return (base_length*base_width*pyramid_height*1/3)

The code given below is in Java as it calculates the volume of the pyramid by creating the function. The base length as well as the base width, and the pyramid height has been passed as the parameters to the function.

The function of calc_pyramid_volume with parameters base_length.

//Main.java

public class Main

{

public static void main(String[] args) {

//Initialize the variables

double base_length = 4.5;

double base_width = 2.1;

double pyramid_height = 3.0;

//Call the the function with the given parameters

System.out.printf("Volume for %.1f, %.1f, %.1f is: %.2f", base_length, base_width, pyramid_height

, pyramid_volume(base_length, base_width, pyramid_height));}

Therefore,

//function that takes length, width and height as parameters and returns the volume

public static double pyramid_volume(double base_length, double base_width, double pyramid_height) {

//calculate the base area by multiplying the base length and base width

double base_area = base_length * base_width;

Learn more about pyramid on:

https://brainly.com/question/13057463

#SPJ2

Specification which has little effect on the speed of a processor is

Answers

Answer:

Specification which has little effect on the speed of a processor is cache system bus speed clock speed socket type. 

Specification which has little effect on the speed of a processor is cache system bus speed clock speed socket type.

What is Specification?

A specification is frequently used to refer to a list of requirements that must be met by a material, design, good, or service. A specification is frequently a form of technical standard.

There are various forms of technical or engineering specifications (specs), and the term is used in various technical contexts in various ways. They frequently make reference to specific papers or information included in them.

The general definition of the word specification is "to state explicitly or in detail" or "to be particular." A requirement specification is a set of requirements that must be met by a certain type of product, service, design, or other element.

Therefore, Specification which has little effect on the speed of a processor is cache system bus speed clock speed socket type.

To learn more about Specification, refer to the link:

https://brainly.com/question/27900839

#SPJ3

i need answer for multiple choice . Someone help me.....pls.....everyone have online?

Answers

Answer:

I believe that your correct answer to that question is C. Logistics Information System. The Logistics subsystem deals with activities such as purchasing, receiving inventory control, and distribution. This concept sometimes requires certain components of the organization to operate sub-optimally in order to achieve the maximum goals of the system.

Explanation:

I got my information for this answer from www.examveda.com. If there are any further questions, please put them below in the comments, and I will try my best to help you out. If not, please have a great rest of your day/night. :)

Three clocks exist in a room: The round clock is 10 minutes behind the actual time The rectangular clock is 5 minutes after the actual time The squared clock is 5 minutes slower than the round clock The time now on the squared clock is 08:05, what is the time now on the rectangular clock? *

Answers

Answer:

08:15

Explanation:

Let the actual time be x

Round Clock = x-10

Rectangular Clock = x-5

Square Clock = x-15

Square Clock = 08:05

08:05 = x-15

08:20 = x

Rectangular Block = x-5 = 08:15

The time now on the rectangular clock is 8:25  The squared clock is 5 minutes slower than the round clock.

What is real-time?

Real-time is the time at which the acts take place during the original time.

Let the real-time be.The spherical clock is 10 mins in the back of the real-time.So, the time on the spherical clock = x - 10 minsThe square clock is five mins after the real time.So, the time on rectangular clock = x + five minsThe rectangular clock is five mins in the back of the spherical clock.So, the time on spherical clock = the time on spherical clock - five mins = x - 10 mins-five minutes = x - 15 minsTime at the squared clock is given as 08/0So, we are able to write: x - 15 mins =08:05 Add 15 mins on each sides: x - 15 minutes + 15 mins =08:05+15 minsFrom this we get: x = 08/20 Now, time at the square clock = x + five minsSubstituting the price of x:The first alternative is the proper answer.Comment > time at the square clock =08:25 time at the square clock =08:25

Read more about the time :

https://brainly.com/question/2854969

#SPJ2

What is a collection of information in a
row representing one object called?

Answers

Record in terms of ict

How to add up multiple user inputs for example: If i ask the user How many numbers do you want to add? they say 5 then i out put Enter 5 numbers: how can i get it to add up those 5 numbers that were input.In JAVA

Answers

Answer:

import java.util.Scanner;

class Main {

 public static void main(String[] args) {

   Scanner scanner = new Scanner(System.in);

   System.out.println("How many numbers do you want to add?");

   int numberOfNumbers = scanner.nextInt();

   int arrayNumbers[] = new int[numberOfNumbers];

   System.out.println("Enter " + numberOfNumbers + " numbers:\n");

   for(int i = 0; i < numberOfNumbers; i++){

     int addToArray = scanner.nextInt();

     arrayNumbers[i] = addToArray;

   }

   int sum = 0;

   for(int j = 0; j < arrayNumbers.length; j++){

     sum+=arrayNumbers[j];

   }

   System.out.println("Sum: " + sum);

 }

}

Explanation:

What exactly is github?

Answers

GitHub is a code hosting platform for version control and collaboration.

It lets you and others work together on projects from anywhere.

Explanation:

Hope it helps you!!

Service provided by multiple servers acting in parallel is referred to as: a. Multiple-phase queuing system b. Multiple-channel queuing system c. Multi-delivery servicescape d. Multi-platform servicescape

Answers

Service provided by multiple servers acting in parallel is referred to as Multiple-channel queuing system.

What is Multiple-channel queuing system?

The multi channel queuing problems is known to be a system where each of the stations is known to often deliver the same type of service and they are said to be equipped with the same kind of tools.

Conclusively, A multi-channel, is said to be a single-phase business that is composed of different servers and also has a one-step servicing process.

Learn more about Multiple-channel from

https://brainly.com/question/17137414

Data in the form of digits is called

Answers

Numeric data because it consist of numbers

1. What is a sprite?
O A sprite is a graphical representation of an object
A sprite is a function
A sprite is a game
A sprite is a string

Answers

Answer:

A

Explanation:

A sprite is a character or object that moves in a video game. For example, in Mario, Mario is the sprite because he is a character and can move.

Other Questions
Help its due in 2 hoursPhysics Word Problem An archer shoots an arrow at a 75 m distant target; the bulls-eye of the target is at same height as the release height of the arrow. If d = 75 m and v = 37 m/s. At what angle must the arrow be released to hit the bulls-eye if its initial speed is 37m/s? HURRY Why can it be more expensive for clients to host a catered event at their home than at a hotel or restaurant? sally really loves being outdoors. she likes to hike, do yoga in the warm sun, and go for long camping trips. she and her wife move to arizona from new york so that they can enjoy these activities in warmer weather for most of the year. this process of moving to an area that is most suited for ones personality tendencies is called selective ________. A banshees s dD dsbshshshs shshshshshah Find the value of x. According to the path-goal theory of House and others, what do leaders assume?Different leaders are needed in different circumstancesSubordinates are motivated by believing that more effort improves job performance.Leaders should smooth the path towards a fixed goal. A cube has a side length of 5 inches. What is the surface area, in square inches of the cube? A sample of 100 students was randomly selected from a middle school in a large city. These participants were asked to select their favorite type of pizza: pepperoni, cheese, veggie, or Hawaiian. pizza preference and gender were recorded for each participant. The results of the survey are summarized in the table Choose the correct measurement of the scissors to the nearest\DONT PUT ANY LINKS I WILL NEVER USE THEMIF YOU DO I REPORT YOU Jasmin rakes at two different houses. it takes her 2 1/3 hours to rake leaves at the first. it takes her 1/2 of that time to rake at the second house. how long does it take jasmin to rake at the second house? adapted from White Fangby Jack London And then she found the thing for which she sought. It was a few miles up a small stream that in the summer time flowed into the Mackenzie, but that then was frozen over and frozen down to its rocky bottoma stream of solid white from source to mouth. The she-wolf was trotting wearily along when she came upon the overhanging, high clay-bank. . . The wear and tear of spring storms and melting snows had under-washed the bank and in one place had made a small cave out of a narrow fissure. She paused at the mouth of the cave and looked the wall over carefully. Then, on one side and the other, she ran along the base of the wall to where its abrupt bulk merged from the softer-lined landscape. Returning to the cave, she entered its narrow mouth. . . It was dry and cozy. She inspected it with painstaking care, while her companion, who had returned, stood in the entrance and patiently watched her. She dropped her head, with her nose to the ground and directed toward a point near to her closely bunched feet, and around this point she circled several times; then, with a tired sigh that was almost a grunt, she curled her body in, relaxed her legs, and dropped down, her head toward the entrance. . . Her own ears laid their sharp points backward and down against the head for a moment, while her mouth opened and her tongue lolled peaceably out, and in this way she expressed that she was pleased and satisfied.Which is the best summary of the passage?A. The stream is frozen over and frozen down to its rocky bottom. This allows the wolf to cross over where she finds a hidden cave to rest.B. The wolf, needing a place to rest, comes upon a cave hidden near a stream. After careful inspection of the cave, the wolf relaxes, and lays down to face the entrance of the cave.C. The wolf, traveling upstream, comes to the source of the river. The river is covered in snow. The wolf finds a hidden place to rest.D. The cave is hidden near the mouth of the stream. The wolf inspects the wall of the cave and decides that the cave is exactly what she was searching for. Can you pls help me with this What is a chromosome like in a city? How is fission different than alpha or beta decay? b) Consider a large plane wall of thickness L = 0.4 m, thermal conductivity k = 1.8 W/mK, and surface area A = 30 m2. The left side of the wall is maintained at a constant temperature of T1 = 90C while the right side loses heat by convection to the surrounding air at Q. If the word problem is asking you to find the space inside the circle, which formula should you use?answer choices After passage of the reconstruction acts, who took charge of the governments of the former confederate states? Hey peeps someone helppp meeeeee Agustin says that he can hold his breath for 90 seconds. And, he says that he did this 5 times this week. He used fractions and multiplication to calculate how many minutes he held his breath this week. Plants, or autotrophs, do which of the following processes? (Select all.) Glycolysis Photosynthesis Cell Respiration None of the above