Assignment GDB Solution: CS201 Introduction to Programming

loading...

CS201 Introduction to Programming GDB Solution Feb 2015

GDB Scenario: Every programming language provides different features to make coding task easy. One of the main objectives is to keep things simple as possible. You have studied C++ in this course and have learnt many different concepts e.g. input/output, if-else statements, loops, arrays, functions etc. Looping constructs are needed when a statement or a block […]

CS201 Introduction to Programming Assignment 2 Solution Fall 2014

Assignment Description This assignment is based on our previous assignment and you can use solution of Assignment#1 as a startup code. In Assignment#1, user was asked only once to guess the random number generated by computer. Here, you are required to enhance its capability by introducing three levels (Beginner, Intermediate, and Advance). The range and […]

CS201 Introduction to Programming Assignment 1 Solution Fall 2014

Assignment Description In this assignment, you are provided with a small and simple game like program attached with this assignment named as “GuessGame.cpp”. Your job is to slightly modify this code as desired in this assignment. First, you need to understand the working of the given code and execute it in Dev-C++. This program essentially […]

CS201 Introduction to Programming GDB Solution Spring 2014

GDB topic: Is it more expensive to use too many static variables instead of ordinary variables? If yes, then how? Your answer must be concise and not be more than 200 words. Note: Keep you comment brief and to the point, GDB will not be accepted through email in any case. Solution: it would be more […]

CS201 Introduction to Programming Assignment 2 Solution Spring 2014

Assignment Problem Statement: You are required to write a C++ program which contains a class studentInfo having following data members: Student ID Course ID Course Name The class must have the following member functions: • Parameterized constructor • Setter functions • Getter functions • Display function Detailed Description: Parameterized constructor: It should take three strings as arguments […]

CS201 Introduction to Programming GDB Solution Fall 2013

Does separation of interface from implementation within classes provide advantage?  If yes, then how. Note: Keep you comment brief and to the point, GDB will not be accepted through email in any case. Solution: Advantages of seperating interface/implementation? I think there are two different meanings of “separating interface from implementation” going on here. One meaning is header files vs. […]

CS201 Introduction to Programming Assignment 2 Solution Fall 2013

Problem Statement:     Write a program using class(constructor, destructor, other member functions) to find the frequency of letters (small and capital alphabet or digit) from your student id character string. For example, frequency of letter ‘4’ in the string of a student id: “MC124514517” is 2. Detailed Description: You are required to write a program which […]

CS201 Introduction to Programming Assignment 1 Solution Fall 2013

Objective: The objective of this assignment is to provide hands on experience of: Basic concepts of C/C++ language and Programming Dealing with Data types Repetition Structures (Loops) Switch statement Saving a program Compiling a program Executing the program Guidelines: Code should be properly indented and well commented. Follow C/C++ rules while writing variable names, function […]

CS201 Introduction to Programming GDB Solution Spring 2013

Dynamic memory allocation by using pointers provides an efficient way of utilizing computer memory but such memory allocation may be problematic if not handled properly in program Solution: I do agree with this statement, pointer is a powerful feature of c++ and we all know the power can swing both sides good and evil. Pointer if used incorrectly leads to very difficult […]