Pages

Total Pageviews

Wednesday, June 5, 2019

Lab 3 Exercise Questions at Java Programming

import java.util.Scanner;

class labquestion1 {

   public static void main( String [] args) {
   
   Scanner scanner = new Scanner(System.in);
   scanner.useDelimiter ("!");
         
   System.out.print("Enter your string with an exclametion mark(!):");
   String first = scanner.next();
   String second = scanner.next();
       
   System.out.println(first);
   System.out.println(second); 
   
      }
  }   



import java.util.Scanner;

class labquestion2 {

   public static void main (String [] args) {
   
      double P,R,N, Amount;
      
      Scanner scanner = new Scanner(System.in);
      System.out.print ("Enter the Amount:");
      
      P = scanner.nextDouble();
      
      System.out.print("\n Enter the rate of interest:");
      
      R = scanner.nextDouble();
      
      System.out.print("\n Enter the number of years:");
      
      N = scanner.nextDouble();
      
      Amount = ( P*Math.pow((1+R/100), N));
      
      System.out.print ("\n The amount earned after"  +N+  "years is:" +Amount ); 
    
   }
}    




import java.util.Scanner;

class labquestion3 {

   public static void main (String [] args) {
    
      final double gravConst = 6.67*Math.pow(10, -11);
      final double massEarth = 5.98*Math.pow(10, 24);
      double rexp, rcoef, Satvelocity, radius;
      
      System.out.print ("Enter the coeffient value of the radius:");
      Scanner scanner = new Scanner(System.in);
      
      rcoef = scanner.nextDouble();
      
      System.out.print("Enter the explonent of the radius: ");
      
      rexp = scanner.nextDouble();
      radius = rcoef*Math.pow(10, rexp);
      
      System.out.println("The radius entered is: " + radius);
      
      Satvelocity = Math.sqrt ((gravConst*massEarth)/radius);
      
      System.out.println("The satellite velocity is: "+ Satvelocity+"m/s");
   }

Monday, June 3, 2019

Lab 2 Exercise Questions at Java Programming

import java.util.Scanner;
import java.text.DecimalFormat;

class Exercise6 {
   public static void main( String [] args) {
 
      String firstName, middleName, lastName;
 
      Scanner scanner = new Scanner(System.in);
   
      System.out.print("First Name: ");
      firstName = scanner.next();
   
      System.out.print("Middle Name: ");
      middleName = scanner.next();
   
      System.out.print("Last Name: ");
      lastName = scanner.next();
   
      }
  }       




import java.util.Scanner;

class Exercise5
{
   public static void main(String[] args)
   {
      Scanner keyboard = new Scanner(System.in);
      keyboard.useDelimiter("\\n");
   
      // burası çalışmaz kendin yorumlar hatırlatmalar yazarsın.
      System.out.println("Welcome"); // Ekrana yazıyı yazdıktan sonra bir alt satıra iner
   
   
      System.out.print("Please enter a phrase: ");
      String phrase = keyboard.next();
   
      System.out.println(phrase);
    }
}

http://erdoganakbiyik.blogspot.com/
https://www.youtube.com/channel/UCDsUnmBfVdEPkcC8FlzPKcg

Lab 1 Introduction Practice at Java Programming

class Hello {
   public static void main ( String [] args) {
      System.out.println("Hello World");
   }
}

class DoLittle {
   public static void main (String [] args) {
      int cat = 12;
      int dog = 17;
   
      System.out.println(what(dog));
      System.out.println(dog);
}

   public static int what (int cat) {
      int dog;
      dog = cat + 8;
      return dog;
   }       
 }   

http://erdoganakbiyik.blogspot.com/
https://www.youtube.com/channel/UCDsUnmBfVdEPkcC8FlzPKcg

Friday, May 31, 2019

INFORMATION ABOUT VENUS PLANET - VENÜS GEZEGENİ HAKKINDA BILGILER

It came from 
Venus, whose name is the God of love and beauty.

VENUS IN THE SOLAR SYSTEM, THE SECOND PLANET FARTHEST FROM THE SUN, THE FIRST PLANET WITH THE HIGHEST TEMPERATURE.(ABOUT 900 ° F) 

¨Venus is also known as the twin of the Earth. It is the
closest planet to the Earth as the size of the original.

¨Distance to the Sun: 67,240,000 miles
¨Orbital duration: 225 earth days
¨Day length: 117 earth days
¨Tilt of axis: 177.36 °
Surface
area:
177,700,000 mi²
¨Surface gravity: 8.87 m / sn²

          It rotates aroun itself 243 earth days a year, and around the sun 225 earth days.
The return of Venus is called
retrograde.Venus is one of the two
planets rotating clockwise from
east to west on an axis. The other
planet that does this is Uranus.

There are satellites of all planets except Mercury and Venus.
Atmospheric of Venus is 92 times bigger than Earth's atmospheric pressure.




The closest planet to Earth.
Elements in the


atmosphere of Venus.



95% of the atmosphere of

Venus is CO2,  small

amount of N and other
gases.The clouds in Venus
are filled with Sulfuric
Acid.

Due to its slightly smaller
size and lower density



from the Earth, the mass of
   Venus is about 80% of Earth's.
Due to the large
atmospheric atmosphere of
large sulfuric clouds and
carbon dioxide
surrounding the planet,
almost all of the solar
energy entering the
atmosphere is compressed
and held on the planet's
surface.

A short video
about Venus(1
minute). If you're ready I start.
http://time.co /4450001/venus-life-balmy/











Run into Tough Excitement



One evening, as I was patrolling in my police car, as I usually did, I got a call from the central
post. My teammate and I immediately got into action. We drove quickly to a three-story apartment, where the incident was taking place. It was very dark around that place. I told to my teammate to be extra careful. "Keep your walkie-talkie on," I said. “If we see something important, we can call each other from the walkie-talkie,” I added.
Then, I got out of the police car with my teammate. We entered the building and walked upstairs quickly. As we reached the top of the staris, we noticed an apartment with its door left  open halfway. We took our weapons out of their sheaths and tiptoed toward the apartment. İt was very dark inside. I pushed the door open slowly. We began to move our weapons vertically upwards and proceeded to walk slowly and carefully around the place. We checked the kitchen. We looked in the hall. We looked all over the apartment, but there was nobody there. I had a bad feeling about the whole thing. I knew someone was there. My teammate told me, “Let’s check different rooms.”
We started to check again. While my teammate was searching one of the rooms, I went into a big hall. There were two large seats inside that room. There was a large glass case adjacent to the wall. I kept on searching the room. Then I saw a small door. The door was right next to the glass case. When we first  checked that room, we did not see anything suspeicous. We had not noticed the door. It was a balcony door. Now, as I walked slowly to the door, I came eye to eye with the thief. I told him to surrender. “Lie down slowly,” I ordered him.
He looked at me with a confused gaze and a calm expression, like a bird trapped in a cage. He didn’t seem to know what to do. I pointed the gun at him. I would have shot him if he had moved, but stayed still, looking at me. He kept on staring at me,  as if he could not understand what I was saying to him. Finally I told him, in a loud voice, to lie down. Slowly he began to lie down on the ground. I told him to stay face down and put his hands on his back. In the meantime, I communicated with my teammate on the walkie-talkie. I reported to my team mate that I had already caught the thief. A few minutes later, my partner came to the  balcony to help me. By then, I had already put handcufs on the thief.
My partner took the thief away from the scene and I followed him to our squad car. I waited there for a few minutes. The excitement of the chase was still in me. I tried to calm down a little. I was happy the thied had not made a wrong move. If he had not followed my orders, I would have had to shoot him. Luckily, I caught him without him attacking me. Thanks Allah. In such moments, the human body is filled with fear and anxiety.
After it was over, I kept worrying about what could have had happened had I shot the man. I did not know what I would have done in such a situation. I was glad to have survived this situation, without any problem, and I hoped that I would never again would have to face such a problem. I knew shooting someone was going to be very difficult for me. Making such a hard decision was very challenging for me.
I went home after finishing my duty that day, but I could not sleep. The intensity of the day did not go out of my mind. The next day, I was feeling tired. I had finally realized how hard it was to be a cop. Being under constant stress wears people down. It was very difficult for me to go through violent situations.  I was trying to get away from what I was experiencing. More events were added every day. I realized that it was hard to forget these violent events. I had to learn to live with these problems. I had to learn to survive. If I didn’t, it would not be good for my own health. I had to make a decision. It was going to be a difficult decisions, but I had to do it. I thought about my life and decided that it would not be good for me to live under a constant source of stress. It was necessary for me to focus on the good and happy moments of life. Otherwise, bad events would have impacted me in a negative way.
In my experience of working as a police officer, people have hard and stressful moments in life. These difficult and stressful moments put people's lives in a bad situation. Sometimes I see cops driving  here. They remind me of the challenging and stressful moments I have experienced in the past, but I can't stop the reflection of my happiness in my face as a smile.

                                                                                     Written by Erdogan Akbiyik