If an ideal gas law has apressure of 7.19atm a temperature of 99.8 celcius a volume of 64.87centimetre cube. find the number of moles
Maximum Profit
You given a list of prices where prices[i] is the price of a given stock o the i th day write a program to print the maximum profit by choosing a single day to buy a stock and choosing a different day in the future to sell that stock if these is no profit that can be achieved return 0
INPUT
The input is a single line containing space seperated integers.
OUTPUT
The output should be an integer.
Explanation
in the example the given prices are 7 1 5 3 6 4
buying stocks on day two having price 1 and selling them on the fifth day having price 6 would give the maximum profit which is 6 - 1
so the output should be 5.
sample input 1
7 1 5 3 6 4
sample output 1
5
sample input 2
1 11 13 21 19
sample output 2
20
A certain gasoline weighs 46.5 lb/ft3 . What are its mass density, specific volume and specific gravity?
The specific gravity of ethyl alcohol is 0.79. Calculate its specific weight (in both pounds per cubic foot and kilonewtons per cubic meter) and mass density (in both slugs per cubic foot and kilograms per cubic meter).
A 3.5-kg computer printer is pushed at a constant velocity across a desk with a horizontal force. The coefficient of kinetic friction between the printer and the desk is 0.36.
a) Calculate the magnitude of the normal force acting on the printer.
b) Calculate the magnitude of the kinetic friction acting on the printer.
Vector A=2ti+tj-t^3k and B=sinti+costj evaluate
A..d/dt(A.B)
B..d/dt(A.A)
C..d/dt(A×B)
D..show that d/dt(A×A) is equal to zero.
String Concatenation
Disha has three strings A, B, and C consisting of lowercase letters.She also has a string T consisting only of characters 1, 2 and 3.
She wants to concatenate the three strings according to the characters in T.
Your task is to print the final output string.
Note: Formally, follow the below instructions:
* For each integer i such that 1<=i<=|T|, let the string si be defined as follows:
*Concatenate the strings s1,s2,...,s|T| in this order and print the resulting string.
Sample Input1
mari
to
zzo
1321
Sample Output1
marizzotomari
Number Game
A group of people are playing a game.They are standing and each carring a card with a number on it.These numbers in the list A. A random number S iis selected.
Find out the new list of numbers after
Sample Input1
1,2,3
1
Sample Output1
2 3
1 2
Word Rotation
Given a sentence and an integer N, write a program to rotate letters of the sentence among the words without changing the length of those words and positions of the spaces.
Input
The first line of input will be a sentence.
The second line of input will be an integer N.
Output
The output should be a single line containing the sentence by rotating the letters among the words without changing the length of the words and positions of the spaces.
Explanation
For example, if the given sentence and N are
Welcome to your first problem
5
Rotate the sentence 5 letters towards right side without changing the length of the words and position of spaces in the original sentence.
So the output should be
oblemWe lc omet oyour firstpr
Sample Input 1
Welcome to your first problem
5
Sample Output 1
oblemWe lc omet oyour firstpr
Sample Input 2
All the best
2
Sample Output 2
stA llt hebe
the following name are never used in the iupac system .1,3 dimethylpropane