Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Figure 1: Debug > Default ENGR11 X Program.cs SubmersibleVehicle > M. Main(string args) using System; class SubmersibleVehicle static void Main(string args) DO YOUEWNH Console. WriteLine(Hello,
Figure 1:
Debug > Default ENGR11 X Program.cs SubmersibleVehicle > M. Main(string args) using System; class SubmersibleVehicle static void Main(string args) DO YOUEWNH Console. WriteLine("Hello, Angelo Yurche!") ; // Define constants float gravity = 9.81f; // [m/s^2] 10 float waterDensity = 1020. of; 11 8 float T1 = 15. of + 273. of; 12 float P1 = 101325. of; 13 float gamma = 1.4f; 14 15 // Define variables int numCalculations; float depth; float P2; float T2; float atm; // Prompt user to input the number of calculations Console. Write("Enter the number of times you want to calculate: ") ; numCalculations = Convert. ToInt32(Console . ReadLine()) ; for (int i = 1; i 1000) Console . WriteLine("\ Warning: You are in the deep ocean!"); else Console. WriteLine("\ You are in relatively shallow waters. ") ; Console. ReadLine(); // Wait for user to close the program Console. ReadLine(); // Wait for user to close the programusing System; class SubmersibleVehicle static void Main (string args) Console. WriteLine ("Hello, Angelo Yurche!") ; // Define constants float gravity = 9.81f; // [m/s~2] float waterDensity = 1020.0f; float T1 = 15. Of + 273.0f; Float P1 = 101325.0f; float gamma = 1.4f; // Define variables int numCalculations; float depth; float P2; float T2; float atm; // Prompt user to input the number of calculations Console. Write("Enter the number of times you want to calculate: ") ; numCalculations = Convert. ToInt32 (Console. ReadLine ( ) ) ; for (int i = 1; i 1000) Console. WriteLine ("\ Warning: You are in the deep ocean!") ; } else Console.WriteLine("\ You are in relatively shallow waters.") ; Console. ReadLine(); // Wait for user to close the program Console. ReadLine( ); // Wait for user to close the program5 > Assignments 4.3 , Course Project: Checkpoint 4 100 Possible Points Due: Sun Sep 3, 2023 11:59pm \\ In Progress NEXT UP: Submit Assignment Attempt 'l litTN" Add Comment Unlimited Attempts Allowed V Details Course Project: Checkpoint 4 I Assignment Checkpoint 4 is a continuation of the Course Programming Project. This module week you will optimize the existing project code by using arrays and methods. Review the material in activity 4.1.1 for basic concepts and application of arrays and methods. You will start to use methods for repetitive tasks, like checking for the correct input. Document your test results. Foolproof the code by disallowing improper input values and display an error message while giving the usera chance to repeat the input. Document your test results. To read the directions for this project, refer to the Checkpoint Course Proje_ct page. Using ChatGPT Al to Support the Assignment (Under Development) If you have any questions along the way, do not hesitate to ask your instructor in the Online Ofce. A Warning: The primary objective for this week is to apply arrays and methods. Do not use nested methods or classesStep 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