Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Programming Language in Python GAME: WWII Submarine Warfare. Assuming that you are the captain of a submarine and you have a target ahead of you.
Programming Language in Python
GAME: WWII Submarine Warfare. Assuming that you are the captain of a submarine and you have a target ahead of you. You choose a torpedo type and let's assume the distance between your submarine and the target is constant (20 rows for weapon travelling or range). When the target is not aware of danger it sails at normal speed (N), but when realizes hazard, it changes to zigzag pattern (Z). Your program should solicit firing position (assuming the ocean wide is 40 columns and the movement of both your submarine and the target is from left to right), torpedo type (of your design as long as not straight which is too simple), target speed (N or Z) and run a simulated torpedo in-the-water trajectory to predict performance. Anything not defined you may enhance. Make sure you stipulate clear before the user press the keys. Reject all bad input format as usual.
Then continue the WWII Submarine Warfare game and this time the submarine is approaching from right to left (not left to right played in
Program Language in Python
Step 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