Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Shouhong Wang, Hai Wang

1st Edition

1612330150, 978-1612330150

More Books

Students also viewed these Databases questions

Question

Question Can a self-employed person adopt a profit sharing plan?

Answered: 1 week ago