cs101 assignment 3 idea solution 2019

This is an idea solution of the assignment not exact solution.  please change it according to your requirements.

cs101 assignment 3 idea solution 2019

 

<html>
<head>
<script language=”JavaScript”>
<!–
function pkrConverter(){
document.converter.dollar.value = document.converter.pkr.value * 158.93
document.converter.yuan.value = document.converter.pkr.value * 23.12
document.converter.won.value = document.converter.pkr.value * 7.12
document.converter.reyal.value = document.converter.pkr.value * 42.37
document.converter.dinnar.value = document.converter.pkr.value * 522.21
}
function dollarConverter(){
document.converter.pkr.value = document.converter.dollar.value * 158.93
document.converter.yuan.value = document.converter.dollar.value * 23.12
document.converter.won.value = document.converter.dollar.value * 7.12
document.converter.reyal.value = document.converter.dollar.value * 7.12
document.converter.dinnar.value = document.converter.dollar.value * 7.12
}
function yuanConverter(){
document.converter.dollar.value = document.converter.yuan.value * 23.12
document.converter.pkr.value = document.converter.yuan.value * 23.12
document.converter.won.value = document.converter.yuan.value * 23.12
document.converter.reyal.value = document.converter.yuan.value * 23.12
document.converter.dinnar.value = document.converter.yuan.value * 23.12
}
function wonConverter(){
document.converter.dollar.value = document.converter.won.value * 22.32
document.converter.yuan.value = document.converter.won.value * 23.12
document.converter.pkr.value = document.converter.won.value * 7.12
document.converter.reyal.value = document.converter.won.value * 7.12
document.converter.dinnae.value = document.converter.won.value * 7.12
}

function reyalConverter(){
document.converter.dollar.value = document.converter.reyal.value * 42.3
document.converter.yuan.value = document.converter.reyal.value * 23.12
document.converter.pkr.value = document.converter.reyal.value * 42.37
document.converter.won.value = document.converter.reyal.value * 42.37
document.converter.dinnar.value = document.converter.reyal.value * 42.37
}

function dinnarConverter(){
document.converter.dollar.value = document.converter.dinnar.value * 22.32
document.converter.yuan.value = document.converter.dinnar.value * 23.12
document.converter.pkr.value = document.converter.dinnar.value * 7.12
document.converter.won.value = document.converter.dinnar.value * 7.12
document.converter.dinnar.value = document.converter.dinnar.value * 7.12
}
//–>
</script>
</head>

<body bgcolor=”cyan”>
<h1 align=”center”> Currency Converter<h1>
<h2 align=”center”> welcome to currency converter<h2>

<form name=”converter”>

<table border=”1″ align =”center”>
<tr>
<td>PAK currency (Rupees): </td><td><input type=”text” name=”pkr” onChange=”pkrConverter()” /></td> <td colspan=”2″ align=”center”><input type=”button” value=”Convert!” /></td>
</tr>
<tr>
<td>Dollar American: </td><td><input type=”text” name=”dollar” onChange=”dollarConverter()” /></td>
</tr>
<tr>
<td> yuan China:</td><td><input type=”text” name=”yuan” onChange=”yuanConverter()” /></td>
</tr>
<tr>
<td> won Korea: </td><td><input type=”text” name=”won” onChange=”wonConverter()” /></td>
</tr>
<tr>
<td> Reyal Saudi Arabia: </td><td><input type=”text” name=”reyal” onChange=”reyalConverter()” /></td>
</tr>
<tr>
<td> Dinnar Kuait: </td><td><input type=”text” name=”dinnar” onChange=”dinnarConverter()” /></td>
</tr>
<tr>
<td colspan=”2″ align=”center”><input type=”reset” value=”Reset” /></td>
</tr>
<tr>

<td> you can press reset button for reseting form</td>
</tr>
</table>
</form>
</body>
</html>

Related posts click here

https://vuhelp.pk/group/cs101/forum/topics/cs101-assignment-3-idea-solution

You May Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: