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 1 :- 5
output 1 :-
0 1 0 1 0
0 1 0 1 0
0 1 0 1 0
0 1 0 1 0
0 1 0 1 0
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 input 1:- 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 1.
input 2 :- a= nano, b=of, c=rano, and t= 2131
output 2 :-ofnanoranonano
The internal pH of a muscle is 6.8. Calculate the [H2PO4-]/[HPO42-] ratio in the cell. The second dissociation constant of phosphoric acid is 6.31x10-8
An element with mass 730 grams decays by 28.8% per minute. How much of the element is remaining after 10 minutes, to the nearest 10th of a gram?
Create a class called Student, with the following attributes/variables:
a. studentName (String)
b. studentNumber (int)s
c. regYear(long)
d. faculty(String)
e. department(String)
Create a class called Rational for performing arithmetic with fractions. Write a program to test your
class. Use integer variables to represent the private instance variables of the class—the numerator and
the denominator. Provide a constructor that enables an object of this class to be initialized when it’s
declared.
Given the utility function U =10Q1Q2 and relative prices of P1= ₦20, P2 = ₦10 and consumer money income of ₦400. You are required to determine the units of each commodity to consume at the equilibrium point.
A Average Senior high school annual cost of tuition fee for all private schools last year was php 43.700. a random sample of cost this year for 45 private schools indicated that the sample mean was 45,800 and a sample standard deviation was php5,600.at level of significance, is there sufficient evidence to conclude that the cost increased?
if the change in resistance of copper wire on stretching is 4%, then its length is stretched by
Suppose a nation's 2003 nominal GDP was $972 billion and the general price index was 90. To make the 2003 GDP comparable with the base year GDP, calculate the 2003 GDP.