0

Hello Everyone! Please Help me on my C++ Program it's kinda buggy and full of errors. I hope someone can help me~ Thanks in Advance! :D

#include <iostream>
using namespace std;

int main()
{
  int stun;
  float NUO, APU, IA, DP, Bal;

   cout<<"Student Record\n\n"; 


  cout << "Student Number: "; 
  cin >> stun;


  cout << "\nStudent Name " << endl;

  char FN [50];
  cout << "\nFirst Name: ";
  cin >> FN;

  char LN [50];
  cout << "\nLast Name: ";
  cin >> LN;

  char Cou [4];
  cout << "\nCourse: ";
  cin >> Cou;

  cout << "No. of Units Enrolled: ";
  cin >> NUO;

  cout << "Amount Per Unit: ";
  cin >> APU;

  IA = NUO*2;
  cout << "Initial Amount: " << IA << endl;
  DP = IA / 2;
  cout << "Deposit: " << DP << endl;
  Bal = IA / 2;
  cout << "Balance: " << DP << endl;

  return 0;

}
2
Contributors
1
Reply
2
Views
4 Years
Discussion Span
Last Post by Ancient Dragon
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.