0% found this document useful (0 votes)
13 views3 pages

AICP Internship3

AICP.internship3

Uploaded by

aleesha waqar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

AICP Internship3

AICP.internship3

Uploaded by

aleesha waqar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Artificial intelligence community of Pakistan

Internship task 3
Submitted by : Aleesha Waqar
Code :
#include <iostream>

#include<stdio.h>

using namespace std;

void costSlab1(int a[][3],int rows, int columns)

cout<<"bill for slab 1 ="<<endl;

for (int i=0;i<3;i++)

cout<<a[0][i]*10<<" ";

cout<<endl;

void costSlab2(int a[][3],int rows, int columns)

cout<<"bill for slab 2 ="<<endl;

for (int i=0;i<3;i++)

cout<<a[1][i]*15<<" ";

cout<<endl;

void costSlab3(int a[][3],int rows, int columns)

cout<<"bill for slab 3 ="<<endl;

for (int i=0;i<3;i++)


{

cout<<a[2][i]*20<<" ";

int main()

{ string id;

int choice;

int a[3][3]={{55,65,75},{120,150,170},{210,230,240}};

cout<<"enter your id"<<endl;

cin>>id;

cout<<"enter your choice"<<endl<<"press 1 to display bill of slab 1 and slab 2"<<endl<<"press 2 to display bill
of slab 3"<<endl<<"press any othrt key to exit"<<endl;

cin>>choice;

if (choice==1)

costSlab1(a,3,3);

costSlab2(a,3,3);

else if (choice==2)

costSlab3(a,3,3);

else

cout<<"program ended"<<endl;

return 0;

Output :

You might also like