### (Solved) : Wirte Program Get Two Integers N 0 K 1 Whenever T Least One Two Inputs Valid Request Input Q35549080

Wirte a program to get two integers n >0 and k> 1. whenever t least one of the two inputs is not valid. request both inputs again. Only when both inputs are valid, calculate the numerical of value of the following sum: To implement a loop to calculate the sum, you need to identify the relationship between the terms )2 and一剒1)4 and the terms- (n)’ and乱が (112 5! In (2) 6 Use a do while loop to validate the inputs and a for loop to calculate the sum. Your code must not use any selection. Given an integer n (with 1 s n s 40), we want to produce a program that nswereddisplays the equivalent of n, in the roman numerals. Assume that the user will out of 2.00 question always enter a valid value for n. To get full mark, you solution must use at most 2 loops (while or for loops) and at most two selections (switch case or if. else if .. else if) 2 3 4 6 8 9 10 VII VIII IX X 11 12 13 14 15 16 17 1819 20 Xi XII XⅢ XIV XV XVI XVII XVIII XIX XX 21 22 2324 25 26 2728 29 30 XXI XXII XXIII XXIV XXV XXVI XXVII XXvillI 31 3233 34 35 36 37 38 39 40 xxIx xx Show transcribed image text Wirte a program to get two integers n >0 and k> 1. whenever t least one of the two inputs is not valid. request both inputs again. Only when both inputs are valid, calculate the numerical of value of the following sum: To implement a loop to calculate the sum, you need to identify the relationship between the terms )2 and一剒1)4 and the terms- (n)’ and乱が (112 5! In (2) 6 Use a do while loop to validate the inputs and a for loop to calculate the sum. Your code must not use any selection.

Given an integer n (with 1 s n s 40), we want to produce a program that nswereddisplays the equivalent of n, in the roman numerals. Assume that the user will out of 2.00 question always enter a valid value for n. To get full mark, you solution must use at most 2 loops (while or for loops) and at most two selections (switch case or if. else if .. else if) 2 3 4 6 8 9 10 VII VIII IX X 11 12 13 14 15 16 17 1819 20 Xi XII XⅢ XIV XV XVI XVII XVIII XIX XX 21 22 2324 25 26 2728 29 30 XXI XXII XXIII XXIV XXV XXVI XXVII XXvillI 31 3233 34 35 36 37 38 39 40 xxIx xx