CS201 Assignment 1 Solution Spring 2023 Download: Today we are sharing with cs201 assignment 1 solution 2023 please do not copy paste directly do some changes and download file now.

### CS201 assignment 1 solution spring 2023

When an object falls 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^2

Where dis the distance in meters, g is 9.8(constant of gravity) and t is the amount of time, in seconds, that the object has taken to fall.

A function fallingDistancewhich:

Accepts an object’s falling time(in seconds) as an argument. Calculates the distance, in meters, that the object has fallen in that time. Returns this calculated distance.

In themain() function there is a:

A loop struct in which: the function fallingDistanceis calledpassing data given in the table. Sum of all these distances is calculated.

### Important Instructions:

You have to submit only.cpp file on the assignments interface of CS201 from your LMS account. Assignment submitted in any other format will be scaled with zero mark. So, check your solution file format before submission.