SlideShare ist ein Scribd-Unternehmen logo
1 von 3
left0UNIVERSITI TUN HUSSEIN ONN MALAYSIA<br />FACULTY OF MECHANICAL AND MANUFACTURING ENGINEERING <br />DAM31303/DTI 2143: COMPUTER PROGRAMMING<br />LAB EXERCISE 6:  SELECTION & LOOP <br />Exercise 1:<br />,[object Object],#include<stdio.h><br />#include<conio.h><br />int main()<br />{<br />    double price1, price2 ,price3,price4, price5, price6, price7, totalprice=0;<br />    printf(quot;
Program to calculate the average and total price of the 7 itemsquot;
);<br />    printf(quot;
 Enter price of item: RMquot;
);<br />    scanf(quot;
%lfquot;
, &price1);<br />    totalprice +=price1;<br />    printf(quot;
 Enter price of item: RMquot;
);<br />    scanf(quot;
%lfquot;
, &price2);<br />    totalprice +=price2;<br />     printf(quot;
 Enter price of item: RMquot;
);<br />    scanf(quot;
%lfquot;
, &price3);<br />    totalprice +=price3;<br />     printf(quot;
 Enter price of item : RMquot;
);<br />    scanf(quot;
%lfquot;
, &price4);<br />    totalprice +=price4;<br />     printf(quot;
 Enter price of item : RMquot;
);<br />    scanf(quot;
%lfquot;
, &price5);<br />    totalprice +=price5;<br />     printf(quot;
 Enter price of item : RMquot;
);<br />    scanf(quot;
%lfquot;
, &price6);<br />    totalprice +=price6;<br />     printf(quot;
 Enter price of item : RMquot;
);<br />    scanf(quot;
%lfquot;
, &price7);<br />    totalprice +=price7;<br />    printf(quot;
 The total price of the item is: RM%0.2lf quot;
, totalprice);<br />    printf(quot;
 The average price of the item is: RM%0.2lf quot;
, totalprice/7);<br />    printf(quot;
End of programquot;
);<br />    <br />    getch();<br />    return 0;<br />}<br />1.1 Study program 1.0 carefully, then compile and execute it.<br />,[object Object]
Why do you need 7 variables to hold the prices of the items?
Why is the variable totalprice initialized to 0?

Weitere Àhnliche Inhalte

Was ist angesagt?

Template matching
Template matchingTemplate matching
Template matchingHasan Ijaz
 
Lecture 8 increment_and_decrement_operators
Lecture 8 increment_and_decrement_operatorsLecture 8 increment_and_decrement_operators
Lecture 8 increment_and_decrement_operatorseShikshak
 
Call by value
Call by valueCall by value
Call by valueDharani G
 
Arithmetic operator
Arithmetic operatorArithmetic operator
Arithmetic operatorJordan Delacruz
 
Write a program that accepts percentage from the user and displays its grade ...
Write a program that accepts percentage from the user and displays its grade ...Write a program that accepts percentage from the user and displays its grade ...
Write a program that accepts percentage from the user and displays its grade ...Farwa Aqeel
 
How c program execute in c program
How c program execute in c program How c program execute in c program
How c program execute in c program Rumman Ansari
 
Types of operators in C
Types of operators in CTypes of operators in C
Types of operators in CPrabhu Govind
 
Operators in C/C++
Operators in C/C++Operators in C/C++
Operators in C/C++Shobi P P
 
C Operators
C OperatorsC Operators
C OperatorsYash Modi
 
P3
P3P3
P3lksoo
 
Conditional operators
Conditional operatorsConditional operators
Conditional operatorsBU
 
2. operators in c
2. operators in c2. operators in c
2. operators in camar kakde
 
Logical and Conditional Operator In C language
Logical and Conditional Operator In C languageLogical and Conditional Operator In C language
Logical and Conditional Operator In C languageAbdul Rehman
 
Types of c operators ppt
Types of c operators pptTypes of c operators ppt
Types of c operators pptViraj Shah
 
Programming Global variable
Programming Global variableProgramming Global variable
Programming Global variableimtiazalijoono
 
C OPERATOR
C OPERATORC OPERATOR
C OPERATORrricky98
 
C operators
C operatorsC operators
C operatorsGPERI
 

Was ist angesagt? (20)

Template matching
Template matchingTemplate matching
Template matching
 
Lecture 8 increment_and_decrement_operators
Lecture 8 increment_and_decrement_operatorsLecture 8 increment_and_decrement_operators
Lecture 8 increment_and_decrement_operators
 
Operators
OperatorsOperators
Operators
 
Practical no 6
Practical no 6Practical no 6
Practical no 6
 
Call by value
Call by valueCall by value
Call by value
 
Arithmetic operator
Arithmetic operatorArithmetic operator
Arithmetic operator
 
Write a program that accepts percentage from the user and displays its grade ...
Write a program that accepts percentage from the user and displays its grade ...Write a program that accepts percentage from the user and displays its grade ...
Write a program that accepts percentage from the user and displays its grade ...
 
How c program execute in c program
How c program execute in c program How c program execute in c program
How c program execute in c program
 
Types of operators in C
Types of operators in CTypes of operators in C
Types of operators in C
 
Operators in C/C++
Operators in C/C++Operators in C/C++
Operators in C/C++
 
C Operators
C OperatorsC Operators
C Operators
 
P3
P3P3
P3
 
Conditional operators
Conditional operatorsConditional operators
Conditional operators
 
2. operators in c
2. operators in c2. operators in c
2. operators in c
 
Logical and Conditional Operator In C language
Logical and Conditional Operator In C languageLogical and Conditional Operator In C language
Logical and Conditional Operator In C language
 
Types of c operators ppt
Types of c operators pptTypes of c operators ppt
Types of c operators ppt
 
Programming Global variable
Programming Global variableProgramming Global variable
Programming Global variable
 
C OPERATOR
C OPERATORC OPERATOR
C OPERATOR
 
C operators
C operatorsC operators
C operators
 
Cinfo
CinfoCinfo
Cinfo
 

Andere mochten auch

Teaching people how to treat you
Teaching people how to treat youTeaching people how to treat you
Teaching people how to treat youBrad Hyde
 
Biotecno
BiotecnoBiotecno
Biotecnojuanapardo
 
Design_of_Machine_Elements_Spo
Design_of_Machine_Elements_SpoDesign_of_Machine_Elements_Spo
Design_of_Machine_Elements_Sporamiljayureta
 
Perspective
PerspectivePerspective
Perspectivestoryofxu
 
RĂšdais & IED_Razzak
RĂšdais & IED_RazzakRĂšdais & IED_Razzak
RĂšdais & IED_RazzakRĂšdais
 
A history of lemonade
A history of lemonadeA history of lemonade
A history of lemonadeLemonadeDay
 
GEOG101 Chapter 4 Lecture
GEOG101 Chapter 4 LectureGEOG101 Chapter 4 Lecture
GEOG101 Chapter 4 Lecturersmithharfordedu
 
Nha Tran Brand Brief
Nha Tran Brand BriefNha Tran Brand Brief
Nha Tran Brand BriefErnest Chan
 
How to turn Facebook 'likes' into leads and customers on auto-pilot.
How to turn Facebook 'likes' into leads and customers on auto-pilot.How to turn Facebook 'likes' into leads and customers on auto-pilot.
How to turn Facebook 'likes' into leads and customers on auto-pilot.Julia Bramble
 
ĐœĐŸĐŽĐ”Đ»ŃŒ Đ°ĐČŃ‚ĐŸĐŒĐ°Ń‚ĐžĐ·ĐžŃ€ĐŸĐČĐ°ĐœĐœĐŸĐč ŃĐžŃŃ‚Đ”ĐŒŃ‹ ĐŒĐŸĐœĐžŃ‚ĐŸŃ€ĐžĐœĐłĐ° Ń€Đ”Đ·ŃƒĐ»ŃŒŃ‚Đ°Ń‚ĐžĐČĐœĐŸŃŃ‚Đž ĐżŃ€ĐŸŃ†Đ”ŃŃĐ° ĐŸĐ±ŃƒŃ‡Đ”...
ĐœĐŸĐŽĐ”Đ»ŃŒ Đ°ĐČŃ‚ĐŸĐŒĐ°Ń‚ĐžĐ·ĐžŃ€ĐŸĐČĐ°ĐœĐœĐŸĐč ŃĐžŃŃ‚Đ”ĐŒŃ‹ ĐŒĐŸĐœĐžŃ‚ĐŸŃ€ĐžĐœĐłĐ° Ń€Đ”Đ·ŃƒĐ»ŃŒŃ‚Đ°Ń‚ĐžĐČĐœĐŸŃŃ‚Đž ĐżŃ€ĐŸŃ†Đ”ŃŃĐ° ĐŸĐ±ŃƒŃ‡Đ”...ĐœĐŸĐŽĐ”Đ»ŃŒ Đ°ĐČŃ‚ĐŸĐŒĐ°Ń‚ĐžĐ·ĐžŃ€ĐŸĐČĐ°ĐœĐœĐŸĐč ŃĐžŃŃ‚Đ”ĐŒŃ‹ ĐŒĐŸĐœĐžŃ‚ĐŸŃ€ĐžĐœĐłĐ° Ń€Đ”Đ·ŃƒĐ»ŃŒŃ‚Đ°Ń‚ĐžĐČĐœĐŸŃŃ‚Đž ĐżŃ€ĐŸŃ†Đ”ŃŃĐ° ĐŸĐ±ŃƒŃ‡Đ”...
ĐœĐŸĐŽĐ”Đ»ŃŒ Đ°ĐČŃ‚ĐŸĐŒĐ°Ń‚ĐžĐ·ĐžŃ€ĐŸĐČĐ°ĐœĐœĐŸĐč ŃĐžŃŃ‚Đ”ĐŒŃ‹ ĐŒĐŸĐœĐžŃ‚ĐŸŃ€ĐžĐœĐłĐ° Ń€Đ”Đ·ŃƒĐ»ŃŒŃ‚Đ°Ń‚ĐžĐČĐœĐŸŃŃ‚Đž ĐżŃ€ĐŸŃ†Đ”ŃŃĐ° ĐŸĐ±ŃƒŃ‡Đ”...Mikhail Bogdanov
 
Amanda Kane - Presentation Mdes 810 Entrepeneurship Applied
Amanda Kane - Presentation Mdes 810 Entrepeneurship AppliedAmanda Kane - Presentation Mdes 810 Entrepeneurship Applied
Amanda Kane - Presentation Mdes 810 Entrepeneurship Appliedamandakane1
 
Ance_D'Annibale_24052011
Ance_D'Annibale_24052011Ance_D'Annibale_24052011
Ance_D'Annibale_24052011RĂšdais
 
Proceso de cambios vip
Proceso de cambios vipProceso de cambios vip
Proceso de cambios vipFelix J. Baute S.
 
Que saben de_ciencias_os_nosos_estudantes
Que saben de_ciencias_os_nosos_estudantesQue saben de_ciencias_os_nosos_estudantes
Que saben de_ciencias_os_nosos_estudantesjuanapardo
 
Recruitment services for pharmaceuticals
Recruitment services for pharmaceuticalsRecruitment services for pharmaceuticals
Recruitment services for pharmaceuticalscrescitasolutions
 
Ance_Gallesio_24052011
Ance_Gallesio_24052011Ance_Gallesio_24052011
Ance_Gallesio_24052011RĂšdais
 
interpretation_of_probability
interpretation_of_probabilityinterpretation_of_probability
interpretation_of_probabilityramiljayureta
 
Dti2143 chapter 5
Dti2143 chapter 5Dti2143 chapter 5
Dti2143 chapter 5alish sha
 
Investment presentation
Investment presentationInvestment presentation
Investment presentationCharles Beaubien
 

Andere mochten auch (20)

Teaching people how to treat you
Teaching people how to treat youTeaching people how to treat you
Teaching people how to treat you
 
Biotecno
BiotecnoBiotecno
Biotecno
 
Design_of_Machine_Elements_Spo
Design_of_Machine_Elements_SpoDesign_of_Machine_Elements_Spo
Design_of_Machine_Elements_Spo
 
Perspective
PerspectivePerspective
Perspective
 
RĂšdais & IED_Razzak
RĂšdais & IED_RazzakRĂšdais & IED_Razzak
RĂšdais & IED_Razzak
 
A history of lemonade
A history of lemonadeA history of lemonade
A history of lemonade
 
GEOG101 Chapter 4 Lecture
GEOG101 Chapter 4 LectureGEOG101 Chapter 4 Lecture
GEOG101 Chapter 4 Lecture
 
Nha Tran Brand Brief
Nha Tran Brand BriefNha Tran Brand Brief
Nha Tran Brand Brief
 
How to turn Facebook 'likes' into leads and customers on auto-pilot.
How to turn Facebook 'likes' into leads and customers on auto-pilot.How to turn Facebook 'likes' into leads and customers on auto-pilot.
How to turn Facebook 'likes' into leads and customers on auto-pilot.
 
ĐœĐŸĐŽĐ”Đ»ŃŒ Đ°ĐČŃ‚ĐŸĐŒĐ°Ń‚ĐžĐ·ĐžŃ€ĐŸĐČĐ°ĐœĐœĐŸĐč ŃĐžŃŃ‚Đ”ĐŒŃ‹ ĐŒĐŸĐœĐžŃ‚ĐŸŃ€ĐžĐœĐłĐ° Ń€Đ”Đ·ŃƒĐ»ŃŒŃ‚Đ°Ń‚ĐžĐČĐœĐŸŃŃ‚Đž ĐżŃ€ĐŸŃ†Đ”ŃŃĐ° ĐŸĐ±ŃƒŃ‡Đ”...
ĐœĐŸĐŽĐ”Đ»ŃŒ Đ°ĐČŃ‚ĐŸĐŒĐ°Ń‚ĐžĐ·ĐžŃ€ĐŸĐČĐ°ĐœĐœĐŸĐč ŃĐžŃŃ‚Đ”ĐŒŃ‹ ĐŒĐŸĐœĐžŃ‚ĐŸŃ€ĐžĐœĐłĐ° Ń€Đ”Đ·ŃƒĐ»ŃŒŃ‚Đ°Ń‚ĐžĐČĐœĐŸŃŃ‚Đž ĐżŃ€ĐŸŃ†Đ”ŃŃĐ° ĐŸĐ±ŃƒŃ‡Đ”...ĐœĐŸĐŽĐ”Đ»ŃŒ Đ°ĐČŃ‚ĐŸĐŒĐ°Ń‚ĐžĐ·ĐžŃ€ĐŸĐČĐ°ĐœĐœĐŸĐč ŃĐžŃŃ‚Đ”ĐŒŃ‹ ĐŒĐŸĐœĐžŃ‚ĐŸŃ€ĐžĐœĐłĐ° Ń€Đ”Đ·ŃƒĐ»ŃŒŃ‚Đ°Ń‚ĐžĐČĐœĐŸŃŃ‚Đž ĐżŃ€ĐŸŃ†Đ”ŃŃĐ° ĐŸĐ±ŃƒŃ‡Đ”...
ĐœĐŸĐŽĐ”Đ»ŃŒ Đ°ĐČŃ‚ĐŸĐŒĐ°Ń‚ĐžĐ·ĐžŃ€ĐŸĐČĐ°ĐœĐœĐŸĐč ŃĐžŃŃ‚Đ”ĐŒŃ‹ ĐŒĐŸĐœĐžŃ‚ĐŸŃ€ĐžĐœĐłĐ° Ń€Đ”Đ·ŃƒĐ»ŃŒŃ‚Đ°Ń‚ĐžĐČĐœĐŸŃŃ‚Đž ĐżŃ€ĐŸŃ†Đ”ŃŃĐ° ĐŸĐ±ŃƒŃ‡Đ”...
 
Amanda Kane - Presentation Mdes 810 Entrepeneurship Applied
Amanda Kane - Presentation Mdes 810 Entrepeneurship AppliedAmanda Kane - Presentation Mdes 810 Entrepeneurship Applied
Amanda Kane - Presentation Mdes 810 Entrepeneurship Applied
 
Ance_D'Annibale_24052011
Ance_D'Annibale_24052011Ance_D'Annibale_24052011
Ance_D'Annibale_24052011
 
Proceso de cambios vip
Proceso de cambios vipProceso de cambios vip
Proceso de cambios vip
 
Que saben de_ciencias_os_nosos_estudantes
Que saben de_ciencias_os_nosos_estudantesQue saben de_ciencias_os_nosos_estudantes
Que saben de_ciencias_os_nosos_estudantes
 
Recruitment services for pharmaceuticals
Recruitment services for pharmaceuticalsRecruitment services for pharmaceuticals
Recruitment services for pharmaceuticals
 
Ance_Gallesio_24052011
Ance_Gallesio_24052011Ance_Gallesio_24052011
Ance_Gallesio_24052011
 
interpretation_of_probability
interpretation_of_probabilityinterpretation_of_probability
interpretation_of_probability
 
Dti2143 chapter 5
Dti2143 chapter 5Dti2143 chapter 5
Dti2143 chapter 5
 
Vocabulary cards
Vocabulary cardsVocabulary cards
Vocabulary cards
 
Investment presentation
Investment presentationInvestment presentation
Investment presentation
 

Ähnlich wie Dti2143 lab sheet 6

Bti1022 lab sheet 9 10
Bti1022 lab sheet 9 10Bti1022 lab sheet 9 10
Bti1022 lab sheet 9 10alish sha
 
Dti2143 lab sheet 9
Dti2143 lab sheet 9Dti2143 lab sheet 9
Dti2143 lab sheet 9alish sha
 
Presentation 2 (1).pdf
Presentation 2 (1).pdfPresentation 2 (1).pdf
Presentation 2 (1).pdfziyadaslanbey
 
C important questions
C important questionsC important questions
C important questionsJYOTI RANJAN PAL
 
CS4200 2019 | Lecture 2 | syntax-definition
CS4200 2019 | Lecture 2 | syntax-definitionCS4200 2019 | Lecture 2 | syntax-definition
CS4200 2019 | Lecture 2 | syntax-definitionEelco Visser
 
Bti1022 lab sheet 3
Bti1022 lab sheet 3Bti1022 lab sheet 3
Bti1022 lab sheet 3alish sha
 
CBCS 2018 Scheme I sem Lab Manual for 18CPL17
CBCS 2018 Scheme I sem Lab Manual for 18CPL17 CBCS 2018 Scheme I sem Lab Manual for 18CPL17
CBCS 2018 Scheme I sem Lab Manual for 18CPL17 manjurkts
 
Simple Java Programs
Simple Java ProgramsSimple Java Programs
Simple Java ProgramsAravindSankaran
 
Simple Java Programs
Simple Java ProgramsSimple Java Programs
Simple Java ProgramsAravindSankaran
 
Qust & ans inc
Qust & ans incQust & ans inc
Qust & ans incnayakq
 
Compiler Construction | Lecture 2 | Declarative Syntax Definition
Compiler Construction | Lecture 2 | Declarative Syntax DefinitionCompiler Construction | Lecture 2 | Declarative Syntax Definition
Compiler Construction | Lecture 2 | Declarative Syntax DefinitionEelco Visser
 
C function presentation
C function presentationC function presentation
C function presentationTouhidul Shawan
 
C Programming Lab manual 18CPL17
C Programming Lab manual 18CPL17C Programming Lab manual 18CPL17
C Programming Lab manual 18CPL17manjurkts
 
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docxJLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docxvrickens
 
Labsheet2 stud
Labsheet2 studLabsheet2 stud
Labsheet2 studrohassanie
 
Programming in C
Programming in CProgramming in C
Programming in CNishant Munjal
 

Ähnlich wie Dti2143 lab sheet 6 (20)

Bti1022 lab sheet 9 10
Bti1022 lab sheet 9 10Bti1022 lab sheet 9 10
Bti1022 lab sheet 9 10
 
Dti2143 lab sheet 9
Dti2143 lab sheet 9Dti2143 lab sheet 9
Dti2143 lab sheet 9
 
Lab 1
Lab 1Lab 1
Lab 1
 
Presentation 2 (1).pdf
Presentation 2 (1).pdfPresentation 2 (1).pdf
Presentation 2 (1).pdf
 
C important questions
C important questionsC important questions
C important questions
 
CS4200 2019 | Lecture 2 | syntax-definition
CS4200 2019 | Lecture 2 | syntax-definitionCS4200 2019 | Lecture 2 | syntax-definition
CS4200 2019 | Lecture 2 | syntax-definition
 
Bti1022 lab sheet 3
Bti1022 lab sheet 3Bti1022 lab sheet 3
Bti1022 lab sheet 3
 
C code examples
C code examplesC code examples
C code examples
 
CBCS 2018 Scheme I sem Lab Manual for 18CPL17
CBCS 2018 Scheme I sem Lab Manual for 18CPL17 CBCS 2018 Scheme I sem Lab Manual for 18CPL17
CBCS 2018 Scheme I sem Lab Manual for 18CPL17
 
Simple Java Programs
Simple Java ProgramsSimple Java Programs
Simple Java Programs
 
Simple Java Programs
Simple Java ProgramsSimple Java Programs
Simple Java Programs
 
Qust & ans inc
Qust & ans incQust & ans inc
Qust & ans inc
 
Compiler Construction | Lecture 2 | Declarative Syntax Definition
Compiler Construction | Lecture 2 | Declarative Syntax DefinitionCompiler Construction | Lecture 2 | Declarative Syntax Definition
Compiler Construction | Lecture 2 | Declarative Syntax Definition
 
C function presentation
C function presentationC function presentation
C function presentation
 
C Programming Lab manual 18CPL17
C Programming Lab manual 18CPL17C Programming Lab manual 18CPL17
C Programming Lab manual 18CPL17
 
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docxJLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
JLK Chapter 5 – Methods and ModularityDRAFT January 2015 Edition.docx
 
Labsheet2 stud
Labsheet2 studLabsheet2 stud
Labsheet2 stud
 
Programming in C
Programming in CProgramming in C
Programming in C
 
17 Jo P May 08
17 Jo P May 0817 Jo P May 08
17 Jo P May 08
 
C chap02
C chap02C chap02
C chap02
 

Mehr von alish sha

T22016 – how to answer with ubs 9
T22016 – how to answer with ubs 9T22016 – how to answer with ubs 9
T22016 – how to answer with ubs 9alish sha
 
July 2014 theory exam (theory)
July 2014 theory exam (theory)July 2014 theory exam (theory)
July 2014 theory exam (theory)alish sha
 
Accounting basic equation
Accounting basic equation Accounting basic equation
Accounting basic equation alish sha
 
It 302 computerized accounting (week 2) - sharifah
It 302   computerized accounting (week 2) - sharifahIt 302   computerized accounting (week 2) - sharifah
It 302 computerized accounting (week 2) - sharifahalish sha
 
It 302 computerized accounting (week 1) - sharifah
It 302   computerized accounting (week 1) - sharifahIt 302   computerized accounting (week 1) - sharifah
It 302 computerized accounting (week 1) - sharifahalish sha
 
What are the causes of conflicts (Bahasa Malaysia)
What are the causes of conflicts (Bahasa Malaysia)What are the causes of conflicts (Bahasa Malaysia)
What are the causes of conflicts (Bahasa Malaysia)alish sha
 
Lab 9 sem ii_12_13
Lab 9 sem ii_12_13Lab 9 sem ii_12_13
Lab 9 sem ii_12_13alish sha
 
Lab 10 sem ii_12_13
Lab 10 sem ii_12_13Lab 10 sem ii_12_13
Lab 10 sem ii_12_13alish sha
 
Lab 5 2012/2012
Lab 5 2012/2012Lab 5 2012/2012
Lab 5 2012/2012alish sha
 
Purpose elaborate
Purpose elaboratePurpose elaborate
Purpose elaboratealish sha
 
Lab sheet 1
Lab sheet 1Lab sheet 1
Lab sheet 1alish sha
 
Test 1 alish schema 1
Test 1 alish schema 1Test 1 alish schema 1
Test 1 alish schema 1alish sha
 
Lab 6 sem ii_11_12
Lab 6 sem ii_11_12Lab 6 sem ii_11_12
Lab 6 sem ii_11_12alish sha
 
Test 1 skema q&a
Test 1 skema q&aTest 1 skema q&a
Test 1 skema q&aalish sha
 
Test 1 skema q&a
Test 1 skema q&aTest 1 skema q&a
Test 1 skema q&aalish sha
 
Final project
Final projectFinal project
Final projectalish sha
 
Final project
Final projectFinal project
Final projectalish sha
 
Attn list test
Attn list testAttn list test
Attn list testalish sha
 
Carry markdam31303
Carry markdam31303Carry markdam31303
Carry markdam31303alish sha
 

Mehr von alish sha (20)

T22016 – how to answer with ubs 9
T22016 – how to answer with ubs 9T22016 – how to answer with ubs 9
T22016 – how to answer with ubs 9
 
July 2014 theory exam (theory)
July 2014 theory exam (theory)July 2014 theory exam (theory)
July 2014 theory exam (theory)
 
Accounting basic equation
Accounting basic equation Accounting basic equation
Accounting basic equation
 
It 302 computerized accounting (week 2) - sharifah
It 302   computerized accounting (week 2) - sharifahIt 302   computerized accounting (week 2) - sharifah
It 302 computerized accounting (week 2) - sharifah
 
It 302 computerized accounting (week 1) - sharifah
It 302   computerized accounting (week 1) - sharifahIt 302   computerized accounting (week 1) - sharifah
It 302 computerized accounting (week 1) - sharifah
 
What are the causes of conflicts (Bahasa Malaysia)
What are the causes of conflicts (Bahasa Malaysia)What are the causes of conflicts (Bahasa Malaysia)
What are the causes of conflicts (Bahasa Malaysia)
 
Lab 9 sem ii_12_13
Lab 9 sem ii_12_13Lab 9 sem ii_12_13
Lab 9 sem ii_12_13
 
Lab 10 sem ii_12_13
Lab 10 sem ii_12_13Lab 10 sem ii_12_13
Lab 10 sem ii_12_13
 
Lab 6
Lab 6Lab 6
Lab 6
 
Lab 5 2012/2012
Lab 5 2012/2012Lab 5 2012/2012
Lab 5 2012/2012
 
Purpose elaborate
Purpose elaboratePurpose elaborate
Purpose elaborate
 
Lab sheet 1
Lab sheet 1Lab sheet 1
Lab sheet 1
 
Test 1 alish schema 1
Test 1 alish schema 1Test 1 alish schema 1
Test 1 alish schema 1
 
Lab 6 sem ii_11_12
Lab 6 sem ii_11_12Lab 6 sem ii_11_12
Lab 6 sem ii_11_12
 
Test 1 skema q&a
Test 1 skema q&aTest 1 skema q&a
Test 1 skema q&a
 
Test 1 skema q&a
Test 1 skema q&aTest 1 skema q&a
Test 1 skema q&a
 
Final project
Final projectFinal project
Final project
 
Final project
Final projectFinal project
Final project
 
Attn list test
Attn list testAttn list test
Attn list test
 
Carry markdam31303
Carry markdam31303Carry markdam31303
Carry markdam31303
 

KĂŒrzlich hochgeladen

Champawat Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Champawat Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelChampawat Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Champawat Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Imphal Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Imphal Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelImphal Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Imphal Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Bhavnagar Escort💋 Call Girl (Komal) Service #Bhavnagar Call Girl @Independent...
Bhavnagar Escort💋 Call Girl (Komal) Service #Bhavnagar Call Girl @Independent...Bhavnagar Escort💋 Call Girl (Komal) Service #Bhavnagar Call Girl @Independent...
Bhavnagar Escort💋 Call Girl (Komal) Service #Bhavnagar Call Girl @Independent...mountabuangels4u
 
Valsad Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Valsad Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelValsad Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Valsad Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Daman Escorts đŸ„° 8617370543 Call Girls Offer VIP Hot Girls
Daman Escorts đŸ„° 8617370543 Call Girls Offer VIP Hot GirlsDaman Escorts đŸ„° 8617370543 Call Girls Offer VIP Hot Girls
Daman Escorts đŸ„° 8617370543 Call Girls Offer VIP Hot GirlsDeepika Singh
 
Krishnanagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Krishnanagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelKrishnanagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Krishnanagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Elevate Your Busy Season Email Marketing, Holly May Webinar.pptx
Elevate Your Busy Season Email Marketing, Holly May Webinar.pptxElevate Your Busy Season Email Marketing, Holly May Webinar.pptx
Elevate Your Busy Season Email Marketing, Holly May Webinar.pptxRezStream
 
sample sample sample sample sample sample
sample sample sample sample sample samplesample sample sample sample sample sample
sample sample sample sample sample sampleCasey Keith
 
Roorkee Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Roorkee Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelRoorkee Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Roorkee Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Ramnagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Ramnagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelRamnagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Ramnagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
South Goa Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
South Goa Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelSouth Goa Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
South Goa Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Top travel agency in panchkula - Best travel agents in panchkula
Top  travel agency in panchkula - Best travel agents in panchkulaTop  travel agency in panchkula - Best travel agents in panchkula
Top travel agency in panchkula - Best travel agents in panchkulauseyourbrain1122
 
Morbi Escort💋 Call Girl (Komal) Service #Morbi Call Girl @Independent Girls
Morbi Escort💋 Call Girl (Komal) Service #Morbi Call Girl @Independent GirlsMorbi Escort💋 Call Girl (Komal) Service #Morbi Call Girl @Independent Girls
Morbi Escort💋 Call Girl (Komal) Service #Morbi Call Girl @Independent Girlsmountabuangels4u
 
Awesome places one can visit in Lesotho.
Awesome places one can visit in Lesotho.Awesome places one can visit in Lesotho.
Awesome places one can visit in Lesotho.tobatsitlotliso004
 
Sun World Bana Hills, Vienam Part 2 (è¶Šć— ć·Žæ‹żć±±ć€Ș陜䞖界 例集).ppsx
Sun World Bana Hills, Vienam Part 2  (è¶Šć— ć·Žæ‹żć±±ć€Ș陜䞖界 例集).ppsxSun World Bana Hills, Vienam Part 2  (è¶Šć— ć·Žæ‹żć±±ć€Ș陜䞖界 例集).ppsx
Sun World Bana Hills, Vienam Part 2 (è¶Šć— ć·Žæ‹żć±±ć€Ș陜䞖界 例集).ppsxChung Yen Chang
 
Uttarkashi Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Uttarkashi Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelUttarkashi Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Uttarkashi Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Pauri Garhwal Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Pauri Garhwal Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelPauri Garhwal Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Pauri Garhwal Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
A high-altitude adventure in the mountain kingdom
A high-altitude adventure in the mountain kingdomA high-altitude adventure in the mountain kingdom
A high-altitude adventure in the mountain kingdomntsoakikotsoane
 
Bhadrachalam Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Bhadrachalam Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelBhadrachalam Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Bhadrachalam Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Overview of Lesotho 's natural beauty tourist attractions
Overview of Lesotho 's natural beauty tourist attractionsOverview of Lesotho 's natural beauty tourist attractions
Overview of Lesotho 's natural beauty tourist attractionsmamalatsit
 

KĂŒrzlich hochgeladen (20)

Champawat Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Champawat Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelChampawat Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Champawat Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
Imphal Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Imphal Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelImphal Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Imphal Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
Bhavnagar Escort💋 Call Girl (Komal) Service #Bhavnagar Call Girl @Independent...
Bhavnagar Escort💋 Call Girl (Komal) Service #Bhavnagar Call Girl @Independent...Bhavnagar Escort💋 Call Girl (Komal) Service #Bhavnagar Call Girl @Independent...
Bhavnagar Escort💋 Call Girl (Komal) Service #Bhavnagar Call Girl @Independent...
 
Valsad Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Valsad Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelValsad Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Valsad Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
Daman Escorts đŸ„° 8617370543 Call Girls Offer VIP Hot Girls
Daman Escorts đŸ„° 8617370543 Call Girls Offer VIP Hot GirlsDaman Escorts đŸ„° 8617370543 Call Girls Offer VIP Hot Girls
Daman Escorts đŸ„° 8617370543 Call Girls Offer VIP Hot Girls
 
Krishnanagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Krishnanagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelKrishnanagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Krishnanagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
Elevate Your Busy Season Email Marketing, Holly May Webinar.pptx
Elevate Your Busy Season Email Marketing, Holly May Webinar.pptxElevate Your Busy Season Email Marketing, Holly May Webinar.pptx
Elevate Your Busy Season Email Marketing, Holly May Webinar.pptx
 
sample sample sample sample sample sample
sample sample sample sample sample samplesample sample sample sample sample sample
sample sample sample sample sample sample
 
Roorkee Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Roorkee Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelRoorkee Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Roorkee Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
Ramnagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Ramnagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelRamnagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Ramnagar Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
South Goa Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
South Goa Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelSouth Goa Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
South Goa Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
Top travel agency in panchkula - Best travel agents in panchkula
Top  travel agency in panchkula - Best travel agents in panchkulaTop  travel agency in panchkula - Best travel agents in panchkula
Top travel agency in panchkula - Best travel agents in panchkula
 
Morbi Escort💋 Call Girl (Komal) Service #Morbi Call Girl @Independent Girls
Morbi Escort💋 Call Girl (Komal) Service #Morbi Call Girl @Independent GirlsMorbi Escort💋 Call Girl (Komal) Service #Morbi Call Girl @Independent Girls
Morbi Escort💋 Call Girl (Komal) Service #Morbi Call Girl @Independent Girls
 
Awesome places one can visit in Lesotho.
Awesome places one can visit in Lesotho.Awesome places one can visit in Lesotho.
Awesome places one can visit in Lesotho.
 
Sun World Bana Hills, Vienam Part 2 (è¶Šć— ć·Žæ‹żć±±ć€Ș陜䞖界 例集).ppsx
Sun World Bana Hills, Vienam Part 2  (è¶Šć— ć·Žæ‹żć±±ć€Ș陜䞖界 例集).ppsxSun World Bana Hills, Vienam Part 2  (è¶Šć— ć·Žæ‹żć±±ć€Ș陜䞖界 例集).ppsx
Sun World Bana Hills, Vienam Part 2 (è¶Šć— ć·Žæ‹żć±±ć€Ș陜䞖界 例集).ppsx
 
Uttarkashi Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Uttarkashi Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelUttarkashi Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Uttarkashi Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
Pauri Garhwal Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Pauri Garhwal Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelPauri Garhwal Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Pauri Garhwal Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
A high-altitude adventure in the mountain kingdom
A high-altitude adventure in the mountain kingdomA high-altitude adventure in the mountain kingdom
A high-altitude adventure in the mountain kingdom
 
Bhadrachalam Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Bhadrachalam Call Girls đŸ„° 8617370543 Service Offer VIP Hot ModelBhadrachalam Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
Bhadrachalam Call Girls đŸ„° 8617370543 Service Offer VIP Hot Model
 
Overview of Lesotho 's natural beauty tourist attractions
Overview of Lesotho 's natural beauty tourist attractionsOverview of Lesotho 's natural beauty tourist attractions
Overview of Lesotho 's natural beauty tourist attractions
 

Dti2143 lab sheet 6

  • 1.
  • 2. Why do you need 7 variables to hold the prices of the items?
  • 3. Why is the variable totalprice initialized to 0?
  • 4. Identify the set of statements that are repeated many times in the program
  • 5.
  • 8. for (int item=7;item>0;item--)e. Modify the program such that it will calculate and print the average and the total prices of 20 items.<br />Exercise 3: Write a C program to draw a symmetrical triangle by using for-loop. The program should be able to produce output as follows: <br />Exercise 4:<br />Write a C programme for Holiday Villa Subang Jaya Business Lounge internet charges that calculates the total charges for internet usage. Operation time: 08:00-22:00 and the charges are as follows:<br />HoursRateFirstRM 3.00Second to FifthRM 2.00Subsequence RM 1.00<br />Allow the user to repeat calculations as many times as needed and enter ‘n’ to stop. The output should similar as follow:<br />