Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ For thus to you on no less, no more. Line and Center P Question: Write a C++ program for the given pseudocode. make sure

c++
image text in transcribed
For thus to you on no less, no more. Line and Center P Question: Write a C++ program for the given pseudocode. make sure to fulfill the following points: Calibri (Body) 12 AA 3 A New 1. Declare a variables of type in BIUS-A-Styles Comment Paragraph Spacing 2. Declare a variables of type in 3. Declare a variable of type insger called penalty score and set it to 20. 4. Declare four unassigned Integers: quaffle, snitch, penalty and house points awarded 5. Declare a variables of type int called total score. 6. Prompt the user through the console for integer values quaffle, snitch and penalty. 7. Calculate and store the total score in total score, adding for each quaffle scored or snitch caught, and subtracting for each penalty. 8. Record in house points awarded the result of total score divided by 40) 9. Output in the console the following message: After a rousing game of Quidditch, team Gryffindor managed to send quaffle(s) through the goal hoops, catch snitch(es) and were called on penalty(ies). Their final score was . They earned points for their house. where , , , quaffle(s) through the goal hoops, catch snitch(es) and were called on penalty(ies). Their final score was . They earned points for their house. where , , ,

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Medical Image Databases

Authors: Stephen T.C. Wong

1st Edition

1461375398, 978-1461375395

More Books

Students also viewed these Databases questions

Question

1. PricewaterhouseCoopers

Answered: 1 week ago

Question

3. SCC Soft Computer

Answered: 1 week ago