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.

CS201 Assignment No 01 Solution & Discussion Due Date:17-11-2016

CS201 Assignment No 01 Solution & Discussion Due Date:17-11-2016

Views: 5549

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.

It is simple complete the assignment while using dev c++. Do the coding according to the given details and output which they want. Once you are done compile and check the file. if you are confident then submit that .cpp file on LMS. Make sure file is not in any other format or is corrupted

plz help dont have an idea i m pretty confused

CS201 Assignment No 1 Complete Solution (Fall 2016)

#Zain humay ye programming karne k lie konsa application system mein install karna hoga? C++ compatible with this assignment and others as well..

this prog is not working at all

pls discuss the main points not a solution ..

thanks brother...

Dear Students Take Ideas from each other and solve yourself.......Assignments are not for getting solutions only....they are used for your study to boost up your thinking capabilities....If you present a self made Solution ....even if it is wrong....u will get some marks for attempt.....

Thanks You Sir (Y)

#include <iostream>
#include <stdlib.h>
using namespace std;

void AreaRect()
{
float x, y;
cout"\n\nEnter width of rectangle: ";
cin>>x;
cout"Enter length of rectangle: ";
cin>>y;
cout"The Area of rectangle is: "x*yendlendl;

}

float AreaTrap()
{
float base1, base2, height, tarea
cout"\nEnter base 1 of trapezoid: ";
cin>>base1;

cout"Enter base 1 of trapezoid: ";
cin>>base2;

cout"Enter height of trapezoid: ";
cin>>height;
tarea = ((base1+base2)/2)*height; // formula Area= ((b1 + b2)/2)*h
cout"\nThe Area of Trapezoid is: "tareaendlendl;
}

main() // functio to choice
{
int choice;
char repeat = 'y';
while(repeat=='y' || repeat=='Y')
{
cout"\n\nEnter 1 to calculate area of Rectangle"endl;

cout"Enter 2 to calculate area of Trapezoid\n"endl;

cin>>choice;

switch(choice)
{
case 1:
AreaRect();
break;

case 2:
AreaTrap();
break;
default:

cout"\nInvalid Choice!\n";
}
cout"Do you want another calculation?: ";
cin>>repeat;
}
system("pause");
}

Top Trends

1

2

3

4

5

Z@¥¥@N R@JPuT

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

Latest Activity

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

49 minutes ago

53 minutes ago

Tun batye ga Ishaq hai kiya

55 minutes ago
Z@¥¥@N R@JPuT liked ♥Sυɠαɾ Gҽɳιυʂ♥'s discussion just feel
56 minutes ago
1 hour ago