Ext

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Ext as PDF for free.

More details

  • Words: 99
  • Pages: 1
/*angel calderon cop1000 thursday, april 24, 2008 */ import java.util.scanner; public class soundlevel { public static void main(string[] args) { scanner kbr = new scanner(system.in); system.out.println("to find a sound's spl at a distance"); system.out.print("- what is the ref. loudness (decibels)? "); int loudness1 = kbr.nextint(); system.out.print("- what is the ref. distance (meter)? "); double distance1 = kbr.nextdouble(); system.out.print("- what is the new distance? "); double distance2 = kbr.nextdouble(); long loudness2 = loudness1 - math.round(20 * math.log10(distance2/distance1)); " is " +

system.out.println("\nthe spl of the sound at distance = " + distance2 + loudness2 + " bd ");

} }

Related Documents

Ext
May 2020 14
Ext
November 2019 21
Ext
November 2019 29
Ext.3 Y Ext.4
May 2020 5
Mendel Ext
November 2019 14
Zbcv Ext
October 2019 90