المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : حل واجب M150a المدرس 0544321455 - 00966544321455 - [email protected]



أسواق
18-07-2013, 11:30 PM
حل واجب M150a المدرس 0544321455 - 00966544321455 - [email protected] (http://www.aswaqcity.com/thread1244732.html)


M150A: Data, computing and information

Tutor Marked Assignment 01. Due date: 3/8/2013


PART 1: Answer the following questions in your own words. Each question worth 5 marks

1.1 Describe how computers can be used as a tool for finding.

1.2- Define the following terms: Data, Information & perceptual data

1.3 Answer the following two short questions:
a) What is a Communication? List 3 different forms of communications
b) Why do human need to communicate with the computers? Explain
c) List 3 different communication protocols between computers

1.4 Answer the following two short questions:
a) What is compression, and how does it overcome some of the problems associated with redundancy?
b) Explain the difference between lossy and lossless compression techniques. the two common image formats used on the and state for each one the compression technique used.

PART2: Do the following calculations. [20 marks] – Each question worth 5 marks

1- Show all the steps required to convert the decimal value 1050 to its binary representation i.e. (1050)10 (???)2
2- Show all the steps required to convert the octal value 2000 to its decimal representation i.e. (2000)8 (???)10
3- Consider a one-hour film to be displayed on a computer at 24 fps. Each frame is 850 x 600 pixels and an 8-bit compressed colour encoding is being used. What in the size of the film file in Bytes, MB and GB?
4- A computer with 65536 bytes size of RAM, show how many Kilobytes and megabytes of memory it have. i.e. (65536) bytes (??)KB and (65536) bytes (??)MB

PART3: [20 marks]

1- Consider the following pseudo code

Set the initial value of count to 12
While (NOT (count is 0))
Write out the value of count in the output window
Move to the next line in the output window
Reduce count by 3
Write ‘Finished’

Find the answer of following statement in the code above [12 marks]
A. find the condition
B. find the loop body
C. find any instructions that are not in the loop body, and so are not repeated
D. How many times will the loop body be executed?
E. What will the output be?
F. Which instruction in the loop body ensures that the loop is not an infinite loop?

2- Check if
NOT ( A OR B) and NOT A OR NOT B are alent or not [8 marks]

PART4 [20 marks]

A company gives its customers a discount d on their value of purchases and number of children in the family according to the following specifications:
• If the value of purchases is $5000 or more, and number of children in the family is more than 7, the discount is 30% of the value of purchases.

• If the value of purchases is $5000 or more and number of children in the family is more than 4, the discount is 22% of the value of purchases.

• If the value of purchases is less than or equal to $2500, the discount is 10%

For example, a customer pays $5000, and gets 30% of 5000, i.e.
(30/100) * 5000 = $1500.
1. Using nested if statements, write a code which will work according to the following specifications:
• Read the amount of purchases for a customer and number of children in the family
• Calculate the discount for that customer according to the above deion
• Calculate and then print the final price of the value of purchases after the discount
2. Run your program with each of the following values of purchases and children:
o $ 7000 and 10 children
o $ 5000 and 3 children
o $ 2200 and 2 children
For each test, insert a screenshot showing the output into your Solution .

Important note: In your answers to this question, you should follow good programming style that helps readability. This includes:
o Using short comment at the beginning stating the purpose of your program.
o Selecting meaningful variables s.
o Using spacing and indentations to help make the structure of your program clear.

~~ End of Questions ~~



حل واجبات الجامعة العربية المفتوحة O544321455 - OO966544321455
[email protected]
حل واجبات الجامعة العربية المفتوحة O544321455 - OO966544321455
[email protected]
حل واجبات الجامعة العربية المفتوحة O544321455 - OO966544321455
[email protected]
حل واجبات الجامعة العربية المفتوحة O544321455 - OO966544321455
[email protected]
حل واجبات الجامعة العربية المفتوحة O544321455 - OO966544321455
[email protected]
حل واجبات الجامعة العربية المفتوحة O544321455 - OO966544321455
[email protected]