Menu

[solved]-Write Output Following Program 1 Manually Executing Program Paper 2 Running Programming Ec Q39066371

Write the output of following program 1) by manually executing the program on paper. 2) By running the programming on eclipsedouble CPI=170; System.out.println(year++GDP++CPI): CPI=2*CPI; public static void EconomyGrows() double_CPI=175; double_GWrite the output of following program 1) by manually executing the program on paper. 2) By running the programming on eclipse. Compare the two outputs and make a comment on the difference, if any, between two outputs. Be honest to yourself while solving this question. Program: public class Question01 { static double GDP=644.64; public static void main(String[] args) { double CPI=160; int year=2009; showData(); year-2010; CPI=170; Economy Grows(); showData(); year=2014; EconomyGrowsAgain(); show Data(); public static void showData() int year-2019; double CPI=170; System.out.println(year+””+GDP+””+CPI): CPI=2*CPI; public static void EconomyGrows() double_CPI=175; double_GDP=2*GDP; GDP=771.9; double CPI=170; System.out.println(year+””+GDP+””+CPI): CPI=2*CPI; public static void EconomyGrows() double_CPI=175; double_GDP=2*GDP; GDP-771.9; public static void EconomyGrowsAgain() GDP=934.19; /Write here MANUALLY calculated output //Your comments on difference, if any, between two outputs. /Write here the output generated by running the program in Eclipse Show transcribed image text Write the output of following program 1) by manually executing the program on paper. 2) By running the programming on eclipse. Compare the two outputs and make a comment on the difference, if any, between two outputs. Be honest to yourself while solving this question. Program: public class Question01 { static double GDP=644.64; public static void main(String[] args) { double CPI=160; int year=2009; showData(); year-2010; CPI=170; Economy Grows(); showData(); year=2014; EconomyGrowsAgain(); show Data(); public static void showData() int year-2019; double CPI=170; System.out.println(year+””+GDP+””+CPI): CPI=2*CPI; public static void EconomyGrows() double_CPI=175; double_GDP=2*GDP; GDP=771.9;
double CPI=170; System.out.println(year+””+GDP+””+CPI): CPI=2*CPI; public static void EconomyGrows() double_CPI=175; double_GDP=2*GDP; GDP-771.9; public static void EconomyGrowsAgain() GDP=934.19; /Write here MANUALLY calculated output //Your comments on difference, if any, between two outputs. /Write here the output generated by running the program in Eclipse

Expert Answer


Answer to Write the output of following program 1) by manually executing the program on paper. 2) By running the programming on ec… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *