### C# Console Programming

Questions Case Study/ Scenario Scenario (all names and details appearing in the scenario below are entirely fictional) You are employed in a Games development company as a junior software engineer. As part of your role you will need to produce Pseudo-code/Flowcharts for a number of mathematical operations and functions. You are also required to write code and design programming solutions for such operations and functions. LO1: Understand core mathematical skills for software engineers 1.Pythagoras' theorem, is a fundamental relation in Euclidean geometry among the three sides of a right triangle. Design and implement a programming solution for the following geometric and trigonometric questions:
(a) A flagpole broke in a storm. 7 meters are still sticking straight out of the ground, where it snapped, but the remaining piece has hinged over and touches the ground at a point 24 meters away horizontally. How tall was the flagpole before it broke?[P1.2]
(b) Find the Hypotenuse (h) when C1 is 40 cm and C2 is 20 cm in the diagram below and find the area of the shape. [P1.2]
(c) You are required to design a program (using pseudocode or flowchart diagram)that will calculate the volume of a cuboid, rectangle and a square considering user inputs.[ M1]

Solution:

1. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Captain { public class Program { public static void Main(string[] args) { double h, C1, C2, sqh, b; Console.WriteLine("Enter height of flagpole sticking out from ground");