Title: Assignment: Week 1 Assignment: Program 1
Course: Dept MC - ORACLE DATABASE STRUCTURE & DATA WAREHOUSING

The following programs are due by Sunday 11:55pm.

A. Write a 'Hello World' program with comments explaining each line of code.

B. Write a program that will print a diamond shape using characters. You can be creative with the characters you use.

Example:

*

***

*****

***

*

C. Write a program that will calculate the area and perimeter of a rectangle.

Example result in the console:

> >>>
Please enter your name: jane
Hello Jane. Please enter a value for the length of a rectangle: 7
Please enter a value for the width of a rectangle: 3
The area: 21, and the perimeter: 20
Goodbye Jane

> >>>

- Ask the user for the name
- Welcome the user with name. Use the title() method to capitalize the first letter of the name
- Request user for a value for the length of the rectangle
- Request user for a value for the width of the rectangle
- Store the values in two variables L and W
- Convert them to integers: L= int(L)   W=int(W)
- Calculate the area (L*W) and store in a variable
- Calculate the perimeter (2*(L+W)) and store in a variable
- Print the area and perimeter
- Tell the user goodbye with their name

2.       Further instructions:

- Comment your name, course number, and date in the program
- Place comments within your program
- Write the program one or two lines at a time, run and test it before you write more.
- Use the discussion forum and email for questions!