In: Computer Science
Design the logic in pseudocode for Sign Over Your Money online bank check ordering company as follows: 1. The regular price is $6.95 per box of checks; if the customer orders at least 4 boxes, then the price is $4.95 per box. 2. Standard lettering is included in the price, but if the customer wants either calligraphy or elegant lettering, an additional charge of $3.95 applies. 3. If the customer wants a check register, then an additional charge of $2.95 applies. 4. Shipping and handling charges are $1.95 per box. 5. The program must allow the user to enter a. The number of boxes of checks the customer wants to order b. The type of lettering – standard/calligraphy/elegant (by entering a number from a list, e.g., enter 0 if they want standard lettering, and so on, as shown in the practice exercise solutions) c. Whether the user wants a check register (by responding yes/no to the question when asked) d. The program must output i. The price per box of checks ii. The total price for the number of boxes ordered iii. The type of lettering and the charge for it (if any) iv. Whether a check register is desired and if so, the charge for it v. Shipping and handling charges for the order vi. The total charge for the order Assume that the following constants and variables have been declared, and use them in your code where they apply.
num REGULAR_BOX_PRICE = 6.95 num DISCOUNT_MINIMUM_QUANTITY = 4 num DISCOUNTED_BOX_PRICE = 4.95 num STANDARD_LETTERING_PRICE = 0 num SPECIAL_LETTERING_PRICE = 3.95 num CHECK_REGISTER_PRICE = 2.95 num SHIPPING_HANDLING_PER_BOX = 1.95 num STANDARD_LETTERING = 0 num ELEGANT_LETTERING = 1 num CALLIGRAPHY_LETTERING = 2 string SPECIAL_LETTERING_TYPE_1 = "elegant" string SPECIAL_LETTERING_TYPE_2 = "calligraphy" num boxesOrdered num letteringChoice string letteringType num letteringCharge string registerDesired num registerCharge num boxPrice num totalForBoxes num shippingHandlingCharge num totalCharge
This should be done in pseudocode
// Pseudocode to calculate the total charge for the order in
Sign Over Your Money online bank check ordering company
Declaration
   num REGULAR_BOX_PRICE = 6.95;
   num DISCOUNT_MINIMUM_QUANTITY = 4;
   num DISCOUNTED_BOX_PRICE = 4.95;
   num STANDARD_LETTERING_PRICE = 0;
   num SPECIAL_LETTERING_PRICE = 3.95;
   num CHECK_REGISTER_PRICE = 2.95;
   num SHIPPING_HANDLING_PER_BOX = 1.95;
   num STANDARD_LETTERING = 0;
   num ELEGANT_LETTERING = 1;
   num CALLIGRAPHY_LETTERING = 2;
   string SPECIAL_LETTERING_TYPE_1 = "elegant" ;
   string SPECIAL_LETTERING_TYPE_2 = "calligraphy"
;
   num boxesOrdered, letteringChoice, letteringCharge,
registerCharge;
   string letteringType, registerDesired;
  
   num boxPrice, totalForBoxes, shippingHandlingCharge,
totalCharge;
  
Start
  
   Print("The number of boxes of checks the customer
wants to order : ");
   Input boxesOrdered;
   Print("The type of lettering : 0 - standard, 1 -
elegant, 2 - calligraphy : ");
   Input letteringChoice;
   Print("Do you want a check register (Yes/No) :
");
   Input registerDesired;
   boxPrice = REGULAR_BOX_PRICE;
  
   if(boxesOrdered >= DISCOUNT_MINIMUM_QUANTITY)
then
       boxPrice =
DISCOUNTED_BOX_PRICE;
   end if;
  
   totalForBoxes = boxPrice*boxesOrdered;
  
   if(letteringChoice == STANDARD_LETTERING) then
       letteringCharge =
STANDARD_LETTERING_PRICE;
   else if((letteringChoice == ELEGANT_LETTERING) or
(letteringChoice == CALLIGRAPHY_LETTERING)) then
       letteringCharge =
SPECIAL_LETTERING_PRICE;
   else
       letteringCharge = 0;
   end if;
  
   if(registerDesired == "Yes") then
       registerCharge =
CHECK_REGISTER_PRICE;
   else
       registerCharge = 0;
   end if;
   shippingHandlingCharge =
SHIPPING_HANDLING_PER_BOX*boxesOrdered;
  
   totalCharge = totalForBoxes + letteringCharge +
registerCharge + shippingHandlingCharge;
  
   Print("The price per box of checks :
$",boxPrice);
   Print("The total price for the number of boxes ordered
: $",totalForBoxes)
  
   if(letteringChoice == STANDARD_LETTERING) then
       Print("The type of lettering :
STANDARD "," charge : $",STANDARD_LETTERING_PRICE);
   else if(letteringChoice == ELEGANT_LETTERING)
then
       Print("The type of lettering :
ELEGANT "," charge : $",SPECIAL_LETTERING_PRICE);
   else if(letteringChoice == CALLIGRAPHY_LETTERING)
then  
       Print("The type of lettering :
CALLIGRAPHY "," charge : $",SPECIAL_LETTERING_PRICE);
   end if;
  
   if(registerDesired == "Yes") then
       Print("Check register is desired.
Charge : $",registerCharge);
   else
       Print("Check register is not
desired");
   end if;
   Print('Shipping and handling charges for the order
: $',shippingHandlingCharge);
   Print('The total charge for the order :
$',totalCharge);
End