Microsoft
Software
Hardware
Network
Question : thanks in advance
Hi all Experts,
Please help me with the math problem I have and thank you very much in advance.
---------------
Calculate the Kbps (kilobits per second) of a MP3 file.
If you have a 5 MB file with a length of 3 minutes, you would use the formular below to find out the Kbps (kilobits per second) of a MP3 file.
1K = 1024 bytes
1M = 1024K
1 hour = 60 minutes
1 minute = 60 seconds
5MB = 5 * 1024 * 1024 bytes = 5242880 bytes
5242880 * 8 / 180 / 1000 = ~233 kbps
------------------
<html xmlns="
http://www.w3.org/1
999/xhtml
"
>
<head>
<TITLE></TITLE>
<script type="text/javascript">
var Hour = 0;
var Minute = 3;
var Second = 0;
function F_Calculate_MP3_Bitrate_Fo
rward ()
{
var i = parseFloat(document.getEle
mentById('
Calculate_
MP3_Bitrat
e_Forward'
).value);
var m = "";
if (!isNaN(i)) m = Math.ceil(((i * 1024 * 1024) * 8 / ((Hour * 3600) + (Minute * 60) + (Second * 1)) / 1000) / 1024 / 1024);
document.getElementById('C
alculate_M
P3_Bitrate
_Reversed'
).value = m;
}
function F_Calculate_MP3_Bitrate_Re
versed ()
{
var i = parseFloat(document.getEle
mentById('
Calculate_
MP3_Bitrat
e_Reversed
').value);
var m = "";
if (!isNaN(i)) m = Math.ceil(((i * 1024 * 1024) / 8 * ((Hour * 3600) + (Minute * 60) + (Second * 1)) * 1000) / 1024 / 1024);
document.getElementById('C
alculate_M
P3_Bitrate
_Forward')
.value = m;
}
function setbitrate_Hour(in_hour)
{
Hour = in_hour;
}
function setbitrate_Minute(in_minut
e)
{
Minute = in_minute;
}
function setbitrate_Second(in_secon
d)
{
Second = in_second;
}
</script>
</head>
<body>
<br />
<center>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="98%">
<tr>
<td width="40%">
<label><input id="Calculate_MP3_Bitrate_
Forward" onKeyUp="F_Calculate_MP3_B
itrate_For
ward()"/><
font color="#000000" face="Tahoma" style="font-size: 8pt"> File Size (MB)</font></label>
</td>
<td <td width="20%"><select name="Hour" id="Hour" onchange="setbitrate_Hour(
this.optio
ns[this.se
lectedInde
x].value);
">
<option value="0" selected="selected">0 hour</option>
<option value="1">1 hour</option>
<option value="2">2 hours</option>
</select>
</td>
<td <td width="20%"><select name="Minute" id="Minute" onchange="setbitrate_Minut
e(this.opt
ions[this.
selectedIn
dex].value
);">
<option value="1">1 minute</option>
<option value="2">2 minutes</option>
<option value="3" selected="selected">3 minutes</option>
<option value="4">4 minutes</option>
<option value="5">5 minutes</option>
<option value="6">6 minutes</option>
<option value="7">7 minutes</option>
<option value="8">8 minutes</option>
<option value="9">9 minutes</option>
<option value="10">10 minutes</option>
<option value="11">11 minutes</option>
</select>
</td>
<td <td width="20%"><select name="Second" id="Second" onchange="setbitrate_Secon
d(this.opt
ions[this.
selectedIn
dex].value
);">
<option value="0" selected="selected">0 Second</option>
<option value="1">1 Second</option>
<option value="2">2 Seconds</option>
<option value="3">3 Seconds</option>
<option value="4">4 Seconds</option>
<option value="5">5 Seconds</option>
<option value="6">6 Seconds</option>
<option value="7">7 Seconds</option>
<option value="8">8 Seconds</option>
<option value="9">9 Seconds</option>
<option value="10">10 Seconds</option>
<option value="11">11 Seconds</option>
</select>
</td>
<td width="30%">
<label><input id="Calculate_MP3_Bitrate_
Reversed" onKeyUp="F_Calculate_MP3_B
itrate_Rev
ersed()"/>
<font color="#000000" face="Tahoma" style="font-size: 8pt"> (Kbps)</font></
label>
</td>
</tr>
</table>
</center>
</body>
</html>
Answer : thanks in advance
Actually the mounting hole spacing is very well defined by the ATA specifications.
Here's the appropriate page from an IBM document that details the hole locations ...
Random Solutions
VBA routien - simple code help
Read Data from Excel using OLEDB in Visual Basic 2010
Storing attachmentd in SQL Server
paypal
During log in, Windows Red Shield pops up-says I have no firewalll-then finds it-running XP and AVG-start up programs missing?
SBS 2008 Group Policies not applied
Laptop Screen goes blank when undocking
Displaying SPANS to simulate tb-lr rather than the normal lr-tb way of displaying things.
Date SQL
VPN and Voip