Mr. Oreki pls tell the variable descriptions for both the programs asked by me..
Share
Mr. Oreki pls tell the variable descriptions for both the programs asked by me..
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Program 1 -
Class/Method Name Variable Name Data Type Uses
Calculator result int To store result.
add a int To accept the number to be added.
sub a int To accept the number to be subtracted.
mul a int To accept the number to be multiplied.
div a int To accept the number to be divided.
Program 2 -
Class/Method Name Variable Name Data Type Uses
Number num int To store a number.
x int To initialise num variable.
reverse n int To accept the number to be reversed.
number int To store and return the reversed number.