String Concatenation
string concatenation program contains first line of input contains the string a, second line of input contains the string b, third line of input contains the string c and fourth line of input contains the string t
for example, we have a=mari , b=to, c=zzo, and t=1321.
concatenate these in the order a+c+b+a and print the resulting string: marizzotomari as the output.
How does the monopolist determine price under third degree price discrimination?
Write a program to enter the numbers till the user enter ZERO '0' and at the end it should display the sum of numbers entered.
bulb states pattern
bulb states pattern program contain input is a single line containing a positive integer n representing the number of rooms in the building and the output should contain n lines , each line containing the state of the bulb in the room numbered from 1 to n in the form of 0 and 1.
example:
input: 5
Explain whether or not, why, and how the following items are included in the calculation
of GDP?
a) Suppose that the appliance store buys a refrigerator from the manufacturer on December 15, 2016
for Tk. 25,000, and that you then buy on August 5, 2017 for Tk. 40,000. What is the contribution to
GDP in fiscal year FY 2017 (July 2016 to June 2017)?
A 25 kg child is sitting on a 10 kg sled. The child’s older sister is pulling the sled horizontally across the snow at a constant speed of 4 m/s by pulling on a rope with a force of 25 N at an angle of 30o above the horizontal.
[4] a. Draw all appropriate diagrams for the situation.
[3] b. Find the normal force acting on the sled.
[3] c. Find the magnitude of the force of friction between the sled and the snow.
Write a program to take a String as input then display the words in one column, its length in another column, replace the first with last character of each word in third column.
Enter a String
a is the first vowel
a 1 a
is 2 si
the 3 eht
first 5 tirsf
vowel 5 lowev
Hint: Use length(), indexOf(), substring() if required.
Array & split are not to be used
A population consists of the five measurements 1, 3, 4, 6, and 8. Suppose samples of size 3 are drawn from this population.
Construct a table, solve for the mean, variance and standard deviation.
At what distance from this particle does its field have a magnitude of 12.0 N/C
Number of times the first card is face card and the second card is not face card