Question: Python Project Organization You are going to create one program or make separate programs for each task, either works Part 1 CircleArea You are going

Python

Project Organization

You are going to create one program or make separate programs for each task, either works

Part 1 CircleArea

You are going to write a program to compute and output the area of a circle with a radius of 2.5.

Think through what you need to do:

Create a variable for radius

set it to 2.5

Create a variable for area

set it to 3.14159 * radius * radius

output the value of area

Challenge (not required)

Generalize this so that you can input any radius and the program will output the area for it.

Part 2 TicTacShmoe

Write a program that prints out three different tic tac toe winning results. Make each one bigger than the last, separated by more spaces on each row and more blank lines between rows, such as:

1 0 0

0 1 0

0 0 1

0 0 1

0 1 0

1 0 0

The goal is to give you practice with the print statements in C++

Part 3 TriangleArea

Write a program called TriangleArea, which calculates and outputs the Area of a triangle with a Base value of 3.5 and a Height value of 4.85. The formula for the area of a triangle is: 1/2 (or 0.5xBasexHeight).

Your program should output the correct answer.

Part 4 MilesToKilometers

Write a program that will tell me the conversion of 60 miles, into kilometers. Remember that 1 mile is 1.60934 kilometers.

Part 5 MyInitials

Write a sequence of cout statements to display your initials (2 3 letters) using a cool pattern for each letter. For example, here is a simple pattern for the initials IL:

II LL

II LL

II LL

II LL

II LL

II LL

II LL

II LL LL LL LL

Use around 8 print statements to complete this exercise.

Part 6 DoubleUp

Write a program that asks the user to input a number. Then tell them, What double up is. For example, if the user inputs a 7, the program should output ~Double up is 14~

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!