Write a program that will ask user to enter a digit character (i.e. ‘0’ or ‘1’ .... or ‘9’). If user enters a non-digit character then the program should display message to re-enter correct input. If user enters a correct character (i.e. a digit character) then your program should convert that character to a same digit but in integer type. Do this for five inputs. Finally, add all digits and display their sum. Do not use any library function or loops.
Example:
Enter a digit-character: 8 (please note that this is to be stored in char variable)
Enter a digit-character: 6
Enter a digit-character: 0
Enter a digit-character: +
Wrong character. Please enter again.
Enter a digit-character: 2
Enter a digit-character: 7
Sum of digits is 23.
4. NaOH react completely with Al(NO3)3.
c. What mass of aluminum hydroxide is produce from 25 ml 1.0 M Al(NO3)3.
Solve for the determinant in the equation below
2 −2 1
2 2 1
4 1 3
What is the molality of a solution formed from 29.1 g of C7H8 (toluene) dissolved in a 832 g of benzene (C6H6)?
Solve for the determinant in the equation below.
4 −3 2
1 2 −2
2 -1 −4
Lead(II) sulfate formed in the reaction of 145 mL of 0.123 M lead(II) nitrate and excess sodium sulfate.
c. Calculate the mass of lead(II) sulfate formed in the reaction
2. What is the concentration of an HNO3 solution if 25.0 ml reacts with 38.5 ml of 0.145 M K2PO4?
Find the product of 101012 and 1012.
If the mean and the standard deviation of a continuous random variable that is normally distributed are 19 and 5 respectively, what is the interval that contains 95% of the distribution? *
Solve the following equation using inverse method
[1 3 0] [x] [4]
[0 0.5 1] [y]=[1]
[0.5 0 1] [z] [3]