Answer to Question #242485 in C++ for c++

Question #242485

Write a c++ program to request the student registration number, the student name, the course and the age, and display them all to the user


1
Expert's answer
2021-10-01T01:32:08-0400
//Write a c++ program to request the student registration number, the student name, the course and the age,

// and display them all to the user

#include <iostream>




using namespace std;




int main()

{

  int regNo,age;

  char name[50],course[50];

  cout<<"\t\t*********************************"<<endl;

  cout<<"\t\tEnter the student information"<<endl;

  cout<<"\t\t______________________________"<<endl;

  //Request the the student registration number, the student name, the course and the age

  cout<<"Enter the student Registration number: "; cin>>regNo;

  cout<<"Enter the Student Name: "; cin>>name;

  cout<<"Enter the Course: "; cin>>course;

  cout<<"Enter the student age: "; cin>>age;




  //display the student inputs all to the user

  cout<<"\n\nStudent Registration\t\tStudent Name\tCourse\t\tAge"<<endl;

  cout<<regNo<<"\t\t\t\t"<<name<<"\t\t"<<course<<"\t"<<age;

  return 0;

}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS