Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.


XYZ University needs a system for student’s courses and their semester details. A data entry operator needs to enter student’s data in to the system, and then the system will show the report of student semester information. Following data will be used by the system.

• Course code
• Course name
• Semester

The system will allow entering data for five courses at a time and will input course code along with course name, later the system will format the report in a more readable form.

Your task is to:
Write a C++ program to implement the above mentioned interface

• Your program should provide the user with options to enter data for courses along with course code. e.g.
Enter course name along with course code: CS201 Introduction to Programming

• After taking course information from user your program should prompt user to enter semester information.
e.g. Enter Semester: Fall 2016

• The program should input data for five courses and semester.
• Use structure name “course” in your program.
• Use separate functions for taking user inputs, displaying and formatting outputs.
e.g. Input Courses(),Display Header(),Display Courses(),Format Course(---) etc.

Note: Use structure to implement above program, no credit will be awarded if structure is not used.
last date 16 jan 2017

Views: 6932

Replies to This Discussion

koi solution send kr du bai .. hai koi alllah ka naik banda

cs201 assignment solution 3, complete and exect right solution

Please send in notepad or dev format.

*******

Raheel Ahmad email & cell no sharing is not allowed at the site.thanks 

In CS201 third assignment solution many peoples complain that solution is incorrect or have mistaken.

The third assignment consist on structure and structures have 3 ways to access his data and data types, same as some Dev. c++ compilers support different types to access data from structures.

If your Dev. c++ version showing errors then from the upper left corner change the compiler profile and compile the code again if the situation is same then find out the second way to access structure and data of structure or download Dev. C++ version 5.11 and check the solution output result is attached with the message…

Thank You!

Sami Zain

A member of JWH Team

Attachments:

Raheel Ahmad thanks 

#include<iostream>
#include<conio.h>
using namespace std;

struct Course{
string course_Code[5];
string course_Name[5];
string semester[5];
}; 
Course course;

void display_Header();

void Input_Course()
{
int i = 0;
while(i <= 4)
{
cout "Enter Course Name" endl;

cin >> course.course_Name[i];

cout "Enter Course Code" endl;

cin >> course.course_Code[i];

cout "Enter Semeter" endl;

cin >> course.semester[i];

i++;
}

}

void display_Courses()
{
for(int i = 0; i <= 4; i++)
{
cout course.course_Code[i] "\t" course.course_Name[i] endl;

}

void format_Course()
{
for(int i = 0; i <= 4; i++)
{
cout course.course_Code[i] "-" course.course_Name[i] "-" course.semester[i] endl;
}
}

void choices(int a)
{
switch(a)
{
case 1:
Input_Course();
display_Header();
break;

case 2:
display_Courses();
display_Header();
break;


case 3:
format_Course();
display_Header();
break;

case 4:
exit(0);

break;

}

void display_Header()
{
int a;
cout "Press 1 to Input Courses. "endl;
cout "Press 2 to Display Courses. "endl;
cout "Press 3 to Format Courses. "endl;
cout "Press 4 to exit." endl;
cin >> a;
choices(a);
}

int main ()
{
display_Header(); 
}

Although dead line is passed but for future students or any kind ov help. 

Global variables & Structure

Methods for tasks.

Attachments:

CS201 Assignment # 3 Solution

Attachments:

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service