Vishal is having a bunch of coins ranging from rupees 1 to 10. Help him to write program to find the sum and average of the coins that he is having using while loop.
What happens if the condition in a while loop is initially false? Explain and differentiate
between while and do while statement in ‘C’ language.
What is an expression? What are its components? Explain.
Write a program that accepts a letter grade as input and outputs the teacher’s remarks. Use
only switch, do not use any if’s. Example: If ‘A’or ‘a’, then “Excellent job!”. If ‘F’ or ‘f’, then “You
failed. Please study more next time”.
Write a program that takes as input a class score. Output the grade for the class based on the
following guideline:
Exactly 100 is A+
90and above is A
80 and above is B
70 and above is C
60 and above is D
Anything less than 60 is F
Anything more than 100 or less than 0 is invalid input.
test the series : infinity sigma n=1 (-1) ^n-1 sin nx/n√n for absolute and conditional convergence
A water sample is not alkaline to phenolphthalein however 25ml of the sample on titration required 4.5ml , 0.02N HCL for methyl orange end point. Determine the types and amount of alkalinity present in the sample? (Find P&M, amount of alkalinity)
In 2018, the braking distance of Toyota Camry cars on a wet surface follows a normal distribution. Its mean is 122 feet with a standard deviation of 20 feet. What is the probability that a randomly selected Toyota Camry will have a braking distance of more than 130 feet?
Given an integer N as input. Write a program the yellow right-angle pattern of N lines as bellow.
Note:There is a space after each asterisk (*) Character.
Input
The first line is an integer N
Explanation
In the given example the yellow right angled triangle of side 5 .Therefore, the output should be.
*
* *
* *
* *
* * * * *
Sample Input 1
4
Sample Output 1
*
* *
* *
* * * *
you cannot use built-in functions or NumPy or Pandas!
1. Write a function which finds all Pythagorean triplets of triangles whose sides are no greater than a natural number N.
2. Given a list of integers, write a function that finds the smallest and the largest value of this list. Given a list of numbers, write a function which finds their standard deviation