Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help me convert this project to C++. thanks!! projO2solution.py * Prevow README.AN Preview README.md 1 Bumi 2 BUM2 3 totalsun 5 7 8 9

please help me convert this project to C++.
thanks!!
image text in transcribed
image text in transcribed
projO2solution.py * Prevow README.AN Preview README.md 1 Bumi 2 BUM2 3 totalsun 5 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 count . Giving values to chars romanIndex ('1'? 2, 'V': 5, 'X': 10, 'L': 50, 'c': 100) Index for returning back to roman nung print("Enter Roman numbers whose sun does not exceed 300) while count -- ! romanNunt - str(input("Enter a Roman nun set in all caps: ")) romanNum2 str(input("Enter a second Roman num set in all caps: ")) for 1 in romanum 1: 1f (1 'I') or (1 -- "V") or (1 -- '*') or (1 -- '1') or (1 -- 'C) count - 1 else: print("Enter a set for the first set of roman numerals") break for 1 in romanNum2: 1f (1 -- 'T') or (1 -- "V") or (1 -- "X') or (1 -- '1') or (1 -- 'C'); count - 1 else: count print("Enter a set for the second set of roman numerals) break n. len(romanNumi) for(.dx, c) in enumerate(romanNumi): 14 1dx 380: print('The Sun of two nuns is out of range (380). Try again.') count - else! count -1 44 46 swallawalla.edu/connect/050a 392ddf3/#/home/project/code/python minal Help review README.md pro02 solution.py Preview README.md 19 - len(romanllum1) Be for(idx, c) in enumerate(romanllum): 31 if idx 388: print("The sum of two nuns is out of range (388). Try again.") count - 46 else: count -1 49 intToRoman - (1: '1', 4: IV. 5: "V", 9: *IX. 10: "X", 40:"XL", se: 'L'. 90: "C", 100: "C") 98989898$&$ OS 51 52 53 Descending Int-five rosan numerals printorder - [480, 100, 90, se, 48, 10, 9, 5, 4, 1] 56 for x in printorder: if totalSun 10: quotient - totalsum// 58 60 if quotient is not zero output-roman numerals if quotient I-@: for y in range (quotient): print(intToRoman[*]. end") totalsum - totalsum Xx print() 64 - OOAD

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

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago