Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Is this correct? please fix the code for me to have the same output like the image under. File Edit Format Run Options Window Help

Is this correct? please fix the code for me to have the same output like the image under.

image text in transcribed

image text in transcribed

File Edit Format Run Options Window Help print("CMSY 156 Soccer Stats Program Calculator") total games = int (input("Enter games played:10")) total shots = int (input("Enter shots taken:14")) total_goals = int(input("Enter goals scored:4")) average_goals_per_game = total_goals / total_games average_shots_per_game = total_shots / total_games average_shots_per_goal = total_shots / total_goals print("Average Goals per Game:", average_goals_per_game) print("Average Shots per Game:", average_shots_per_game) print("Average Shots per Goal:", average_shots_per_goal) print("Thank you for using the program. Goodbye!") CMSY 156 Soccer Calculator Enter games: 10 Enter shots: 14 Enter goals: 4 The goals per game is 0.40 The shots per game is 1.40 The shots per goal is 3.50 Thank you for using the program

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

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago

Question

Write short notes on departmentation.

Answered: 1 week ago

Question

What are the factors affecting organisation structure?

Answered: 1 week ago

Question

What are the features of Management?

Answered: 1 week ago

Question

Briefly explain the advantages of 'Management by Objectives'

Answered: 1 week ago

Question

7-16 Compare Web 2.0 and Web 3.0.

Answered: 1 week ago