Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pls help me with this in JS/JavaScript Programming a. Write a JavaScript program that will convert Arabic number to Roman number (1-3999). M=1000D=500C=100L=50X=10V=5I=1 var num

image text in transcribedPls help me with this in JS/JavaScript Programming

a. Write a JavaScript program that will convert Arabic number to Roman number (1-3999). M=1000D=500C=100L=50X=10V=5I=1 var num = prompt ("Input Arabic number"); Thou = Math.floor (num/1000); Huns = Math.floor (numo1000/100); Tens = Math.floor (num81000\%100/10); ones = Math.floor (numo1000\%8100\%10); if (Thou == 1) ans = "M"; else if (Thou== 2) ans = "MM"; if (Huns == 1) ans1="C"; else if (Huns== 2) ans1=

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

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago