Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using python program please ! thank you In-Lab Assignment #2 Write a Python program to generate three multiplications and two additions with numbers generated randomly

using python program please ! thank you image text in transcribed
In-Lab Assignment #2 Write a Python program to generate three multiplications and two additions with numbers generated randomly (numbers between 1 and 11 inclusive). If the student answers correctly, he or she will get an encouragement message "You are smart !"; otherwise the correct answer is displayed. Here is a sample run of the program; with user's input is in red: 3 x 4 = 12 "You are smart" 1 x 7 = 2 "Ohh.. Sorry, Correct. Answer is 7" 8 x 10 = 80 "You are smart" 8 + 7 = 10 "Ohh.. Sorry, Correct. Answer is 15" 10 + 5 = 15 "You are smart" I You answered correctly: 3 You answered wrong: 2 In the end show the total correct answers the student answered and total of wrong answers

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_2

Step: 3

blur-text-image_3

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

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions