Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Remember to mark problems clearly & obvious in your PDF and show both the source code and output, you can watch a video about
Remember to mark problems clearly & obvious in your PDF and show both the source code and output, you can watch a video about this in the Modules doc which explains the format for turning in work, how to make a PDF, etc.. You don't have to include my problem text in your pdf, just label the problem and put your source code and your output. Do that for every problem. If there are multiple problems in the assignment you can put all of them in one pdf. You should watch my video- its in the Modules doc on how to turn on the hw xoxo. Sometimes you can find hint docs floating around in the Class Notes on similar problems, use the class notes as a resource xoxo 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 Make sure to use existing constant for PI, and use radius squared instead of radius * radius. Part 2 Tic TacShmoe Write a program that prints out three different tic tac toe winning results. Make each one bigger than the last, separated by more spaces and lines: 100 010 001 0 0 1 010 100 Use spaces (use spaces or a \t) between the characters as the board gets bigger Use an extra line between them as the board gets bigger Show use of a and \t in your code 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 Base Height. Or (0.5 * base * height) Your program should output the correct answer. Get the base and height from the user using input method with prompt Part 4 Miles ToKilometers Write a program that will tell me the conversion of 60 miles, into kilometers. Remember that 1 mile is 1.60934 kilometers. Required: get the input from the user Required, do the example for 60 miles, and then do the example for 30 miles Part 5 MyInitials This is a sequence of output 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: || LL || LL || LL || LL || LL || LL || LL || LL LL LL LL Print your initials in a similar manner Now print a simple picture in a similar manner,, like a happy face or ...something else Part 6 Up It Write a program that asks the user to input a number. The program should then output For example, if the user inputs a 7, the program should output \-Double up is 14-\-----/-Quadruple up is 28-/ Test your program on an input of 7 Test your program on an input of 10 Make sure you use variables and not hard coded numbers Notice the funky syntax with all the decorative /\ ~ (make sure to have the same output)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started