Answer:
in what areas is leslie's underspending hurting her
Savings
Housing
- Yes as investing in housing is a long term saving
Utilities
- no this is not a saving, underspending will increase saving
Transportation
- no this is not a saving, underspending will increase saving
Groceries
- no this is not a saving, underspending will increase saving
Retirement
- Yes as investing in Retirement is a long term saving
Debt Payment
-Yes as investing in Debt Payment is a long term saving
Phone, Cable, Internet
- no this is not a saving, underspending will increase saving
Medical Expenses
- no this is not a saving, underspending will increase saving
Miscellaneous
- accordingly as explained above for each option.
Dining out- no this is not a saving, underspending will increase saving
Explanation:
Please check the answer section.
Answer:
Print([(a,b) for a in range(10) for b in range(10) if (a < b and a%2 == 1 and b%2 == 1)])
Explanation:
Here, we declared a range of value for a and b using a for loop and the range function. The values are the first 10 numeric digits. The we used the if statement to establish our constraints;
In other to ensure that ;
Lower digit is written first ; (a < b) ;
Only odd numbers are considered,
a%2 == 1 ; b%2 == 1 (remainder when a and b are divided by 2 is 1.
Both a and b are declared as a tuple in other to obtain a pair of odd values.
No, they are two diff things
Answer:
Explanation:
There are various questions that you can ask in this scenario, such as
What grading policies are being implemented?
How many student grades are being calculated by the program?
What is the requirements for a student to pass?
All of these questions would allow you to get an idea of how extensive the code may be and its complexity. Once you know this you would look at the code revolving around actually looping through the data and doing the necessary calculations. You can then determine how to manipulate the code and make it much more efficient.
You would also need to know how the student data is being saved, which will help determine if it is the best data structure for saving this type of data or if it can be replaced in order to maintain the data secure while increasing the speed of the program. Mainly since this information needs to be continuously used from the data structure.