subject
Computers and Technology, 05.05.2020 03:19 AM28

Monty is fed up because his Python program doesn’t work properly. He wants to write a program that will enable him to input the number of lizards that he has eaten each week. Lizards are one of his favourite foods and to stay healthy he needs to eat at least 15 lizards every week. He wants his program to output how many more lizards that he still needs to eat this week. This is his program below, but when Monty runs the program it always gives an error message. Look at the code carefully and try to find out what the problem is.(Tip: you could type the code in Python and try it out for yourself.) What does Monty need to do to fix his program?

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 23.06.2019 01:20
Write a function balancechemical to balance chemical reactions by solving a linear set of equations. the inputs arguments are: reagents: symbols of reagents in string row array products: symbols of products in string row array elements: elements in the reaction in string row array elcmpreag: elemental composition of reactants in two dimensional numeric array elcmpprdcts: elemental composition of prducts in two dimensional numeric array hint: the first part of the problem is setting up the set of linear equations that should be solve. the second part of the problem is to find the integers from the solution. one way to do this is to mulitiply the rational basis for the nullspace by increasing larger integers until both the left-and right-side integers exist. for example, for the reaction that involves reacting with to produce and : reagents=["ch4", "o2"]; products =["co2", "h2o"]; elements =["c","h", "o"] elcmpreag=[1,4,0;
Answers: 3
question
Computers and Technology, 23.06.2019 02:00
As with any small island country, cuba has fewer natural resources than countries such as brazil. this affects their economy in that cuba a) exports only manufactured products. b) exports more products than it imports.. c) must import more products than it exports. d) has imposed trade barriers against the united states.
Answers: 3
You know the right answer?
Monty is fed up because his Python program doesn’t work properly. He wants to write a program that w...
Questions
question
Mathematics, 01.10.2019 03:00
question
Mathematics, 01.10.2019 03:00
question
Mathematics, 01.10.2019 03:00
question
Mathematics, 01.10.2019 03:00
question
History, 01.10.2019 03:00
question
Mathematics, 01.10.2019 03:00
Questions on the website: 13722363