If dog pounds then the cost is 75 if dog pounds then

This preview shows page 3 - 4 out of 4 pages.

IF dog weighs 15-30 pounds then the cost is $75 IF dog weighs 31-80 pounds then the cost is $105 IF dog weighs more than 80 pounds then the cost is $125 //Weekly care fee is based on dog’s weight and no extra fee is priced The program continuously accepts data until sentinel data is entered When sentinel value is entered billing data for dog owners who owe than $100 is displayed End
d. A program that continuously accepts dogs' data until a sentinel value is entered, and displays billing data for dogs that weigh less than 20 pounds or more than 100 pounds. Start Program prompts user for Dog’s owner, bread, age, and width User inputs this information Program processes the given information Based from user’s inputs a bill is displayed showing total cost of the weekly care fee IF dog weighs less than 15 pounds then the cost is $55 IF dog weighs 15-30 pounds then the cost is $75 IF dog weighs 31-80 pounds then the cost is $105 IF dog weighs more than 80 pounds then the cost is $125 //Weekly care fee is based on dog’s weight and no extra fee is priced The program continuously accepts data until sentinel data is entered When sentinel value is entered billing data for dogs that weigh less than 20 pounds OR more than 100 pounds are displayed End

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture