Write a program that has a method commonPre (String str1, String str2) that
returns the common prefix of two strings. For example, the common prefix of “distance” and
“disinfection” is “dis”. If the two strings have no common prefix, the method displays “No
common prefix”. The user should be prompted to enter two strings in JOptionPane and
display their common prefix, if any. Use JOptionPane for all inputs and outputs.
The crank OP of a crank- and slotted-lever mechanism rotates at 100 rpm in the counter-clockwise direction. Various lengths of the links are OP = 90 mm, OA = 300 mm, AR = 480 mm and RS = 330 mm. The slider moves along an axis perpendicular to AO and is 120 mm from O. Determine the velocity of the slider when the AOP is 1350 .
Write a program that defines five integer variables and initializes them to I. 10, 100, 1000, and 10000 and prints them on a single line separated by spaces.
A taho vendor carries a 1.5 m long light plank over his shoulder. At the ends of the plank are two buckets weighing 40 N and 60 N respectively. (a) Find the value of force F exerted by his shoulder. Neglect the weight of the plank. ( b) Where should he support the plank for it to be balanced horizontally ( refer to FIG 1)
It takes 4 hours to drive a distance of 150 km in car.create a program to calculate the average speed in km/h
To print 3 digit number and peint the digit of the number in reverse order
write a programm to print hard if any carry in addition of two given numbers otherwise print easy.
functions of the cytoskeleton
Write a console program that will output "multiplication tables" for the digits 1-10 multiplied by 1-10. Your output will look like this:
1 2 3 4 ...
2 4 6 8 ....
....
7 14 21 28 ....
etc.
This is best done with a loop inside a loop.
Include comments telling what each line does and who wrote the program and its purpose.
Since this is a console program I only need the .cs file. Be sure to include your name in the filename. I don't want 20 programs named mult1.cs.
to input a number and print all numbers from 30 to 60 that is divisible by the input number