Palindrome - 2
This Program name is Palindrome - 2. Write a Python program to Palindrome - 2, it has two test cases
The below link contains Palindrome - 2 question, explanation and test cases
https://drive.google.com/file/d/1j4ZI4ICjvLPbHyB-v2SQ7ncojkMyheBD/view?usp=sharing
We need exact output when the code was run
Eligibility Criteria - 2
This Program name is Eligibility Criteria - 2. Write a Python program to Eligibility Criteria - 2, it has three test cases
The below link contains Eligibility Criteria - 2 question, explanation and test cases
https://drive.google.com/file/d/1xObf_3zdyEfD8yEtB5V4OqL6HVzEd7h1/view?usp=sharing
We need exact output when the code was run
For Apple store services and apps(like games, videos, etc ): you can gain access if you are15years old or less and your parent has an Apple ID. If you are 16 years old or more you need to have your own Apple ID.
Write a program that uses short circuit logic to tell someone if they are legal to gain access to Apple store services. First ask them how old they are, whether they have an Apple ID or not, and whether their parent has an Apple ID or not.
Write a program that determines whether you can run for president. To run for president the constitution states: No Person except a natural born Citizen, or a Citizen of the South Africa(SA), at the time of the Adoption of this Constitution, shall be eligible to the Office of President; neither shall any Person be eligible to that Office who shall not have attained to the Age of thirty five Years, and been fourteen Years a Resident within the South Africa. Ask three questions of the user and use the guess and check pattern to determine if they are eligible to run for President.
The sum of the first n positive integers can be computed by the formula
sum(1..n) = 1 + 2 + 3 + 4 + · · · + n = n(n + 1)/2
Write a short Python program that computes the sum of the first 100 positive integers and prints it to the screen, using format specifiers when printing instead of converting each item to a string. Use variables to represent the 1, the 100, and the result of the computation. Your program must compute the 5050 value. You cannot just print the result to the screen. You must compute it first from the 100. The goal is for the output to look exactly the same.The output is as shown below:
sum(1..100) = 5050
Write a program to print T in all scales viz Celsius, Fahrenheit, and Kelvin.
Formula to convert from Fahrenheit F to Celsius C is C = (F - 32) * 5 / 9.
Formula to convert from Kelvin K to Celsius C is C = K - 273.
Here "C", "F", "K" represent that the temperature scale is in Celsius, Fahrenheit and Kelvin scales respectively.
The input contains the temperature (a number) and the unit of the temperature scale (C, F, K) without any space.
The output contains temperature in Celsius, Fahrenheit and Kelvin scales in each line in the format similar to input and the value of the temperature is rounded to 2 decimal places.Input
The first line of the input contain a temperature Value in one of Celsius, Fahrenheit, and Kelvin scales.Output
For example, if the given temperature Value is 25C then Celsius value is 25.0C, Fahrenheit value is 77.0F, and Kelvin value is 298.0K.
Sample Input 1
25C
Sample Output 1
25.0C
77.0F
298.0K
Day Name - 2
Given the weekday of the first day of the month, determine the day of the week of the given date in that month.
Input
The first line is a string D.
The second line is an integer N.
Output
The output should be a string.
Explanation
In the given example,
D = Monday. As the 1st of the day of the month is a Monday, it means the 7th and 14th of the month will be Sundays (A week has 7 days). So the 16th day (N = 16) of the month will be a Tuesday. So, the output should be
Tuesday.
Sample Input 1
Monday
16
Sample Output 1
Tuesday
Denominations - 2
The possible denominations of currency notes are 100, 50, 20 and 10. The amount
The output should be a string representing number of 100, 50, 20, 10 notes possible.
In the given example amount
370, it can be written as370 = 3*(100) + 1*(50) + 1*(20) + 0*(10)
Then the output should be
100 Notes: 3
50 Notes: 1
20 Notes: 1
10 Notes: 0
Sum of the series
This Program name is Sum of the series. Write a Python program to Sum of the series, it has two test cases
The below link contains Sum of the series question, explanation and test cases
https://drive.google.com/file/d/15oYX0I0vkskebiNz7Wg80SdkZ-MzHTrg/view?usp=sharing
We need exact output when the code was run
Inverted Solid Right Triangle
This Program name is Inverted Solid Right Triangle. Write a Python program to Inverted Solid Right Triangle, it has two test cases
The below link contains Inverted Solid Right Triangle question, explanation and test cases
https://drive.google.com/file/d/1YFU7WKt1VLzQJ6HEmvwToqs3_quADbZ8/view?usp=sharing
We need exact output when the code was run