We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs files as you receive in your LMS, So it can be discussed/solved timely. Files Upload Here.

Instructions:

Please read the following instructions carefully before submitting assignment. It should be clear that your assignment will not get any credit if:

 

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • Assignment is copied(partial or full) from any source (websites, forums, students, etc)

 

Note: You have to upload only .cpp file. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks. For example, if you submit code in .doc (Word document) or .txt files or .exe file, no reward will be given in any case.

 

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
  • Conditional statements of C/C++ language
  • Repetition Structures (Loop)
  • Switch statement

 

 

Guidelines:

 

  • Code should be properly indented and well commented.
  • Follow C/C++ rules while writing variable names, function names etc
  • Use only dev-C++ for this assignment.

Assignment:

Problem Statement:     

 

You are required to write a C++ program using loop and switch statement. The program should display even or odd numbers from 1 to 50 depending upon the option given by the user.

 

 

Detailed Description:

 

The program should prompt the user for one character option (either ‘e’, ‘E’ or ‘o’, ‘O’).   

 

It should respond in the following ways:

  • If user enters character option ‘e’ or ‘E’ then it should display the even numbers from 1 to 50.
  • If user enters character option ‘o’ or ‘O’ then it should display the odd numbers from 1 to 50.

 

Sample output of the program:

If user enters ‘e’ then it displays the even numbers from 1 to 50. 

If user enters ‘E’ then it displays the even numbers from 1 to 50. 

If user enters ‘o’ then it displays the odd numbers from 1 to 50. 

If user enters ‘O’ then it displays the odd numbers from 1 to 50. 

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 5161

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

Muhammad Arshad brothr dwnload dev frm ur lms nd fr compilng c++ cod u dont ned any notepad.

jst submit ur fil in .cpp whch iz the extension of dev's filz.

Thanks Brother

so nice of you

cout "Enter your choice : ";

cout "Even numbers from 1 - 50 \n\n";

cout i " ";

these are still givig errors ...............

maha khan u uzed angle bracket wrong.

check the atached fil:

Attachments:

mein ne assignment submit kar de

Thank GOD

which of the two files project or source require submit on lms

source

RSS

Latest Activity

+ ! ! ! ! Mehαr Mαh꧂ liked + M.Tariq Malik's discussion PSY101 Introduction to Psychology Assignment No 01 Fall 2019 Solution & Discussion
4 minutes ago
+¢αяєℓєѕѕ gιяℓ posted discussions
12 minutes ago
+ ! ! ! ! Mehαr Mαh꧂ replied to + ! ! ! ! Mehαr Mαh꧂'s discussion Assignment #1 MCM511 Theories of Communication fall 2019 in the group MCM511 Theories of Communication
29 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Mera tu Mohabbat se aitbar.............:-P
34 minutes ago
+ ! ! ! ! Mehαr Mαh꧂ liked + ! ! ! ! Mehαr Mαh꧂'s discussion Assignment #1 MCM511 Theories of Communication fall 2019
36 minutes ago
+ Iuuoɔǝut + posted discussions
1 hour ago
彡JK彡 ❤️ replied to Aijaz khan's discussion CS510 Assignment Fall 2019 Need Solution
3 hours ago
彡JK彡 ❤️ liked Aijaz khan's discussion CS510 Assignment Fall 2019 Need Solution
3 hours ago
Aijaz khan posted a discussion
5 hours ago
HaMza Tufail added a discussion to the group CS519 Final Project
6 hours ago
HaMza Tufail joined + M.Tariq Malik's group
6 hours ago
Fatima joined + M.Tariq Malik's group
7 hours ago
Adnan Hafeez replied to MIT's discussion Visual Programing (CS411) Assignment#01 Deadline Date = 18-11-2019 in the group CS411 Visual Programming
8 hours ago
Shine--Ex-VUStudent liked ١ دن's discussion زندگی گزارنے کا فارمولا
8 hours ago
HaMza Tufail added a discussion to the group CS420 Web Development for Portable Devices
8 hours ago
HaMza Tufail updated their profile
9 hours ago
١ دن replied to + Iuuoɔǝut +'s discussion بعد مُدت اُسے دیکھا، لوگو
9 hours ago
HaMza Tufail joined + M.Tariq Malik's group
9 hours ago
Biya liked + Iuuoɔǝut +'s discussion بعد مُدت اُسے دیکھا، لوگو
9 hours ago
Biya liked UMER UMER's discussion images111.jpg
9 hours ago

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

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