منتدى واجبات الجامعة العربية المفتوحة aoua.com

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

شاطر | 
 

 Course Code: M150 B

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


المساهمات : 1084
تاريخ التسجيل : 03/02/2012

مُساهمةموضوع: Course Code: M150 B   الإثنين أغسطس 04, 2014 7:07 pm

Faculty of Computer Studies
Course Code: M150 B
Course Title: Data, Computing and Information
Tutor Marked Assignment – Summer 13-14
Cut-off Date August 13th, 2014 Total Marks:80 converted to be out of 20
Contents:
Question 1 ……………………………………… 2
Question 2 ……………………………………… 3
Question 3 ……………………………………… 2
Question 4 ……………………………………… 4

This TMA assesses your understanding of Units 8, 9 and 12 of M150B
Plagiarism Warning:
As per AOU rules and regulations, all students are required to submit their own TMA work and avoid plagiarism. The AOU has implemented sophisticated techniques for plagiarism detection. You must provide all references in case you use and quote another person's work in your TMA. You will be penalized for any act of plagiarism as per the AOU's rules and regulations.

Declaration of No Plagiarism by Student (to be signed and submitted by student with TMA work):
I hereby declare that this submitted TMA work is a result of my own efforts and I have not plagiarized any other person's work. I have provided all references of information that I have used and quoted in my TMA work.

Name of Student:
Signature:
Date:


[10 marks will be deducted if the student does not apply this part]
You are required to create a folder which contains the following files
- The word file that you will copy and paste the codes and the screen shots of your program
- The JavaScript libraries and the programs that you have to implement them according to the specifications in the below Questions.

Question 1 [30 marks]
Part1: create a JavaScript library and name it myNumbers_ID. It contains the following functions:
getNumber(): it has no argument, it asks the user to prompt a number and parse it to get it corresponding numeric value and then the method returns this number.
isZero( num): it has one argument as a number, it checks whatever the given number is ZERO or not. It returns true if it is ZERO and false if not.
isOdd( num): it has one argument as a number, it checks whatever the given number is odd or not. It returns true if it is odd and false if not.

Part2: create a JavaScript library and name it myStrings_ID. It contains the following function:
replace(name): it has one argument as a String, it replaces all ‘e’ or ‘E’ character to a star *. It does not return any value. It prints/displays the String as: neeti becomes n**ti

Part3: write a JavaScript code according to the following specifications:
1. Declare an array of numbers and name it points with 5 elements.
2. Declare an array of Strings and name it players with 5 elements.
3. Fill the 2 arrays by inserting the string names of the players and then their points using getNumber() function
4. Print the values in the 2 arrays as in the picture below
5. Then you are required to award the players 100 points if his points are equal to ZERO, and multiply his points by 3 if the number of points is an odd value, or divide his points by 2 if the number of points is an even value and then display the awarded points. You have to use the function libraries above in Part 1.
6. Then you have to replace all ‘e’ or ‘E’ characters in the player’s names to * and then display the new name after the replacing process. You have to use the function libraries above in Part 1.
7. You have to copy and paste all codes in your word file and provide one screen shot for the output. Do not forget to submit the libraries and program in your folder

Question 2 [20 marks]
Part1: you need to use a JavaScript library dateLibrary.js. You will find it in the CD-Block2-Activities folder
Part2: write a JavaScript code according to the following specifications:
1. Create date1 as a date1 Date object and initialize it by your birthday using a single string argument constructor.
2. Display date1 Date object as a long string date.
3. Create date2 as a Date object and initialize it by your mother’s birthday using 2 properties/arguments constructor.
4. Display date2 Date object as a short string date.
5. Create date3 as a Date object by using 3 properties/arguments constructor by asking the user to prompt the year, the month, and the day of the month.
6. Display date3 Date object.
7. Create today as a Date object.
8. Display today Date object as the following format: July, 3 2014.
9. Display the text based calendar for that date's month of today Date object.


Question 3 [20 marks]
Part1: You are required to model a new user-defined object type Book.
The Book object type has the following properties:
isbn: a string representing the ISBN code of the Book.
author: a string representing the name of the author of the Book.
title: a string representing the title of the Book.
status: a string representing the status of the cover of the book either “hard” or “soft”.

The Book object type has the following methods:
getAuthor(): a method that returns the name of the author in the Book.
setAuthor(name): a method that has one String argument and it sets the name of the author in the Book by the given value of the argument.
getTitle(): a method that returns the title of the Book.
setTitle(): a method that has one String argument and it sets the title of the Book by the given value of the argument.
makeItSoft(): a method that sets/makes the status of the cover of the book a String value “SOFT”.
displayInfo(): a method that displays (in an alert window) all the information of the Book using it properties and the two methods: getAuthor() and getTitle().

Write the Book constructor function Book (aISBN, aAuthor, aTitle, aStatus).
Implement the methods getAuthor(), getTitle(), setAuthor(), setTitle(), makeItSoft() and displayInfo() according to the above specifications.

1. Declare and create book1 as an object of the Book. Assign the values of the prosperities of book1 by your favourite book.
2. Display the information of book1.
3. Set the name of the author of the book1 to “Ahmed”.
4. Set the title of the book1 to “An Introduction to programming”.
5. Make the status of the cover of the book1 soft.
6. Assign a new ISBN value to the book1.
7. Display the information of book1.
8. You have to provide 2 screen shots for displaying the information of the book.

Question 4 [10 marks]
1- What are the 2 parts to design for the web?
2- List the design principles to design for the web?
3- You are required to check and then write your comments if the design principles to design for the web are implemented or not on the home web page in the picture below.


“End of the TMA questions”

_________________

لتحميل ملف حل الواجب .docx  من خلال التسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الملف  


خدمات مجانية – حلول واجبات الجامعة العربية المفتوحة - حل واجب tma tma01
لجميع تخصصات الجامعة ولجميع فروع الجامعة
حلول واجبات – مشاريع تخرج – ملخصات هامة
smsm.hamdy66@yahoo.com
http://aouf.123.st
whatsapp:00966542495275 00966542495275
WhatsApp:00966542495275


smsm.hamdy66@yahoo.com
حلول مضمونة وغير مكررة وغير متشابهة لجميع واجبات الجامعة
متوفرمدرسين ومدرسات لجميع المواد والتخصصات
KSA-Kuwait-Bahrain-Oman-Jordon-Lebanon-Egypt
الكويت-البحرين-عمان-الأردن-السعودية-لبنان-مصر
الرياض-الدمام-جدة-الأحساء-المدينة المنورة-جده-حائل-بيروت-المنامة-القاهرة-مسقط
pg ,h[fhj hg[hlum hguvfdm hgltj,pm - pg,g ,h[fhj hg[hlum hguvfdmhgltj,pm
http://aouf.123.st
الرجوع الى أعلى الصفحة اذهب الى الأسفل
معاينة صفحة البيانات الشخصي للعضو http://aouf.123.st
 
Course Code: M150 B
الرجوع الى أعلى الصفحة 
صفحة 1 من اصل 1
 مواضيع مماثلة
-
» kaspersky anti virus 9.0.0736+code d activation arjo arade
» برنامجréussire son code de la route رائع لمن يريد تعلم السياقة ألي مش راح يدخل لن يستطيع قيادة
» كل ما يتعلق بكارت التيستر بالصورة
» لفتح الرقم السرى لاى جهاز نوكيا !!!!
» جميع اكود ارقام هواتف دول العالم

صلاحيات هذا المنتدى:لاتستطيع الرد على المواضيع في هذا المنتدى
منتدى واجبات الجامعة العربية المفتوحة aoua.com :: منتدى الطلاب الجامعة العربية المفتوحة :: الأنشطة الطلابية-
انتقل الى: