Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please note object attribute should have private as their access modifiers will give five stars for the answer thanks in advance Problem Background Humans are
please note object attribute should have private as their access modifiers
will give five stars for the answer
thanks in advance
Problem Background Humans are expanding into space. Once a potentially suitable planet has been discovered, it is necessary to survey the planet. This is the work of an intrepid group of people known as Explorers The Explorers work from a base space ship known as the Command Ship. Once the Command Ship arrives above a planet, the Explorers carry out a number of tests on the planet, including its atmosphere, and the surrounding space to determine if the planet is suitable for human colonization. The Explorers work in vehicles that are known as Rovers Rovers are very versatile, they can operate in space, in the atmosphere and on the ground As this is just the very beginning of the development, ithas been decided to restrict the problem just 2 Rovers. Each Rover must have an Explorer assigned to the Rover before it can be assigned a mission and the Rover must not already be on a mission. When the Rover is on a mission, it is assumed that the mission is always completed. Missions may take any length of time. It is not possible to have an Explorer without there being a Rover first. lt is possible to have a Rover without an Explorer. When a Rover is first created, it is added to the Command Ship. This means, of course, that when a Rover is first added, it has no Explorer and it is not on a mission As the Rover (and the assigned Explorer) carry out more missions, the technical level of the Explorer increases. If the Explorer has carried out between 0 and 2 missions (inclusive), then their technical level is monitor f the Explorer has carried out between 3 and 7 missions (inclusive), then their technical level is flight qual f the Explorer has carried out between 8 and 11 missions (inclusive), then their technical level is aerial recon If the Explorer has carried out 12, or more, missions then their technical level is ground explorer To be assigned a mission, firstly, the Rover must have an Explorer and not be on a mission Secondly the technical level required for the mission must be within the technical level of the Explorer. An Explorer with a higher technical level can undertake a mission that requires a lesser technical level, but an Explorer cannot undertake a mission that requires a higher technical level The Explorer must have the required technical level before being assigned the mission. As soon as the Rover (and associated Explorer) are assigned a mission, the number of missions that the Explorer has carried out is incremented by 1. Note that adding 1 to the number of missions for that Explorer may move the Explorer up into the next technical level, this has to be checked To end a mission, the Rover must actually be on a mission. Problem Background Humans are expanding into space. Once a potentially suitable planet has been discovered, it is necessary to survey the planet. This is the work of an intrepid group of people known as Explorers The Explorers work from a base space ship known as the Command Ship. Once the Command Ship arrives above a planet, the Explorers carry out a number of tests on the planet, including its atmosphere, and the surrounding space to determine if the planet is suitable for human colonization. The Explorers work in vehicles that are known as Rovers Rovers are very versatile, they can operate in space, in the atmosphere and on the ground As this is just the very beginning of the development, ithas been decided to restrict the problem just 2 Rovers. Each Rover must have an Explorer assigned to the Rover before it can be assigned a mission and the Rover must not already be on a mission. When the Rover is on a mission, it is assumed that the mission is always completed. Missions may take any length of time. It is not possible to have an Explorer without there being a Rover first. lt is possible to have a Rover without an Explorer. When a Rover is first created, it is added to the Command Ship. This means, of course, that when a Rover is first added, it has no Explorer and it is not on a mission As the Rover (and the assigned Explorer) carry out more missions, the technical level of the Explorer increases. If the Explorer has carried out between 0 and 2 missions (inclusive), then their technical level is monitor f the Explorer has carried out between 3 and 7 missions (inclusive), then their technical level is flight qual f the Explorer has carried out between 8 and 11 missions (inclusive), then their technical level is aerial recon If the Explorer has carried out 12, or more, missions then their technical level is ground explorer To be assigned a mission, firstly, the Rover must have an Explorer and not be on a mission Secondly the technical level required for the mission must be within the technical level of the Explorer. An Explorer with a higher technical level can undertake a mission that requires a lesser technical level, but an Explorer cannot undertake a mission that requires a higher technical level The Explorer must have the required technical level before being assigned the mission. As soon as the Rover (and associated Explorer) are assigned a mission, the number of missions that the Explorer has carried out is incremented by 1. Note that adding 1 to the number of missions for that Explorer may move the Explorer up into the next technical level, this has to be checked To end a mission, the Rover must actually be on a missionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started