Variables, python operators,data types,string slicing, range of string using list, python conditional statements,user input, looping statement s, python function s, exception handling, file handling, module concept write a demart code using all these things
Reducing Fraction to Lowest Term
Create a Python script that will reduce an input fraction to its lowest term.
2. Define a function that will split a VALID fraction and return a list that consists the numerator and denominator.
Sample Output 1:
Input a fraction: 4/6
Reduced fraction is 2/3
Reducing Fraction to Lowest Term
Create a Python script that will reduce an input fraction to its lowest term.
1. Define a function that will check first if the input fraction is a VALID fraction.
Sample Output 1:
Input a fraction: 4/6
Reduced fraction is 2/3
Describe the origin and structure of sympathetic and parasympathetic nerves and state three functions of each nerve.
1. Write a simple decryption program using string functions which will apply the Substitution Method. Here is the given Substitution Table.
Write the proposition “I come to class whenever there is going to be a quiz” in the
form “if p then q” then state its converse, contrapositive, and inverse.
a. Conditional “if p then q”
b. Converse:
c. Contrapositive:
d. Inverse:
1. Write a program using string functions that determine if the input word is a palindrome. A palindrome word is a word that produces the same word when it is reversed.
Write a program using standard string functions that
accepts a price of an item and display its coded value. The
base of the key is:
X C O M P U T E R S
0 1 2 3 4 5 6 7 8 9
Write a program to read the content of a file and copy its content to another file after converting all the capital case letters in the file to small case letters.
A 100 kg wooden crate is at rest on a level stone floor. If the coefficient of static friction is 0.5. what is the minimum horizontal force needed to get the box moving