68.1k views
4 votes
A computer program outputs whether a capital city in Europe is north or south of another capital city in Europe. It only needs to know the latitude of the two cities – the other detail is unnecessary. This is an example of abstraction; including the necessary detail and not including the unnecessary detail.

A computer program outputs whether a capital city in Europe is north or south of another-example-1
User Mike Webb
by
7.5k points

1 Answer

3 votes
Program brief :

City = input(“Enter a city in Europe”)Latitude=input(“Enter the Latitude ofthe city”)

If Lattitude ==
User Tio Pepe
by
7.8k points