Ask your own question, for FREE!
Computer Science 24 Online
OpenStudy (anonymous):

anyone can help me how to write the pseudocode for this problem? in eisntein's famous equation E=mc^2,the energy E is in joules if the mass,m is in kilograms and c is the speed of light in metres per second(=2.9979x10^8).write the pseudocode that uses a subprogram to calculate the energy equivalent of a given mass.roughly how much energy is equivalent to the mass of a sugar cube (approximately 1 gram)

OpenStudy (anonymous):

Declare the variable e(Energy) Declare the variable m(mass) Declare and define your constant c(Speed of light) Prompt the user for the mass 'm'(For good programming practice validate the input and make sure it is a valid number) Make your calculation, and store the result in 'e' Finally print OR return e(The energy of the substance)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!