A drone flight monitoring system is writing a program to calculate a drone's remaining battery energy reserve (in Wh) across a flight consisting of three separate segments. The total capacity of the battery is 500 Wh.
If any high-wind gusts are encountered during the flight, the remaining energy reserve is further reduced.
Write a VB.NET program to calculate the final remaining energy reserve.
You should assume there are three integer variables called s1, s2, and s3 which have already been declared and given values representing the energy consumed (in Wh) during each of the three flight segments.
The program should:
You should use meaningful variable name(s) and VB.NET syntax in your answer.
298 exam-style questions on AQA GCSE Computer Science Programming concepts. Each one has a worked solution and a mark scheme showing where the marks go.