Remember to mark problems clearly & obvious in your PDF and show both the source code...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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) 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)
Expert Answer:
Related Book For
Operations Management
ISBN: 9781260547610
2nd International Edition
Authors: Gerard Cachon, Christian Terwiesch
Posted Date:
Students also viewed these algorithms questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
In Problems 25 54, solve each system. Use any method you wish. 2xxy + y = 8 xy = 4
-
Omaha Co. has a subsidiary in Chile that wants to borrow from a local bank at a fixed rate over the next 10 years. a. Explain why Chile's term structure of interest rates (as reflected in its yield...
-
Plot the short-run Phillips curve and aggregate supply curve for 2018 and mark the points A, B, C, and D on each curve that correspond to the data in the left part of the table. The left part of the...
-
What is BI and why is it important in an organization?
-
Your supervisor has asked you to research the following situation concerning Scott and Heather Moore. Scott and Heather are married and file a joint return. Scott works fulltime as a wildlife...
-
10. A spy runs from the front to the back of an aircraft carrier at a velocity of 3.5m/s. If the aircraft carrier is moving forward at 18m/s, how fast does the spy appear to be running when viewed by...
-
Karabo Maredi owns an art gallery she suffered losses on the sale of original paintings: She is a collector of original African paintings. She sold this painting for R18000because she needed the...
-
A Eurobond with seven years to maturity and a coupon rate of 8% (paid annually) has a par, or face, value of 1,000. If the required return on this bond is 6%, what is the price of the bond?
-
Genentechs main facility is located in South San Francisco. Suppose that Genentech would experience a direct loss of $550 million in the event of a major earthquake that disrupted its operations. The...
-
Dynamic Energy Systems stock is currently trading for $32 per share. The stock pays no dividends. A one-year European put option on Dynamic with a strike price of $41 is currently trading for $9.18....
-
Assume a five-year treasury bond has a coupon rate of 4%. a. Give examples of required rates of return that would make the bond sell at a discount, at a premium, and at par. b. If this bonds par...
-
Suppose Amazon stock is trading for $780 per share, and Amazon pays no dividends. a. What is the maximum possible price of a call option on Amazon? b. What is the maximum possible price of a put...
-
A company uses the Miller Orr Model to manage its cash level. Suppose that short-term securities yield 5% per year and it costs the company Kshs 50,000 each time it buys or sells securities. The...
-
Explain the buyers position in a typical negotiation for a business. Explain the sellers position. What tips would you offer a buyer about to begin negotiating the purchase of a business?
-
Keuka Studies does custom metal sculptures of horses and other animals. A horse sculpture is composed of numerous parts. They use a lathe to construct two types of parts. The Body part is used to...
-
A delivery truck from a food wholesaler has just delivered fresh meat and produce to a local restaurant. This meat and produce would be categorized as which type of inventory by the restaurant? a....
-
Below are a number of slogans used for advertisement. Which dimensions of customer utility do the slogans emphasize? a. We build lenses uniquely to the needs of your eyes. b. Get your burger in 1...
-
A steel cylinder containing air has a closely fitted piston and a set of stops as shown in Fig. 3.7. The piston is loaded with certain weights. The air inside the cylinder is initially at...
-
What is the difference between compressed liquid and saturated liquid?
-
Calculate the molar volume of methane at \(773 \mathrm{~K}\) and 15 bar using the following methods: (a) Ideal gas equation of state (b) van der Waals equation of state, with \(a=0.2303...
Study smarter with the SolutionInn App