CONTROL STRUCTURE: SELECTION (Part IV)

3. Implementation / Coding #include<iostream> #include<string> using namespace std; int main(){char code;string name;int noAdult, noChildren;float priceAdult, priceChildren;//adult and children are refer to the price per head.//priceAdult and priceChild refer to the total of price every//category after times with the quantity person.float priceBeforeGST, GST, netPrice;bool validCode; return 0;}

CONTROL STRUCTURED: SELECTION ( Part III )

HOW TO DEVELOP A PROGRAM BY FOLLOWING SYSTEM DEVELOPMENT LIFE CYCLE ( SDLC ) STEPS ? 1. Problem Analysis ( IPO ) INPUT PROCESS OUTPUT 1. Name2. Code3. No. of adults4. No. of children Calculate charge before GSTCalculate GST charge = charge before GST * 0.06Calculate net charge = total price + GST charge 1.Continue reading “CONTROL STRUCTURED: SELECTION ( Part III )”

CONTROL STRUCTURE: SELECTION ( Part II )

Example Question of Selection : Easy Travel agency offers three types of packages for their customer to perform umrah. The detail of charge in the following table: Package Code Package Types Category Charge per person (RM) A Umrah during Non-Peak Season AdultChild 6500.005000.00 B Umrah During Ramadhan AdultChild 8500.006500.00 C Umrah During Schol Holiday AdultChild 7500.00Continue reading “CONTROL STRUCTURE: SELECTION ( Part II )”

Design a site like this with WordPress.com
Get started