Tag Archives: CS201

CS201 Assignment 2 Solution Spring 2018

Write a program in C++ that will ask some programming related questions () from user and rank user according his / her answers in one of following categories: Beginner level Intermediate level Advanced level For this purpose, your program will ask three questions from the user (as given in the screenshots below), record their response […]

CS201 Assignment 1 Solution Spring 2018

Write a Program which allows the user to input an integer value for a variable name Limit. Based on the input value, the program should perform the following tasks: Check whether the value entered by the user falls within the range from 10 to 150. (10 and 150 included in the given range.) Display those […]

CS201 GDB Solution 5 january to 11 January 2018

Suppose you are required to write a C/C++ program for a bank in which all transactions of a day will be compared. Keep in mind a huge volume of transactions per day: Your code should have following features: The processing speed must be high. The logic of the program must be simple. Which decision structure […]

CS201 GDB Solution Spring 2017

Graded discussion will be launched on July 13, 2017 and it will remain open for two days. You can post your comments on below mentioned topic till July 14, 2017. Graded Discussion:  A university wants to develop an application that will manage its student’s records. Application will store student’s personal information like registration no., name, address, current semester, study program and […]

CS201 Assignment 2 Solution Spring 2017

You will need to use a two-dimensional array with five rows and five columns for this assignment.   Task 1:             First of all, you will need to populate this 5×5 array with random numbers from 1 to 100. For this purpose create a function named populateArray() which will load the two-dimensional array with random numbers from […]

CS201 Assignment 1 Solution Spring 2017

Assignment Write a program that will ask the user to enter lower limit and upper limit in form of integers. The program will calculate and show the prime numbers within the range from lower limit to upper limit. All the prime numbers within the specified range should be displayed on the output. The program should […]

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 […]