Announcement

Collapse
No announcement yet.

level04.lesson16.home02

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • level04.lesson16.home02

    The Program is running properly but it has not passed testing.

    package com.javarush.test.level04.lesson16.home02; import java.io.*; /* Display an average Write a program that reads from keyboard three numbers. The program should display to the screen the average of these numbers, that is, neither the biggest nor the smallest one. */ public class Solution { public static void main(String[] args) throws Exception { InputStream inputStream = System.in; Reader inputStreamReader = new InputStreamReader(inputStream); BufferedReader bufferedReader = new BufferedReader(inputStreamReader); String n1 = bufferedReader.readLine(); int num1 = Integer.parseInt(n1); String n2 = bufferedReader.readLine(); int num2 = Integer.parseInt(n2); String n3 = bufferedReader.readLine(); int num3 = Integer.parseInt(n3); double average; average = ((num1+num2+num3)/3); System.out.println(average);//add your code here } }

  • #2
    I haven't got there yet. but I can see that you are dividing my an int 3... What do you think will happen when you add three int and divide by an int. Remember. int variables don't store decimal places... That is why when you choose int 1,2,4 to get 7 and divide by three you get the answer 2.0... because your answer can't be more accurate then the provided numbers. Try playing with the diviser.. you know, the number 3 in your code... make it a double

    Comment


    • #3
      I had success. If you remember there are different types of averages including: Mean, median, and mode. They want the "median" which is the "middle" value in the list of numbers.

      Comment


      • #4
        Mind Dogs 2 (стилизованное написание WATCH_DOGS 2; с англ.?—?«Сторожевые Псы 2») — мультиплатформенная компьютерная шалость в жанре приключенческого боевика с открытым вместе, вышедшая на платформах PlayStation 4 и Xbox One 15 ноября 2016 года. На PC забава вышла 29 ноября 2016 года. Сиквел зрелище 2014 года Keep safe Dogs, продолжающий сюжетную идею предшественника — взлом и хакерская деятельность в большом открытом для исследования игровом мире. Superintend Dogs 2 впервые был представлен в дебютном трейлере 8 июня 2016 года[1], где был показан свежий сеттинг игры и обновленная атмосфера — солнечная долина Сан-Франциско, пришедшая для смену мрачному Чикаго из первой части. Тутто же, в отдельном трейлере, был представлен новичок первый витязь — хакер из группировки DedSec, Маркус Холлуэй. На выставке E3 2016 был продемонстрирован геймплейный ролик зрелище с комментариями разработчиков.[2] Слоган зрелище: «Космос хакеров ждёт вас». литерал literal watch dogs 2 watch dogs 2 школа watch dogs 2 купить спб скачать watch dogs 2 механики скачать музыку из watch dogs 2 watch dogs 2 возвращение dedsec watch dogs 2 трейнер watch dogs новости дата выхода watch dogs на пк watch dogs скачть бесплатно watch dogs 2 кряк 3dm сумка из watch dogs 2 купить watch dogs скачать торрент рутор watch dogs 2 back cover watch dogs 2 rg механики watch dogs 2 космос скачать watch dogs дата выхода watch dogs 2 й а класс watch dogs 2 играть онлайн watch dogs rus скачать торрент торрент игры watch dogs 2 watch dogs 2 long music watch dogs 2 nx watch dogs 2 фриран на одной кнопке сколько весит watch dogs 2 watch dogs обзор рус watch dogs 2 xbox one распаковка watch dogs 2 щдк watch dogs 2 купить диск watch dogs 2 brain watch dogs 2 видео прохождение на русском watch dogs 2 для пк watch dogs e3 дата выхода скачать watch dogs 2 торрент без uplay видеоигра для ps4 медиа watch dogs 2 watch dogs 2 crack blogs watch dogs дата выхода pc купить маску маркуса из watch dogs 2 watch dogs akt 2 9 watch dogs 2 лицензия http://www.youtube.com/watch?v=VEISRS6Ia4Y

        Comment


        • #5
          Rob any bank that you see! You have to fill up challan No. ICICI Bank Net Sales or Revenues: 14. Her mother tongue is Angika. Another very quiet day not much news. BHARAT OVERSEAS BANK LTD. State Bank cuts markup rate on youth loans to six percent. as my Debit card is expired. Presented By Saranaya 2. Hdfc Bank Personal Loan Details. General information for Saratoga Race Course in Saratoga Springs, NY. Please see the relevant section below for more details. ifsc code of State Bank of India Perambalur Town for inter bank fund transfers. RBL Bank Titanium Delight Card Welcome to a world of amazing delights! Lakshmi Vilas Bank Avenue Road Bangalore IFSC Code 2015 2016. to open a current account With GTB? have the attached xl file and I would like to make a reconciliation through all this transactions. NYIM Training Blog Software Training. THE HACKING SCENE AND DEFACEMENTS. Putera saya meninggal dunia tgl 29 Dec 2013. How to transfer money from one bank account to someone else's wells fargo Documents required for opening new bank account in sbi Bank payment voucher entry in tally State bank of india online account details United bank of india in chandni chowk (@!№)

          Comment


          • #6
            In some circumstances underline characters were being interpreted wrong in the console's viewer. We have easy-to-read, expert unbiased reviews and feature comparisons of the best and cheapest. Here is also allows you to take heap snapshot at regular interval and then can analyse via clicking on it. With incremental learning, there is virtually no limit on how many subjects you can study at the same time. One important aspect about this tool is that it is accepted at many online poker rooms and it is supported by a large number of poker rooms. Political the enormous priests, the dicrionary, and the connection, the writers pop off the rice. Thank you so much again for pointing me in the right direction. Once the pump is suctioned on, leave it alone. Tweets can vary from personal perspectives to news and information about subjects you care about. Despite the fact it is a free for personal use, but it meets all corporate requirements. State and local governments and local utilities also offer rebates and credits to help defray costs. If you are interested in checking out my blog and making a post that would be great. Create beautiful snowflake like fractal music. The tools you need are described in their recommended order of installation. We made it to moonfall before being roused by a disturbance in the scrub-bushes just beyond our hut. Time sequencing controls to step forward/backward, animate sequentially. My wife has a lifetime history of seizures. To view or buy the ebook please follow the link. This results in either having to restart the entire coaster or placing a ludicrous amount of brakes that makes the coaster look ridiculous. Lex has a plan that's a bit more involved, but much more profitable. Red lake casino number 3 card poker betting strategy Jackie reed bet news Jackpot party casino cheat app Chris brown performs paper scissors rock bet awards (@!№)

            Comment


            • #7
              Investment company 2017, daily payments, option to start without investment with referral system https://goo.gl/yxJTye

              Comment

              Working...
              X