Answer to Question #159987 in Algorithms for Farah

Question #159987

programmer in an IT firm. Your firm got a project to develop an 

application for an Ice Cream Parlor. The application must be developed considering the 

following scenario.

• The application will display a menu showing the flavors that have been offered by the Ice 

Cream Parlor. 

• The Parlor offers Tutti-Frutti, Chocolate, Pineapple, Kulfa, Strawberry, Mango, Orange, 

and Pistachio flavors. 

• The price of each flavor per scoop has been listed in the table below, for multiple scoops, 

the price will variate as per the scenario stated in the table. 

Flavor

Price Per Scoop

One Scoop Two 

Scoops

Three Scoops or 

above

Tutti-Frutti 150 120 100

Chocolate 150 120 100

Pine Apple 150 120 100

Kulfa 150 120 100

Strawberry 150 120 100

Mango 175 150 130

Orange 200 170 150

Pistachio 150 120 100

• The developed application will ask the customer to select the flavors and no. of scoops 

for each selected flavor. The program will perform calculations and display the bill.

You are required to write the pseudo-code for the above-given scenario

1
Expert's answer
2021-01-30T22:36:56-0500
#include <stdio.h>

int main()
{
    int flavor;
    
    cout<<"Available ice-cream flavor are listed below";
    cout<<"Tutti-Frutti -1, Chocolate -2, Pineapple, Kulfa -3, Strawberry -4";
    cout<<"Mango -5, Orange -6, Pistachio flavors -7 ";
    cout<<"Please enter the ice-cream flavor*(enter 1 to 7) which you want to purchase";
    cin>>flavor;

    switch (flavor) {


    case 1:
        switch (q) {

    
        case 2:
            printf( "Choice is 2");
            break;

    
        case 3:
            printf( "Choice is 3");
            break;
        }
        break;

    
    case 4:
        printf( "Choice is 4");
        break;

    
    case 5:
        printf( "Choice is 5");
        break;

    default:
        printf( "Choice is other than 1, 2 3, 4, or 5");
        break;
    }
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS