Question: Turn pseudocode into source code C + + programming / / Pseudocode PLD Chapter 4 # 8 a , pg . 1 7 3 /

Turn pseudocode into source code C++ programming // Pseudocode PLD Chapter 4 #8a, pg.173
//
// Start
// Declarations
// number id
// string ownerName
// string breed
// number age
// number weight
// number weeklyFee
//
// output "Please enter owner's ID: "
// input id
// output "Please enter owner's name: "
// input ownerName
// output "Please enter dog's breed (no space in input, use '_'
instead; For example Great_Dane): "
// input breed
// output "Please enter dog's age: "
// input age
// output "Please enter dog's weight: "
// input weight
// if (weight 15) then
// weeklyFee =55.00
// else if ((weight >=15) and (weight =30)) then
// weeklyFee =75.00
// else if ((weight >30) and (weight =80)) then
// weeklyFee =105.00
// else
// weeklyFee =125.00
//
// output "Owner Name: ", ownerName
// output "Owner ID: ", id
// output "Dog Breed: ", breed
// output "Dog Age: ", age
// output "Dog Weight: ", weight
// output "Weekly Fee: ","$",weeklyFee
// Stop
Turn pseudocode into source code C + +

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!