Solved

For a Program That Reads City Names Repeatedly from the User

Question 62

Multiple Choice

For a program that reads city names repeatedly from the user and calculates the distance from a company's headquarters, which of the following would be a good design based on stepwise refinement?


A) Write one method that calculates distance randomly.
B) Write one method that reads city name.
C) Write one method that reads city name and another method that calculates distance.
D) Write one method that reads distance and finds city name.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents