The barking lot is a dog day care center. Design a flowchart and pseudocode for
ID: 674561 • Letter: T
Question
The barking lot is a dog day care center. Design a flowchart and pseudocode for the following: Also provide the raptor flow chart.
A. a program that accepts data for an ID number of a dog's owner, ad the name, breed, age, and weight of the dog. Display a bill containing all the input data as well as the weekly day care fee, which is $55 for dogs under 15 pounds, $75 for dogs from 15 to 30 pounds inclusive, $105 for dogs from 31 to 80 pounds inclusive, an $125 for dogs over 80 pounds.
b. a program the continuously accepts dogs' data until a sentinel value is entered, and displays billing data for each dog.
C. a program continuously accepts dogs' data until a sentinel value is entered, and displays billing data or dog owners who owe more than $100.
D. a program continuously accepts dogs' data until a sentinel value is entered, and displays billing data for dogs who weigh less than 20 pounds or more than 100 pounds.
Explanation / Answer
==========================================================================A. a program that accepts data for an ID number of a dog's owner, ad the name, breed, age, and weight of the dog. Display a bill containing all the input data as well as the weekly day care fee, which is $55 for dogs under 15 pounds, $75 for dogs from 15 to 30 pounds inclusive, $105 for dogs from 31 to 80 pounds inclusive, an $125 for dogs over 80 pounds.
==========================================================================BEGIN
DECLARE
ID_number
owner
name
breed
age
weight
fee
PRINT 'Enter ID Number'
READ ID_number
PRINT 'Enter dog owner'
READ owner
PRINT 'Enter dog name'
READ name
PRINT 'Enter breed'
READ breed
PRINT 'Enter age'
READ age
PRINT 'Enter weight'
READ weight
IF wieght IS LESS THAN 15
fee = 55
ELSE IF wieght IS LESS THAN EQUAL TO 30
fee = 75
ELSE IF wieght IS LESS THAN EQUAL TO 80
fee = 105
ELSE IF wieght GREATER THAN 80
fee = 125
END IF
PRINT '------- DOG Info --------'
PRINT 'ID Number'
PRINT ID_number
PRINT 'Dog Owner'
PRINT owner
PRINT 'Breed'
PRINT breed
PRINT 'Age '
PRINT age
PRINT 'Weight '
PRINT weight
PRINT 'the weekly day care fee'
PRINT fee
END
==========================================================================b. a program the continuously accepts dogs' data until a sentinel value is entered, and displays billing data for each dog.
==========================================================================BEGIN
DECLARE
ID_number
owner
name
breed
age
weight
fee
choice
DO
PRINT 'Enter ID Number'
READ ID_number
PRINT 'Enter dog owner'
READ owner
PRINT 'Enter dog name'
READ name
PRINT 'Enter breed'
READ breed
PRINT 'Enter age'
READ age
PRINT 'Enter weight'
READ weight
IF wieght IS LESS THAN 15
fee = 55
ELSE IF wieght IS LESS THAN EQUAL TO 30
fee = 75
ELSE IF wieght IS LESS THAN EQUAL TO 80
fee = 105
ELSE IF wieght GREATER THAN 80
fee = 125
END IF
PRINT '------- DOG Info --------'
PRINT 'ID Number'
PRINT ID_number
PRINT 'Dog Owner'
PRINT owner
PRINT 'Breed'
PRINT breed
PRINT 'Age '
PRINT age
PRINT 'Weight '
PRINT weight
PRINT 'the weekly day care fee'
PRINT fee
PRINT 'Do you want to continue press y or Y ?'
READ choice
WHILE choice EQUAL TO 'y' or 'Y';
END
==========================================================================C. a program continuously accepts dogs' data until a sentinel value is entered, and displays billing data or dog owners who owe more than $100.
==========================================================================BEGIN
DECLARE
ID_number
owner
name
breed
age
weight
fee
choice
DO
PRINT 'Enter ID Number'
READ ID_number
PRINT 'Enter dog owner'
READ owner
PRINT 'Enter dog name'
READ name
PRINT 'Enter breed'
READ breed
PRINT 'Enter age'
READ age
PRINT 'Enter weight'
READ weight
IF wieght IS LESS THAN 15
fee = 55
ELSE IF wieght IS LESS THAN EQUAL TO 30
fee = 75
ELSE IF wieght IS LESS THAN EQUAL TO 80
fee = 105
ELSE IF wieght GREATER THAN 80
fee = 125
END IF
PRINT '------- DOG Info --------'
PRINT 'ID Number'
PRINT ID_number
PRINT 'Dog Owner'
PRINT owner
PRINT 'Breed'
PRINT breed
PRINT 'Age '
PRINT age
PRINT 'Weight '
PRINT weight
IF fee GREATER THAN 100
PRINT 'the weekly day care fee'
PRINT fee
END IF
PRINT 'Do you want to continue press y or Y ?'
READ choice
WHILE choice EQUAL TO 'y' or 'Y';
END
==========================================================================D. a program continuously accepts dogs' data until a sentinel value is entered, and displays billing data for dogs who weigh less than 20 pounds or more than 100 pounds.
==========================================================================BEGIN
DECLARE
ID_number
owner
name
breed
age
weight
fee
choice
DO
PRINT 'Enter ID Number'
READ ID_number
PRINT 'Enter dog owner'
READ owner
PRINT 'Enter dog name'
READ name
PRINT 'Enter breed'
READ breed
PRINT 'Enter age'
READ age
PRINT 'Enter weight'
READ weight
IF wieght IS LESS THAN 15
fee = 55
ELSE IF wieght IS LESS THAN EQUAL TO 30
fee = 75
ELSE IF wieght IS LESS THAN EQUAL TO 80
fee = 105
ELSE IF wieght GREATER THAN 80
fee = 125
END IF
PRINT '------- DOG Info --------'
PRINT 'ID Number'
PRINT ID_number
PRINT 'Dog Owner'
PRINT owner
PRINT 'Breed'
PRINT breed
PRINT 'Age '
PRINT age
PRINT 'Weight '
PRINT weight
IF fee LESS THAN 20 OR fee GREATER THAN 100
PRINT 'the weekly day care fee'
PRINT fee
END IF
PRINT 'Do you want to continue press y or Y ?'
READ choice
WHILE choice EQUAL TO 'y' or 'Y';
END
==========================================================================
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.