حلول واجبات الجامعة العربية المفتوحة (لعــspring2017ـــام)

حلول واجبات الجامعة العربية المفتوحة لجميع تخصصات الجامعة ولجميع فروع الجامعة حلول واجبات – مشاريع تخرج – ملخصات هامة Mobile: 00966542495275 حلول واجبات الجامعة ا
 
الرئيسيةاليوميةس .و .جبحـثالأعضاءالمجموعاتالتسجيلدخول

شاطر | 
 

 Faculty of Computer Studies Information Technology and Computing Program M105 Tutor-Marked Assignment Course Code: M105 Semester: Spring 2014-2015 Course Title: Introduction to Programming with Java Credit Hours: 3 Hours Cut-Off Date: Sunday, April 26, 20

اذهب الى الأسفل 
كاتب الموضوعرسالة
whatsapp::00966542495275
Admin


عدد المساهمات : 1456
تاريخ التسجيل : 07/10/2014

مُساهمةموضوع: Faculty of Computer Studies Information Technology and Computing Program M105 Tutor-Marked Assignment Course Code: M105 Semester: Spring 2014-2015 Course Title: Introduction to Programming with Java Credit Hours: 3 Hours Cut-Off Date: Sunday, April 26, 20   الأربعاء مارس 18, 2015 6:48 pm

Faculty of Computer Studies
Information Technology and Computing Program
M105 Tutor-Marked Assignment
Course Code: M105 Semester: Spring 2014-2015
Course Title: Introduction to Programming with Java Credit Hours: 3 Hours
Cut-Off Date: Sunday, April 26, 2015 Total Marks: 80
Contents
Preface……………………………………………………………………………………………
1
Instructions for submitting TMA………………………………………………………………..
1
Question One…………….………………………………………………………………………
2
Question Two…………………….………………………………………………………………
2
Question Three…….…………….………………………………………………………………
3
Question Four………..…………..………………………………………………………………
3
This TMA covers chapters 1, 2, 4 and 5 of the text book.
Instructions for submitting TMA
1. Create a new project in NetBeans. Name it: StudentName_StudentID (e.g. AhmadOmar_099999)
2. Create all the required classes in TMA inside this project. Name each class according to the question No. in addition to your ID (e.g. Q2_StudentID)
3. You will find a solution template (document file) on LMS with the following name: M105-TMA-2014-2015-Spring-Branch-StudentID-FirstNameLastName You should write your answers inside this document, but you need to:
a) Sign the “Declaration of No Plagiarism” electronically (it is enough to put your name and ID).
b) Modify the following information in the file name: Branch, StudentID and FirstNameLastName Example: "Ahmad Omar" is in Kuwait Branch and his ID is 099999. He should change the file name to be: M105-TMA-2014-2015-Spring-KWT-099999- AhmadOmar
4. Copy and paste the code of all the classes + the required snapshots inside the above document file.
5. Create a compressed file including the folder of your project.
6. Name the compressed file as the document file.
7. Submit two separated files: the compressed file + the document file (without compression).
2
Important Notes:
1) You should solve TMA individually. There are no groups in TMA.
2) In sha'a Allah, there will be an exam in TMA. The date and time of it will be announced later.
3) When writing your programs, you should follow good programming style that helps readability. This includes:
• Using short comment at the beginning stating the purpose of each program.
• Selecting meaningful names for identifiers.
• Using spacing and indentations to help make the structure of your program clear.
You could lose up to 3 marks if you did not do that.
Question One: [11 marks]
a. Write a Java class (program) that reads from the user 2 integers that represent the height of a cone and the radius of its circular base. Then calculates and prints the volume of this cone (rounded to 1 decimal place). [10 marks] Hint: The formula used for calculating the volume of a cone could be found in
any "geometry" book. In addition, you can search the internet to get it.
b. Give the exact output of your program. Provide a snapshot representing the exact output of any values from your choice. [1 mark]
Question Two: [24 marks]
a. Write a Java application that computes and prints the grade of a student according to the following algorithm: 1) It should read from the user TMA score and MTA score. 2a) If their sum is less than 15, the grade "FC" should be printed and the program will stop. 2b) Otherwise, 2b1) It will read from the user final exam score. 2b2a) If it is less than 20, the grade "FF" should be printed and the program will stop. 2b2b) Otherwise, 2b2b1) If the total score (sum of all scores) is less than 50, the grade "F" should be printed. 2b2b2) Otherwise, the grade "P" should be printed [20 marks]
b. Give the exact output of your application. Give 4 snapshots representing the exact output of 4 different cases (i.e., when the grade is "FC", "FF", "F" and "P"). [4 marks]
Hints:
 All scores are real numbers
 You could assume that the user will insert valid scores
3
Question Three: [20 marks]
a. Write a Java program that reads from the user an integer N represents the number of students in a class. Then the program should read N lines of input. Each line includes a student's GPA (as a real number). The program should calculate and print the percentage of students who have warnings (i.e. their GPA < 2) rounded to 2 decimal places. [19 marks]
b. Give the exact output of your program. Provide a snapshot representing the exact output of any values from your choice. [1 mark]
Hint:
The input and output of your program should be exactly as in the sample below
Sample Input and Output: Please, insert the number of students: 3 Please, insert their GPAs: 3.1 2.6 1.5 33.33% of students have warnings
Explanation: There are 3 students, 1 of them his/her GPA < 2. So, 33.33% of students have warnings ( ).
Question Four: [25 marks]
a. Assume you have 2 old mobile phones and you want to sell them. You got offers from more than one shop and you need to compare them to select the best one. Write a Java program that reads form you many lines. In each line, there are 2 integers represent the prices offered to you by a shop. Then the program computes and calculates the best offer (highest one). In addition, it prints the shop no. of the shop provided the best offer. Enter 2 zeros to stop the program. [24 marks]
b. Give the exact output of your program. Provide a snapshot representing the exact output of any values from your choice. [1 marks]
Hints:
 You could assume that no 2 shops provided the same offer
 The input and output of your program should be exactly as in the sample below
Sample Input and Output: Please, insert the offers (2 prices per line, stop by 0 0): 40 20 30 14 38 25 35 26 0 0 Shop no. 3 provided the best offer (KD 63)
Explanation: The third shop in the list (no. 3) provided the best offer (38 + 25 = 63)
Input from the user
Input from the user
Change the currency according to your country

_________________
لتحميل ملف حل الواجب الحل النموذجي للواجب.doc يجب عليك  التسجيـــل بالمنتدى لتتمكن من تحميل الملف


حل واجب - خدمات مجانية – حلول واجبات الجامعة الجامعة العربية المفتوحة- كل الجامعات - حل واجب - حل واجب TMA- حل واجب TMA01
لجميع تخصصات الجامعة ولجميع فروع الجامعة
حلول واجبات – مشاريع تخرج – ملخصات هامة
Mobile: 00966542495275  or
WhatsApp:00966542495275

smsm.hamdy66@yahoo.com
حلول مضمونة وغير مكررة وغير متشابهة لجميع واجبات الجامعة
متوفرمدرسين ومدرسات لجميع المواد والتخصصات
السعودية-الكويت-لبنان-مصر-البحرين-الأردن-عمان-الرياض-الدمام-جدة-حائل-الاحساء-المدينة المنورة
KSA-Kuwait-Bahrain-Oman-Jordon-Lebanon-Egypt
قسم خاص لواجبات التربية لجميع التخصصات ولجميع المستويات
http://tmas.123.st
الرجوع الى أعلى الصفحة اذهب الى الأسفل
معاينة صفحة البيانات الشخصي للعضو http://learn.123.st
 
Faculty of Computer Studies Information Technology and Computing Program M105 Tutor-Marked Assignment Course Code: M105 Semester: Spring 2014-2015 Course Title: Introduction to Programming with Java Credit Hours: 3 Hours Cut-Off Date: Sunday, April 26, 20
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
حلول واجبات الجامعة العربية المفتوحة (لعــspring2017ـــام) :: حل واجب الجامعة العربية المفتوحة 2015 الفصـــ 1 ــل :: حل واجب التقنية-
انتقل الى: