Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
CS101 Introduction to computing Assignment 1 Lahore University of Management Sciences CS 101 Introduction To Computing Winter 2004 - 05 Assignment 1 Deadline: Sunday 2nd January 2005 11:59pm Submission: Hard copy of the solution is to be submitted in the Royal Blue Box CS wing. Plagiarism, cheating or copying in assignments will not be endured. Show all intermediate steps for question 1 to 3. Question 1) Convert the following into their decimal counterparts. [15 marks] (110110110101.001010110) 2 (25645.432) 8 (AFD9.BCD5) 16 (B374.321) 16 (4324.21) 5 Question 2) Convert the subsequent decimal numbers into the number scheme specified. [15 marks] 109.567 = (?) 2 4503.432 = (?) 8 2333.654 = (?) 16 6509.069 = (?) 20 3127.5423 = (?) 8 Question 3) Evaluate the following Expressions [15 marks] (13264) 8 + (7363) 8 (110110110101) 2 + (101010110) 2 (BCD5) 16 – (AFD9) 16 (4321) 5 – (3431) 5 Question 4) Write the VB expression for the following mathematical terms. [20 marks] 3x3 + 2y2 + 10 z + c -b + b2 – 4ac 2a CS101 Introduction to computing Assignment 1 a(1–r)n–1 1–r an (1–r)n–1 an–1(1–r)n–2 1 an–2(1–r)n–3 Question 5) AutoRedraw property of a picture box can have only true or false values. What variation occurs by assigning AutoRedraw true and false? Find out everything about AutoRedraw by reading books or searching on the net. Do not replicate data from the net. Provide answers in your own words from what you have comprehended from the information you gather. [15 marks] Question 6) Write the VB code for evaluating the roots of a quadratic equation (ax2 + bx +c). Disregard complex roots. The coefficient of x2 is typed in Text3. The coefficient of x is in Text2 and the constant term is typed in Text1. The code should execute when the user clicks Command1. [20 marks]