The simple interset program is a sequential program, and does not require loops and conditions
The simple interset program in Python, where comments are used to explain each line is as follows:
#This gets input for the principal amount
P = int(input("P = "))
#This gets input for the rate
R = int(input("R = "))
#This gets input for the number of years
N = int(input("N = "))
#This calculates the simple interest
I = P * R * T * 0.01
#This prints the simple interest
print("Simple Interest =",I)
Read more about simple interest at:
brainly.com/question/2294792
 
        
             
        
        
        
Answer:
168 (although the =< must be corrected to <=)
Explanation:
 int count = 0;
 for (int row = 4; row <= 15; row++)
 for (int col = 0; col < 13; col = col +2)
 count+=2;
The inner for loop runs 7 times (for col = 0,2,4,6,8,10,12). Anything higher is not less than 13. Therefore the inner loop increments count by 2 seven times, i.e. it increments count by 14.
The outer for loop runs 12 times (for row = 4,5,6,7,8,9,10,11,12,13,14,15).
If the count is incremented by 14 twelve times, you are incrementing it by 14*12 = 168.
Therefore the count goes from 0 to 168 after the nested loops.
 
        
             
        
        
        
Based on the scenario above about the leading-trailing system Both technician A and B are incorrect.
<h3>How many brake shoes function?</h3>
There are known to be two shoes function that are said to be working a way where both become either the trailing shoe or leading shoe based on whether the vehicle is moving forward or backward.
Therefore we can say that, Based on the scenario above about the leading-trailing system Both technician A and B are incorrect.
Learn more about trailing system from
brainly.com/question/14367881
#SPJ1
 
        
             
        
        
        
Answer:
Here is the Python program:
COOKIES_PER_BAG = 40 #sets constant value for bag of cookies 
SERVINGS_PER_BAG = 10 #sets constant value for serving in bag
CALORIES_PER_SERVING = 300 #sets constant value servings per bag
cookies = int(input("How many cookies did you eat? ")) #prompts user to input how many cookies he or she ate
totalCalories = cookies * (CALORIES_PER_SERVING / (COOKIES_PER_BAG / SERVINGS_PER_BAG)); #computes total calories consumed by user
print("Total calories consumed:",totalCalories) #displays the computed value of totalCalories consumed
Explanation:
The algorithm is:
- Start
- Declare constants COOKIES_PER_BAG, SERVINGS_PER_BAG and CALORIES_PER_SERVING
- Set COOKIES_PER_BAG to 40
- Set SERVINGS_PER_BAG to 10
- Set CALORIES_PER_SERVING to 300
- Input cookies
- Calculate totalCalories:                                                                                                                       totalCalories ← cookies * (CALORIES_PER_SERVING / (COOKIES_PER_BAG / SERVINGS_PER_BAG))
- Display totalCalories
I will explain the program with an example:
Lets say user enters 5 as cookies he or she ate so
cookies = 5
Now total calories are computed as:
totalCalories = cookies * (CALORIES_PER_SERVING / (COOKIES_PER_BAG / SERVINGS_PER_BAG));  
This becomes:
totalCalories = 5 * (300/40/10)
totalCalories = 5 * (300/4)
totalCalories = 5 * 75
totalCalories = 375
The screenshot of program along with its output is attached.
 
        
             
        
        
        
In the case of Mary and Billy, the above is called Negotiated farewell.
<h3>What is Negotiated farewell?</h3>
In the case of  Negotiated Farewell, one can say that couples are knonw to jointly create the story of the end to what we say their marriage. 
Note that Negotiated Farewell is one that is made for emotionally immature or any kind of combative people. hence, In the case of Mary and Billy, the above is called Negotiated farewell.
Learn more  about relationship from
brainly.com/question/10286547
#SPJ1