CS201 Assignment No 1 Solution Fall 2019

News Saleb-,Newspapers are usually issued daily or weekly. CS201 Assignment No 1 Solution Fall 2019, Magazine News weekly, but they also had a magazine format. Newspapers with common interests usually publish news articles and articles about national and international news as well as local news. These include news events and personalities of the political, business and finance, crime, weather, and natural hazards; health and medicine, science, and computers and technology; Sports; and entertainment, community, food and cuisine, apparel and home fashion, and the arts.

A wide range of materials have been published in newspapers. In addition to news,CS201 Assignment No 1 Solution Fall 2019 ,information and opinions expressed above, including weather forecasts; Criticism and reviews Arts (including literature, film, television, theater, art, and architecture) and local services such as a restaurant; obituaries, notices of birth and graduation announcements; Entertainment features such as crossword puzzles, horoscopes, editorial cartoons, jokes, cartoons and comics; Advice column, food, and other columns; and a list of radio and television (program schedule). In the year 2017, newspapers can also provide information about new movies and TV shows available on streaming video services such as Netflix. The newspaper has been classified ad section in which people and businesses can buy a small ad to sell goods or services; In the year 2013, a large increase in internet sites to sell goods, such as Craigslist and eBay have caused ad sales are much less classified for newspapers.CS201 Assignment No 1 Solution Fall 2019 Since 1983, it has been known mainly because of its annual report and rankings that influence in college and grad school, lies in most fields and subjects. U.s. News World Report is and academic institution is the oldest and most famous in America, [5] and covering the areas of business, law, medicine, engineering, social sciences, education and public affairs, in addition to many other areas. Print Edition] has consistently included in the list of national bestsellers, coupled with online subscriptions. Additional rankings published by U.s. News World Report and includes hospitals,CS201 Assignment No 1 Solution Fall 2019, medical and specialty cars.
CS201 Assignment No 1 Solution Fall 2019-News of the United States was founded in 1933 by David Lawrence (1888-1973), which also started the World Report in 1946. The two magazines are covering national and international news separately, but Lawrence combines them into news reports of U.S. in World and 1948 [1] and Later sold the magazine to its employees. Historically, this magazine tends to be a bit more conservative than the two main competitors, Time and Newsweek, and focus more on the story of economic, health, and education. It's also distancing news, entertainment and sports celebrities. [2] an important milestone in the history of the beginning of the magazine is including the introduction of the "Washington Whispers" column in 1934 and the column "News You Can Use" in 1952. [3] [4] in 1958, the circulation of the weekly magazine passed one million and two million in 1973. (wikipedia) CS201 Assignment No 1 Solution Fall 2019

CS201 Assignment No 1 Fall 2019

Dear Students, Here we will discuss CS201 - Introduction to Programming Assignment No 1 Solution of Semester Fall 2019. CS201 Assignment Due Date is 14 November 2019. Total Marks are 20. Lectures covered in CS201 Assignment are from 1 to 10. Moreover, Solution Code Preview and Video Explanation have also been added. Previously we shared CS101 Assignment No 1 Solution Fall 2019.


CS201 Assignment No 1 Solution and Discussion Fall 2019
CS201 Assignment No 1 Solution and Discussion Fall 2019

We are here to facilitate your learning and we do not appreciate the idea of copying or replicating solutions. Assignment Solution File has been added. Previously we share
d MGT101 Assignment No 1 Solution Fall 2019

CS201 Assignment Instructions

Please read the following instructions carefully before submitting the assignment:
It should be clear that your assignment will not get any credit if:
  • The assignment is submitted after the due date.
  • The submitted assignment does not open or file is corrupt.
  • The assignment is copied (From the internet/students).

Software allowed to develop CS201 Assignment

  • Dev C++
Also Read: DevC++ Installation and Usage Complete Guidelines

CS201 Assignment Objectives:

To enable students to understand and practice the concepts of:
  • Variables and operators
  • Loops or repetition structures 
  • If-else statements
  • Functions 
  • Random number generation
  • Control random number in a specific range

CS201 Assignment Submission Instructions 

You have to submit only.cpp file on the assignments interface of CS201 at VULMS. Assignment submitted in any other format will not be accepted and will be graded zero marks.

CS201 Assignment Question

Programming is a nice tool that can be used to make our life easier. With the help of programming, we can do many things auto-generated and efficiency. As a programmer first task of this semester is given to you is develop a console-based application for school teachers. This application will auto-generate questions for Grades 1, 2, 3, 4 and 5. Using this application teacher will be able to give different papers to each student. 

Assignment Statement:

Write a menu-based program in C++ that will take input from the user(teacher) and fulfill the following requirements.
  • There should be a menu that allows selecting the grade of the class. 
  • Created questions should be mixed type (addition and subtraction).
  • User will give the number of questions that will be generated for a paper.
  • The ratio of addition and subtraction questions is not fixed. It will random, a paper can have more questions of one type than other. See the sample output screenshot. 
  • Number of minimum and maximum digits in paper of grade 1 will be two.
  • Number of minimum and maximum digits in paper of grade 2 will be three.
  • Number of minimum and maximum digits in paper of grade 3 will be four.
  • Number of minimum and maximum digits in paper of grade 4 will be five.
  • Number of minimum and maximum digits in paper of grade 5 will be six.
  • Screen shot of the required application is given below as a simple output. 
  • Most critical requirement is, the operand (number) on left side of subtraction sign must be larger than the number on right side of sign (operator). This requirement is highlighted in sample screenshot too.
  • In the case of addition operation, the operand (number) on left side of the addition sign can be larger or smaller from the number on right side of sign (operator).  

Solution instructions:

  • Variables, loops, if-else, rand() function with % operator, functions (one which returns value and one which do not return a value) will help you to solve the problem. 
  • Use rand() function to generate a random number. You can control the range of numbers with the help of the modulus (%) operator. 
  • To use rand() function you must include “stdlib.h” header file. 
  • To control the range of random number rand() % N can help, if the value of N will be 100 then range of randomly generated numbers will be 0 to 99. 
  • If you want to control the range of random numbers between 10 to 19 then following formula will help.
  • [10 + rand() % (19 – 10 + 1)]
Sample Output:
CS201 Assignment Sample Output
CS201 Assignment Sample Output


CS201 Assignment No 1 Solution Fall 2019

You can see the Sample Preview of CS201 Assignment No 1 Solution provided by (Virtual Study Solutions) below. Click on Download Button to Download Solution File in Your PC. 

CS201 Assignment No 1 Solution Explained


CS201 Solution Code Preview

#include<iostream>
#include<stdlib.h>
using namespace std;
int minNum=0,maxNum=0;
char rsign ();
void setRange(int);
int generateNumber(int,int);
main() {
int grade=0,noOfQuestions=0,number1=0,number2=0;
char sign;
cout<<"1 : First Grade"<<endl;
cout<<"2 : Second Grade"<<endl;
cout<<"3 : Third Grade"<<endl;
cout<<"4 : Fourth Grade"<<endl;
cout<<"5 : Fifth Grade"<<endl;
cout<<endl;
cout<<"Please select grade, user numbers 1 to 5: ";
cin>>grade;

setRange(grade);

cout<<"Enter number of questions you want to generate: ";
cin>>noOfQuestions;
cout<<endl<<endl;


for(int i=0; i<noOfQuestions; i++) {
sign=rsign ();
number2=generateNumber(minNum,maxNum);
do {
number1=generateNumber(minNum,maxNum);
} while(sign=='-'&&number2>number1);
cout<<i+1<<".(";
cout<<number1<<sign<<number2<<") =_____\t";
if(grade!=5) {
if((i+1)%3==0) {
cout<<"\n\n";
}
} else {
if((i+1)%2==0) {
cout<<"\n\n";
}

}
}
cout<<endl;
system("pause");
}
int generateNumber(int min,int max) {
int number=0;
number=min+rand()%(max-min+1);
return number;
}
char rsign (){
int a=0;
char b;
a=rand ()% 2;
if(a==0){
b='+';
}else b='-';
return b;
}
void setRange(int grade) {
if(grade==1) {
minNum=10;
maxNum=99;
} else if(grade==2) {
minNum=100;
maxNum=999;
} else if(grade==3) {
minNum=1000;
maxNum=9999;
} else if(grade==4) {
minNum=10000;
maxNum=99999;
} else if(grade==5) {
minNum=100000;
maxNum=999999;
}
}

CS201 Solution Code Output Preview

CS201 Solution Code Output Preview of Fall 2019
CS201 Solution Code Output Preview of Fall 2019


Download
 CS201 Assignment No 1 Solution Fall 2019


File Name Download Link
 CS201 Assignment No 1 Solution Fall 2019.docx  Download

Meanwhile, we recommend you to read:

CS201 Past Papers Collection

Download  [  CS201 Mid Term Papers Solved by Moaaz ]  

Download  [  CS201 Past Mid Term Papers Spring 2019 

Download  [  CS201 Past Mid Term Papers Spring 2017 

If CS201 Assignment No 1 Solution Fall 2019 was helpful. Please Share it with your friends. You can also like our Facebook Page or Subscribe Us on Youtube for Latest Updates about Assignments and Past Papers.

Title :CS201 Assignment No 1 Solution Fall 2019
Source :CS201 Assignment No 1 Solution Fall 2019

News Info:


Share on Facebook
Share on Twitter
Share on Google+

Related : CS201 Assignment No 1 Solution Fall 2019

0 komentar:

Post a Comment