www.vustudents.ning.com

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

# ,;Assignment # 1 has been uploaded due date of assignment submission is 16th May, 2016.

Views: 2413

Attachments:

### Replies to This Discussion

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.

# CS201 – Introduction to Programming Assignment No. 1 Due Date: May 16, 2016

Instructions

It should be clear that your assignment will not get any credit if:

• Assignment is submitted after due date.
• Submitted assignment does not open or file is corrupt.
• Assignment is copied (From internet/ to from students).

Software allowed to develop Assignment

-          Dev C++

Objectives:

Student will be able to analyze and implement the concepts of:

• Writing, compiling and executing a program in DevC++
• Variables and operators
• Decision structures
• Repetition structures
• Functions

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.

Assignment

Write a c++ program that will:

• Provide 2 options to the user as below:

ü  Enter 1 to calculate the area of Rectangle

ü  Enter 2 to calculate the area of a Trapezoid

• If the user enters 1, then the program should ask the user to enter the width and lengthof the rectangle and then show the result after calculation. Formula for calculating Area of rectangle is

Area = width x Length.

• If the user enters 2, then the program should ask the user to enter the base1, base2, and height of the trapezoid and then show the result after calculation. Formula for calculating Area of trapezoid is

Area =

• You must implement two different functions for calculating areas of rectangle and trapezoid.
• After taking the choice from the user in form of 1 or 2, the relevant function should be called.
• After showing the output to the user, you need to ask the user if he/she wants to do another calculation. If the user presses y or Y, then the program should ask the user again to enter the choice of shape otherwise the program should be terminated.

Your assignment must be uploaded on or before May 16, 2016. We shall not accept your solution through email after the due date.

Rectangle area ::

how will calculate

assignment mai

likha hoa

Here is correct solution, comment it and change variable names for any help contact me

Attachments:

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

I have done the assignment and the output is all fine as well but the problem I am facing is I am unable to declare and call right function...
Working on it
Will surely post the solution when I would be done with that

Best Regards

okay thank You taurus sir

me ny bhi abi ni dekhi assignment :P dekh k discuss kr lengy

HERE is Complete solution

Attachments:

thantu Asim chachu weshy inna Asim Asim likhny ki kia jalolat thi :P

# cs201-Assignment # 1(Complete Solution)

http://vustudents.ning.com/group/cs201introductiontoprogramming/for...

1

2

3

4

5

## VIP Member Badge & Others

------------------------------------

## Latest Activity

3 minutes ago
Laila kabeer posted a discussion

### !!!!!!MAAN...BAHROSA!!!!!..

5 minutes ago
11 minutes ago
1 hour ago
+ ! ! !★ "Areena"★✓ and Anu Shay are now friends
1 hour ago
ልጠክል ጌዘልፕፕጎ liked + ♥ Haniya khan's discussion (Bal-e-Jibril)
1 hour ago
Z@¥¥@N R@JPuT posted a discussion

1 hour ago

1 hour ago