Starting Out With Visual C# - Falling Distance Calculator (Intro To Visual C#) - Windows Forms
ฝัง
- เผยแพร่เมื่อ 9 พ.ย. 2024
- The following exercise are just a small sample of exercises taken from my new course “Starting Out With Visual C#: Coding Exercises for Beginners”.
The course goes over every exercise (95 altogether) from the popular C# textbook "Starting Out With Visual C#" by Tony Gaddis.
bit.ly/2o8SuY8
This is a beginner's course to coding Windows Forms using C#. We start with basic exercises building Windows Forms GUI, and then move on to conditional statements, loops, collections, classes and objects, and databases.
I lead you through a complete solution to every exercise, and of course, provide all source code to each solution.
I am offering a 70% discounted introductory price of just $10. Just use the coupon code "CsharpYT10" at checkout, or click here:
bit.ly/2o8SuY8
The course is a large collection of C# WinForm exercises, perfect for those studying C# at school, those who are self-taught and want to put theory into practice, those who know some C# but are not familiar with WinForms, and those, who believe the saying "practice makes perfect".
Hope to see you at the course.
Falling Distance When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period:
d = 1/2 gt(pow of 2)
The variables in the formula are as follows:
d is the distance in meters,
g is 9.8,
and t is the amount of time in seconds that the object has been falling.
Create an application that allows the user to enter the amount of time that an object has fallen and then displays the distance that the object fell. The application should have a function named FallingDistance. The FallingDistance function should accept an object’s falling time (in seconds) as an argument.The function should return the distance in meters that the object has fallen during that time interval.