Answer to Question #182379 in C++ for mia

Question #182379

Write a complete program to allow the following data processing:

i. Declare the variables (name, program code, part, CGPA).

ii. Ask the user the data of name, program code, part, and CGPA.

iii. Display the data in a proper format.


1
Expert's answer
2021-04-17T03:07:02-0400
#include <iostream>
 
using namespace std;
 
int main() {
   char name[50];
   int program_code,cgpa,part;
 
   cout << "Please enter your name: ";
   cin >> name;
   cout <<  "enter your program code:";
   cin>>program_code;
   cout << "enter your part:";
   cin >> part;
   cout << "enter your cgpa:";
   cin>> cgpa;
   
   cout << "Your name is: " << name << endl;
   cout << "Your Program code  is: " << program_code << endl;
   cout << "Your part is: " << part << endl;
   cout << "Your  is: " << name << endl;
 
}

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