Step 1: Display Main Menu{ 1: Search Product {Jump to step 2} 2: Add Product to cart {Jump to step 3} 3: Delete product from cart {Jump to step 4} 4: Move to cart {Jump to step 5} 5: Checkout{Jump to step 6} } Step 2: { Enter name of the Product(input text: p_name) || Enter product ID(input text: p_id) if(p_name || p_id.available){ Print(Product page) } else{ Print("Such product is not available") } } Step 3: {Declare character ( ans ) Declare integer:( p_quantity = 0 ) Declare integer:( Bill ) Declare Array : product_list Enter produtname(input text: p_name) || enter product ID(p_id) if(p_name || p_id,is available){ Print(Product page) Print(Product prize: p_prize) Print("Do you want to buy this product (Y/N)") Input character(ans) if(ans=Y||y){ print("How many ") Input number p_qunatity Bill = Bill + (p_prize*p_quantity) product_list = product_list + p_name } } break; } Step 4: { Print("Which product you want to remove?") Input text(p_name) Bill = Bill - (p_prize*p_quantity) Product_list = product_list - p_name break; } Step 5:{ Declare character c Display cart Print("Totatl Products") for loop(int i=0 to i<length of product_list){ print(p_name[i] +" - "+p_prize[i] +" - "+p_quantity[i]) } Print("Press C to checkout") Print("Press M for main menu") Input character:c if(c='C' OR c= 'c'){ Jump to step 6 } else if(c='M' OR c='m'){ Jump to step 1 } else{ Print("Wrong Input") break; } } Step 6: { Declare character r Print("Final bill amount = " + Bill) for(int j =0 to j<length of product_list){ Print("Total products = "p_name[i]) } Print("Do you want to buy all of these products (Y/N)") Input character: r if(r='y' || r='Y'){ Move to payment Page } else if (r='n' || r='N'){ Jump to Sep 1 } else{ print("Wrong input") Jump to Step 1 } }