Завершен

Python code Help Completing

FOR School project. Completed most of code, please see below for code I have done so far

Program must generate random fraction questions using the basic math operators

Each question should be randomly generated

Each operator should be randomly generated

You should provide the answer in lowest terms

Each output should be formatted to look as follows 2/3 * 3/4 = 1/2

You cannot use the built in Fraction Functions in Python

Your program should repeat 5 times. User has to enter in answer for each question. At the end It should display the amount of correct answers and wrong answers at the end as well as correct answers to each question.

I CANT FIGURE OUT HOW TO DISPLAY CORRECT ANSWERS, AND NUMBER OF WRONG AND CORRECT ANSWERS

import replit

import time

import random

from fractions import gcd

count=0

wrong=0

math = ['-', '*', '/', '+', ]

random1=([login to view URL](math))

num1=[login to view URL](1,10)

den1=[login to view URL](1,10)

num2=[login to view URL](1,10)

den2=[login to view URL](1,10)

count=0

wrong=0

for i in range (5):

math = ['-', '*', '/', '+', ]

random1=([login to view URL](math))

num1=[login to view URL](1,10)

den1=[login to view URL](1,10)

num2=[login to view URL](1,10)

den2=[login to view URL](1,10)

print(num1,"/",den1,(""),random1, (""),num2,"/",den2)

ansnem1=int(input("what is the numerator to this fraction question :"))

ansden=int(input("what is the denominator to this fraction question :"))

if ("*" in random1):

deno=(den1*den2)

numer=(num1*num2)

elif (ansnem1==numer,ansden==deno):

print ("correct")

count=count+1

print(count)

else:

print("wrong")

if ("-" in random1):

deno1=(den1*den2)

numos=(num1*den2)

numos1=(num2*den1)

numer1=(numos-numos1)

print(numer1,"/",deno1)

if (ansnem1==numer1,ansden==deno1):

print ("correct")

count=count+1

print(count)

[login to view URL](5)

[login to view URL]()

else:

print("wrong")

if ("/" in random1):

numer2=(num1*den2)

deno2=(den1*num2)

print(numer2,"/",deno2)

if (ansnem1==numer2,ansden==deno2):

print ("correct")

count=count+1

print(count)

[login to view URL](5)

[login to view URL]()

else:

print("wrong")

if ("+" in random1):

denno3=(den1*den2)

numer10=(num1*den2)

nummer20=(num2*den1)

nummerrr=(numer10+nummer20)

print(nummerrr,"/",denno3)

if (ansnem1==nummerrr,ansden==denno3):

print ("correct")

count=count+1

print(count)

[login to view URL](5)

[login to view URL]()

else:

print("wrong")

print(count)

Навыки: Python

Показать больше: python tutorial, beginners guide to python, python app, pythong, python coding help online free, python coding platform, python download, python programming for the absolute beginner, zip code help, python projects help needed, asp code help fix, adengage code help, python code create geographic map, code using python 3 on ubuntu for computer security, write a report on how to estimate cost of a project for the management of great kosa project for ghanas security service, write an article for publication in the national newspapers on the topic how to prevent leakage of waec exams papers in the coun, how to add number for paid 4 typing sign up, how to get loss of an python, how to get number for freelancer, how to get thousands of followers on twitter for free

О работодателе:
( 1 отзыв ) Mississauga, Canada

ID проекта: #26417917

Поручен:

hasankassim7

Hi I can help

$30 CAD за 1 день
(15 отзывов(-а))
4.2

15 фрилансеров(-а) готовы выполнить эту работу в среднем за $38

MohammedSulhi

I am an experienced Data Scientist and Machine Learning Engineer. Data Visualization, NLP, Deep learning, Artificial intelligence, machine learning, Data structures, and algorithms are my major fields. I finished speci Больше

$20 CAD за 1 день
(40 отзывов(-а))
4.9
profvipabutaleb

I'm computer engineering TA with 10+ years of experience. Experienced with python programming numpy,scipy,pandas , matplotlib , qt4 , tkInter , GUI ,signal processing , big data analytics , machine learning through py Больше

$30 CAD за 1 день
(20 отзывов(-а))
4.2
urmate

Hi there I am a senior software engineer with 10 years of practical programming experience. I have excellent programming and development skills in various programming languages and frameworks. I am interested in your Больше

$30 CAD за 1 день
(20 отзывов(-а))
4.3
kanikasinghal22

I am phd in statistics from IIT Kharagpur (same Institute as of Sunder Pichai :)) and working as data scientist since last 6 years. I have 10 years of experience in python. I can give you a quality and quick output. Больше

$20 CAD за 1 день
(8 отзывов(-а))
3.3
braincenter

Hello, Hope this message finds you well, I checked your details and I believe that my experience is what you are looking 4. I have been working on similar projects for the past eight years, and I have the essential sk Больше

$250 CAD за 4 дней(-я)
(7 отзывов(-а))
3.8
Muhammadsamran

Hello Sir/ Ma’am As a highly skilled full stack developer, I have rich experience in JAVA, C, C++, C# Python , Arduino, [login to view URL], Word press, and ANDROID. I am very confident with my skills and I'd like to he Больше

$20 CAD за 7 дней(-я)
(2 отзывов(-а))
2.1
olgastolyarovare

Hello, sir. I'm pretty happy to bid on this interesting project. I read your description carefully and I think that I am the developer you are looking for and are suitable for this task. I have rich experience in Pytho Больше

$30 CAD за 1 день
(2 отзывов(-а))
1.5
Mahihassi

I am expert in python. I read the code very carefully. I can modify it according to the condition. I am very hardworking. Please do consider me.

$30 CAD за 2 дней(-я)
(1 отзыв)
1.4
SmartTechPeople

Hello, I am an experienced software engineer in python. I would love the opportunity to speak with you and help you to solve your school project. Thanks,

$25 CAD за 1 день
(2 отзывов(-а))
1.3
FredrickSykes

Thanks for your job posting I just read your job posting and your job catches my eye. I am skilled web developer with skills including Python. My deep experience includes Node.js/Express as well as more traditional te Больше

$20 CAD за 3 дней(-я)
(0 отзывов(-а))
0.0
MohammadHamza58

hey there it's Hamza, I am python developer with good math and logic skills I went through your project and it looks easier to me I can complete this code in least amount. please contact me for providing further infor Больше

$12 CAD за 4 дней(-я)
(0 отзывов(-а))
0.0
HamzaPProgrammer

I carefully read your proposal and the code you wrote and I can complete the job you want in 1h, please sent the a message to discuss more details.

$20 CAD за 1 день
(0 отзывов(-а))
0.0
haseebarshad55

Hello! i have done many such codes in my university. i can complete this code for you. we can discuss details in chat. i assure you full credit for this task. Thanks

$20 CAD за 1 день
(0 отзывов(-а))
0.0
kcofodile30

Hi there, I am a python expert and I have already made the necessary adjustments to your code. I can also make it a standalone app/software if required. Only pay if you are satisfied with the work. Thanks. Regards, Kc

$19 CAD за 1 день
(1 отзыв)
0.2