[SOLVED] CS1114-Homework 1-Introduction to Programming and Problem Solving

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (1 vote)

Homework #1

Question 1:
Convert the following numbers to their decimal representation:
a) 100110112 =
b) 11011012 =
c) 3A816 =
d) 22145 =

Question 2:
Convert the following numbers to their binary representation:
a) 6910 =
b) 48510=
c) 6D1A16 =
Question 3:
Write a program that asks for the user’s name and prints a personalized welcome message for him.
For example, an execution could look like: Please enter you name:
Mike
H i Mike, Welcome to CS-­‐UY 1114
Question 4:
Textbook P.80, Q4:
The U.S. Cencus provides information on its web page (http://www.census.gov) about the current U.S. population as well as approximate rates of change.
Three rates of change are provided:

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.