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:
THE FOLLOWING FILES ARE:
- nerdluv.php
- signup.php
- signup-submit.php
- matches.php
- macthes-submit.php
- common.php
Explanation
<em>The provided nerdluv.php has a header/footer and links to singup.php and matches.php. This file's contents are complete, but larger parts of it are repeated on other pages. The repeated parts should be turned into functions in common.php that are called by each page. The sign up link leads to singup.php and check matches to matches.php.</em>
<em>The signup.php page has a header logo, a form to create a new acount, and footer notes/images. You must write the HTML code for the form, the form should contain the labeled fields such as name, gender, age, personality tipe, favorite OS, seeking age, and sign up.</em>
<em>The signup-submit.php code should creat a line representing the new user's information and add it to the end of the file. The resulting page has the usual header and footer and text thanking the user. The text log in to see your matches links to matches.php.</em>
<em>Use functions, parameters/return, included files/code, loops, variables, etc, to avoid redundancy. If you have HTML or PHP code that is shared or redundant between multiple pages, place it into functions in common.php. You can include your common.php in your other pages.</em>
Answer:
See explaination.
Explanation:
question is the root element which have two children one is M-C and other is Coding.
Again M-C have two sub children Points and parts
Note: The tree will be as shown in the attachment. kindly refer to attachment.
Here if we see the child of quiz(questions) at 0 position is number of type M-C and another child at location 1 is number of type Coding.
Now quiz.child(0) is number of type M-C which has two child and child at 0 is Points and child at 1 is Parts
quiz.child(0).child(1) is Points and now further points doesn't have any children hence going further to quiz.child(0).child(1).child(0) is nothing hence it will not return anything.
Next quiz.child(1) is number of type coding and value is 5.
Size of the tree is (2^depth)-1
and here depth of tree is 3 hence size is (2^3)-1 i.e. 7
Answer:
A) <em><u>a,s,d,f, and either g or caps lock</u></em>
B) <u><em>l,k,j,h, and, ;</em></u>
Explanation: