I am new to programming, I really want to learn C++. My teacher gave us this assignment and I am so lost. Can someone please help me with this. I not only want to pass the assignment I want to understand the code. Below is my assignment.
**************************************************************
* Welcome to our enrollment growth calculator! *
* The application requests enrollment data from the user for *
* semesters: Fall and Spring. *
* Then the application calculates percentage of growth from *
* Fall to Spring semester. *
**************************************************************
* Please type the number of students enrolled for Fall *
**************************************************************
3414
**************************************************************
* Please type the number of students enrolled for Spring *
**************************************************************
4265
Your percentage of growth from Fall to Spring semester is
24.93%
Note, that the application assumes that the second figure will be larger than the first.
To calculate percentage of growth use:
/**
* @file Assignment2.cpp
* @description Your description of the program.
* What does the program do?
* @course ************************
* @assignment 1
* @date 02/01/2010
* @author ************************
* @version 1.0
*/
#include <iostream>
using namespace std;
/**
*
*/
int main() {
students enrolled for fall , number of students enrolled for spring , percentage;
cout << "3414:";
cin >> "studentsfall";
cout << "4265:";
std::cin >> "studentspring";
percentage = ((4265 -3414) / 3414) * 100;
cout << "The percentage is: " << 24.93 << '\n';
return 0;
}