Pages

Rabu, 15 Maret 2017

Tugas Softskill Materi Bulan Pertama

matakuliah Bahasa Inggris Bisnis 2

English Exercise
- Conditional Sentence
- Used To
- Would Rather
- Must/Should + Perfective
- Modals + Perfective
- Adjective and Adverbs
- Linking
- Comparisons



Exercise 21: Conditional Sentence (page 97 – 98)
1.      Henry talks to his  dog as if it Understood (understand) him.
2.      If they had left the house earlier, they Would not have been (be; negative) so late getting to the airport that they could not check their baggage.
3.      If I finish the dress before Saturday, I Will give (give) it to my sister for her birthday.
4.      If I had seen the movie, I Would have told (tell) you about it last night.
5.      Had Bob not interfered in his sister’s marital problems, there Would have been (be) peace between them
6.      He would give you the money if he Had (have) it.
7.      I wish they Stopped (stop} making so much noise so that I could concentrate.
8.      She would call you immediately if she Needed (need) help.
9.      Had they arrived at the sale early, they Would have found (find) a better selection.
10.  We hope that you Enjoyed (enjoy) the party last night.
11.  If you have enough time, please Paint (paint) the chair before you leave.
12.  We could go for a drive if today Were (be) Saturday.
13.  If she wins the prize, it will be because she Writes (Write) very well.
14.  Mike wished that the editors Had permitted (permit) him to copy some of their material.
15.  Joel wishes that the editors Had spent (spend) his vacationon the Gulf Coast next year.
16.  I Will accept (accept) if they invite me to the party.
17.  If your mother Buys (buy) that car for you, will you be happy ?
18.  If he Had decided (decide) earlier, he could have left on the afternoon flight.
19.  Had we known your address, we Would have written (write) you a letter.
20.  If the roofer doesn’t come soon, the rain Will leak (leak) inside.
21.  Because Rose did so poorly on the exam, she wishes that she Studied (study) harder last night.
22.  My dog always wakes me up if he Hears (hear) strange noises.
23.  If you See (see) marry today, please ask her to call me.
24.  If he Gets (get) the raise, it will be because he does a good job.
25.  The teacher will not accept our work if we Turn (turn) it in late.
26.  Mrs. Wood always talks to her tenth-grade student as tough they Were (be) adults
27.  If he had left already, he Would have called (call) us.
28.  If they had know him, they Would have talked (talk) to him.
29.  He would understand it if you Explained (explain) it to him more slowly.
30.  I could understand the French teacher if she Spoke (speak) more slowly.

Exercise 22: Used To (page 99)
1.      I was used to Eating (eat) at noon when I started school.
2.      He used to Eating (eat) dinner at five o’clock.
3.      When I was young, I used to Swimming (swim) every day.
4.      He used to Liking (like) her, but he doesn’t anymore.
5.      Don’t worry, Some day you will get used to Speaking (speak) English.
6.      Alvaro can’t get used to Studying (study).
7.      He used to Dancing (dance) every night, but now he studies.
8.      Adam is used to Sleeping (sleep) late on weekends.
9.      Chicko is used to Eating (eat) American food now.
10.  She finally got used to Eating (eat) our food.

Exercise 23: Would Rather (page 101 – 102)
1.      We would rather Stay (stay) home tonight.
2.      Mr. jones would rather Stayed (stay) home last night.
3.      The policeman would rather Work (work) on Saturday than on Sunday.
4.      Maria would rather that we Studied (study) more than we do.
5.      George would rather Not Study (study, negative) tonight.
6.      The photographer would rather Have (have) more night.
7.      The photographer would rather that we Stood (stand) closer together than we are standing.
8.      Carmen would rather Not cook (cook, negative) for the entire family.
9.      She would rather that you Had not arrived (arrive, negative) last night.
10.  John would rather Have slept (sleep) than worked last night.

Exercise 24: Must/Should + Perfective (page 105)
1.      Henri was deported for having and expired visa, He Should have had (have) his visa renewed.
2.      Julicia was absent for the first time yesterday. She Must have been (be) sick.
3.      The photos are black. The X rays at the airport Must have damaged (damage) them.
4.      Blanca got a parking ticket. She Should not have packed (park, negative) in a reserved spot, since she had no permit.
5.      Carmencita did very well on the exam. She Must have studied (study) very hard.
6.      Jeanette did very badly on the exam. She Should have studied (study) harder.
7.      German called us as soon as his wife had her baby, He Must have been (be) very proud.
8.      Eve had to pay $5.00 because she wrote a bad check, She Should have deposit (deposit) her money before she wrote a check.
9.      John isn’t here yet. He Must have forgotten (forget) about our meeting.
10.  Alexis failed the exam, He Must not have been studied (study; negative) enough.

Exercise 25: Modals + Perfective (page 105 – 106)
1.      If I had a bicycle, (I would) ride it every day.
2.      Geroge (Would have gone) on a trip to Chicago if he had time.
3.      Marcela didn’t come to class yesterday, she (May have had) an accident.
4.      John didn’t do his homework, so the teacher became very angry, John (Should have done) his homework.
5.      Sharon was supposed to be here at nine o’clock she (Must have forgotten) about our meeting.
6.      Where do you think juan is today ? I have no idea, He (May have slept) late.
7.      George missed class today, He (Might have had) an accident.
8.      Robert arrived without his book, He (Could have lost) it.
9.      Thomas received a warning for speeding, He (Should not have driven) so fast.
10.  Henry’s car stopped on the highway, It (may have run) out of gas.

Exercise 26: Adjective and Adverbs (page 107)
1.      Rita plays the violin (Well).
2.      That is an (Intense) novel.
3.      The sun is shining (Brightly).
4.      The girls speak (Fluent) French.
5.      The boys speak Spanish (Fluently).
6.      The table has a (Smooth) surface.
7.      We must figure our income tax returns (Accurately).
8.      We don’t like to drink (Bitter) tea.
9.      The plane will arrive (Soon)
10.  He had an accident because he was driving too (Fast).

Exercise 27: Linking (Copulative) Verbs (page 109)
1.      Your could sounds (Terrible).
2.      The pianist plays very (Well).
3.      The food in the restaurant always tastes (Good).
4.      The campers remained (Calm) despite the thunderstorm.
5.      They became (Sick) after eating the contaminated food.
6.      Professor calandra looked (Quickly) at the students sketches.
7.      Paco was working (Diligently) on the project.
8.      Paul protested (Vehemently) about the new proposals.
9.      Our the nigntbors appeared (Relaxed) after their vacation.
10.  The music sounded too (Noisy) to be classical.

Exercise 28: Comparisons (page 114)
1.      John and his friends left As soon (soon) as the professor had finished his lecture.
2.      His job is More important (important) than his friend’s.
3.      He plays the guitar As well (well) as Andres Segovia.
4.      A new house is much More expensive (expensive) than an older one.
5.      Las week was As hot (hot) as this week.
6.      Martha is More talented (talented) than her cousin.
7.      Bill’s descriptions are More colorful (colorful) than his wife’s.
8.      Nobody is Happier (happy) than Maria Elena.
9.      The boys felt Worse (bad) than the girls about losing the game.
10.  A greyhound runs Faster (fast) than a Chihuahua.

Exercise 29: Comparisons (page 114)
1.      The Empire State Building is taller Than the Statue of Liberty.
2.      California is farther from New York Than pennsyvalnia.
3.      His assignment is different From mine.
4.      Louise reads more quickly Than his sisters.
5.      no animal is so big As King Kong.
6.      That report is less impressive Than the government’s.
7.      Sam wears the same shirt As his teammates.
8.      Dave paints much more realistically Then his professor.
9.      The twins have less money at the end of the month Then they have at the beginning.
10.  Her sports car is different From nancy’s.

Exercise 30: Comparisons (page 117 – 118)
1.      Of the four dresses, I like the red one (Best).
2.      Phil is the (Happiest) person that we know.
3.      Pat’s car is (Faster) than Dan’s.
4.      This is the (Creamiest) ice cream I have had in a long time.
5.      This poster is (More colorful) than the one in the hall.
6.      Does fred feel (Better) today than he did yesterday ?.
7.      This vegetable soup tastes very (Good).
8.      While trying to balance the baskets on her head, the woman walked (More awkwardly) than her daughter.
9.      Jane is the (Least) athletic of all the women.
10.  My cat is the (Pretties) of the two.
11.  This summary is (The best) of the pair.
12.  Your heritage is different (From) mine.
13.  This painting is (Less impressive) than the one in the other gallery.
14.  The colder the weather gets (The sicker) I feel.
15.  No sooner had he received the letter (When) he called Maria.
16.  A mink coat costs (Twice as much as) a sable coat.
17.  Jim has as (Little) opportunities to play tennis as I.
18.  That recipe call for (Much) more sugar then mine does.
19.  The museum is the (Farther) away of the three buildings.
20.  George Washington is (More famous) than John Jay.


Selasa, 29 November 2016

Pengertian Queue




Queue (antrian) adalah barisan elemen yang apabila elemen ditambah maka penambahannya berada di posisi belakang (rear) dan jika dilakukan pengambilan elemen dilakukan di elemen paling depan (front). Oleh karena itu, queue bersifat FIFO (first in first out).

Implementasi Queue dengan Linear Array
Linear Array
Linear array adalah suatu array yang dibuat seakan-akan merupakan suatu garis lurus dengan satu pintu masuk dan satu pintu keluar. Berikut ini diberikan deklarasi kelas Queue Linear sebagai implementasi dari Queue menggunakan linear array. Dalam prakteknya, anda dapat menggantinya sesuai dengan kebutuhan Anda. Data diakses dengan field data, sedangkan indeks item pertama dan terakhir disimpan dalam field Head dan Tail. Konstruktor akan menginisialisasikan nilai Head dan Tail dengan -1 untuk menunjukkan bahwa antrian masih kosong dan mengalokasikan data sebanyak MAX_QUEUE yang ditunjuk oleh Data. Destruktor akan mengosongkan antrian kembali dan mendealokasikan memori yang digunakan oleh antrian. Operasi-Operasi Queue dengan Linear Array
• IsEmpty
Fungsi IsEmpty berguna untuk mengecek apakah queue masih kosong atau sudah berisi data. hal ini dilakukan dengan mengecek apakah tail bernilai -1 atau tidak. Nilai -1 menandakan bahwa queue masih kosong.
• IsFull
Fungsi IsFull berguna untuk mengecek apakah queue sudah penuh atau masih bias menampung data dengan cara mengecek apakah nilai tail sudah sama dengan jumlah maksimal queue. Jika nilai keduanya sama, berarti queue sudah penuh.
• EnQueue
Fungsi EnQueue berguna untuk memasukkan sebuah elemen dalam queue.
• DeQueue
Fungsi DeQueue berguna untuk mengambil sebuah elemen dari queue. Operasi ini sering disebut juga serve. Hal ini dilakukan dengan cara memindahkan sejauh satu langkah ke posisi di depannya sehingga otomatis elemen yang paling depan akan tertimpa dengan elemen yang terletak di belakangnya.
• Clear
Fungsi Clear berguna untuk menghapus semua lemen dalam queue dengan jalan mengeluarkan semua elemen tersebut satu per satu hingga queue kosong dengan memanfaatkan fungsi DEQueue.

Implementasi Queue dengan Circular Array
Circular Array
Circular array adalah suatu array yang dibuat seakan-akan merupakan sebuah
lingkaran dengan titik awal (head) dan titik akhir (tail) saling bersebelahan jika array tersebut masih kosong. Posisi head dan tail pada gambar diatas adalah bebas asalkan saling bersebelahan. Berikut ini diberikan deklarasi kelas Queue Circular sebagai implementasi circular array. Dalam prakteknya, Anda dapat menggantikanny sesuai dengan kebutuhan Anda. Data diakses dengan field data, sedangkan indeks itemn pertama dan terakhir disimpan dalam field Head dan Tail. Konstruktor akan menginisialisasi nilai Head dan Tail dengan 0 dan MAX-QUEUE-1 untuk menunjukkan bahwa antrian masih kosong dan mengalokasikan data sebanyak MAX-QUEUE yang ditunjuk oleh Data. destruktor akan mengosongkan antrian kembali dan mendealokasikan memori yang digunakan oleh
antrian. Operasi-Operasi Queue dengan Circular Array :
• IsEmpty
Fungsi IsEmpty berguna untuk mengecek apakah Queue masih kosong atau sudah berisi. Hal ini dilakukan dengan mengecek apakah tail masih terletak bersebelahan dengan head dan tail lebih besar dari head atau tidak. Jika benar, maka queue masih kosong.
• IsFull
Fungsi IsFull berguna untuk mengecek apakah queue sudah penuh atau masih bias menampung data dengan cara mengecek apakah tempat yang masih kosong tinggal satu atau tidak (untuk membedakan dengan empty dimana semua tempat kosong). Jika benar berarti queue penuh.
• EnQueue
Fungsi EnQueue berguna untuk memasukkan sebuah elemen ke dalam queue tail dan head mula-mula bernilai nol (0).
• DeQueue
DeQueue berguna untuk mengambil sebuah elemen dari queue. Hal ini dilakukan dengan cara memindahkan posisi head satu langkah ke belakang.

Implementasi Queue dengan Double Linked List
Selain menggunakan array, queue juga dapat dibuat dengan linked list. Metode linked list yang digunakan adalah double linked list. Operasi-operasi Queue dengan Double Linked List :
• IsEmpty
Fungsi IsEmpty berguna untuk mengecek apakah queue masih kosong atau sudah berisi data. Hal ini dilakukan dengan mengecek apakah head masih menunjukkan pada Null atau tidak. Jika benar berarti queue masih kosong.


• IsFull
Fungsi IsFull berguna untuk mengecek apakah queue sudah penuh atau masih bias menampung data dengan cara mengecek apakah Jumlah Queue sudah sama dengan MAX_QUEUE atau belum. Jika benar maka queue sudah penuh.
• EnQueue
Fungsi EnQueue berguna untuk memasukkan sebuah elemen ke dalam queue (head dan tail mula-mula meunjukkan ke NULL).
• DeQueue
Procedure DeQueue berguna untuk mengambil sebuah elemen dari queue. Hal ini dilakukan dengan cara menghapus satu simpul yang terletak paling depan (head).

Sumber : 


  • http://docs.google.com/viewer?a=v&q=cache:4HhJ33Jj4U4J:ciicaksangattolol.netne.net/data/Struktur%2520data.pdf+contoh+penerapan+antrian+dalam+aplikasi+sehari-hari&hl=id&gl=id&pid=bl&srcid=ADGEESjNy6FdE35TxWkPWQPAqmMbGCt0FE4wPlYsaokjY_utDELi8BR4gqdH-m3xmpmXhidtQx_yeMqMX4-g85muLi7ZzN83hMbzCXvoZYwi--B4XQdkLBHOBcLMAnHwykdjfRN-e0Wd&sig=AHIEtbQQppGHgKEztLF_YQ2mEWAZ9T5FpA  
  • http://inekriestianti.blogspot.co.id/2010/03/pengertian-queue-antrian.html