Assignment No. 03 (Graded) SEMESTER Spring 2017 CS101- Introduction to Computing
Total Marks: 15
Due Date: 14/07//2017
Problem Statement
You are required to design web page as per the following screenshot (using HTML and JavaScript).
Following steps shows the working of web page.
Step 1: Enter value in text box.
Step 2: Value entered in text box.
Step 3: Select a value from Dropdown List. (Option 1 = Fahrenheit, Option 2 = Celsius)
Step 4: If you select “Celsius” from Dropdown List result shows in Answer text box and dynamic message “You selected: Celsius to Fahrenheit”.
Output must not be in fractional value but do not use Math.round() method to get the result as an integer.
Step 5 : If you select “Fahrenheit” from Dropdown List result shows in Answer text box and dynamic message “You selected : Fahrenheit to Celsius”.
Note:
1. Design your assignment as per above Images.(Assignment with different design will be marked zero)
2. The above given steps shows the working of web page.
3. Output must be not in fractional value but do not use Math.round() method to get the result as an integer.
4. Do not use Button.
5. You are required to develop a web page using HTML and JavaScript as per above Images.
For any query about the assignment, contact at cs101@vu.edu.pk

Views: 3893

Attachments:

Replies to This Discussion

codes nzar a nae ray us my

i have the same solution but its not automatically converting the value.
means no output.
i have also tried this coding too.
have u checked it ??

thanks dear user and please give me all CS panksst paper link and tha

Complete Solution Of CS101 Assignment No.3

Attachments:

not working bro 

Save it with .HTML extension

yes brother i have saved html file and everything is ok but it dont automatically provide output in the answer box 

i have pasted this coding in notepad but still problem is existing 

still the problem is existing please check your html file and check it automatically gives answer 
please inform me then 

codding

Cs101 Assignment no 3 solution 2017

<html>
<head>
<title>Student Id: “MC170200520″</title>
</head>
<body>
<h1>Convert temprature</h1>
<table>
<tr>
<td>Enter a value:</td>
<td><input type=”text” onChange=”myFunction()” name=”uvalue” id=”uvalue”></td>
<td>
<select name=”utype” id=”utype” onChange=”myFunction()”>
<option value=”b”>Fahrenheit (F&deg;)</option>
<option value=”a”>Celsius (C&deg;)</option>
</select>
</td>
</tr>
<tr><td>Answer:</td>
<td><input type=”text” name=”answer” id=”answer”></td>
</tr>
<tr>
<td></td>
<td colspan=”2″><p id=”bottomline”></p></td>
<script>

Cs101 Assignment no 3 solution 2017  by learnspecial
functionmyFunction() {
var w;
var x = document.getElementById(‘uvalue’).value;
var y = document.getElementById(‘utype’).value;
functionRoundNum(number){
var a = number % 1;
return number-a+(a/1+1>>1)*1
}

Cs101 Assignment no 3 solution 2017 by learnspecial

if(y == “a”){
document.getElementById(‘bottomline’).innerHTML = “You Selected: Celsius to Fahrenheit”;
w = x * 9 / 5 + 32;
document.getElementById(‘answer’).value = RoundNum(w);
}
if(y == “b”){
document.getElementById(‘bottomline’).innerHTML = “You Selected: Fahrenheit to Celsius”;
w = (x -32) * 5 / 9;
document.getElementById(‘answer’).value = RoundNum(w);
}
}
</script>
</tr>
</table>

<div align=”center”>
</body>
</html>

RSS

Discussion Forum

Cs101 assignment solution

Started by Iqra Mubasher.
Last reply
by Muhammad Abdullah 8 hours ago. 12 Replies

cs101 assingment solution 2018

Started by Muhammad Hasan.
Last reply
by + caмe4ѕтυdιeѕ May 9. 1 Reply

CS101 Assignment # 1 Due Date: 9th May, 2018

Started by + caмe4ѕтυdιeѕ.
Last reply
by + caмe4ѕтυdιeѕ May 8. 12 Replies

Assignment NO 02 of cs101

Started by wasim akram.
Last reply
by InnoCent Jan 15. 2 Replies

SPONSORED LINKS

© 2018   Created by Muhammad Anwar Tahseen.   Powered by

Badges  |  Report an Issue  |  Terms of Service