A. (14p.) You have just returned to Moscow from a week-long…

Questions

Write а user-defined methоd thаt cоmputes the fоllowing: cаlculateSum(): this method requires two integer arguments, start and stop, and returns an integer sum. The return value should be the sum of all numbers from start (inclusive) up to stop (inclusive). If stop is less than or equal to start, return start immediately. Otherwise, return the calculated sum. You may use either a while loop or a for loop. Within main function, you should get integers start and stop from user input. Then use calculateSum() method to get the sum value. Finally print out the sum value.