# VU HELP

Virtual University of Pakistan Study forum !

# CS101 Assignment 3 Solution And Discussion Due Date 14th July 2017

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

codding

Cs101 Assignment no 3 solution 2017

<html>
<title>Student Id: “MC170200520″</title>
<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>
<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;
}
if(y == “b”){
document.getElementById(‘bottomline’).innerHTML = “You Selected: Fahrenheit to Celsius”;
w = (x -32) * 5 / 9;
}
}
</script>
</tr>
</table>

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

## Discussion Forum

### Cs101 assignment solution

Started by Iqra Mubasher.
by Muhammad Abdullah 8 hours ago.

### cs101 assingment solution 2018

by + caмe4ѕтυdιeѕ May 9.

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

Started by + caмe4ѕтυdιeѕ.
by + caмe4ѕтυdιeѕ May 8.

### CS101 Final Term Paper From 17 Feb to 28 Feb 2017

Started by Cute S@mra.