Based on Figure Q4, answer the following questions. This program draws a triangle on the screen...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Based on Figure Q4, answer the following questions. This program draws a triangle on the screen My name is My matric no is I want to print triangle so will select no 1 = 1 Please enter 'y' to continue y Figure Q4 (b) Write the C program that can print your Name, Matric ID and the triangle design. Using a while loop, the program allows the user to repeat the process by invoking letter 'y' and the process will be terminated when the user invokes any letter, except letter 'y'. The program consists of the following functions: Main - call the other function to print messages. Then, prompt and ask user to invoke number 1 to call other functions to print a triangle. Afterward, prompt and ask user to invoke letter 'y' to repeat the process as shown in Figure Q4. print_menu-print messages including your Name and Matric ID as shown in Figure Q4. draw_triangle - print a triangle. Based on Figure Q4, answer the following questions. This program draws a triangle on the screen My name is My matric no is I want to print triangle so will select no 1 = 1 Please enter 'y' to continue y Figure Q4 (b) Write the C program that can print your Name, Matric ID and the triangle design. Using a while loop, the program allows the user to repeat the process by invoking letter 'y' and the process will be terminated when the user invokes any letter, except letter 'y'. The program consists of the following functions: Main - call the other function to print messages. Then, prompt and ask user to invoke number 1 to call other functions to print a triangle. Afterward, prompt and ask user to invoke letter 'y' to repeat the process as shown in Figure Q4. print_menu-print messages including your Name and Matric ID as shown in Figure Q4. draw_triangle - print a triangle.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
i need to solve and get the code from R studio for thumbs up Question 1: An engineer wants to compare two different types of steel rods, Rod A and Rod B, for overall fire resistance. She hypothesizes...
-
The credit card with the itemized billing statement below uses the average daily balance method to calculate interest. The monthly interest rate is 1.7%. Find the minimum monthly payment due on July...
-
You hold a bond portfolio that consists of (i) a 4-year bond with a face value of $100 that pays an annual coupon of 10%, and (ii) a 2-year bond with a face value of $100 that pays an annual coupon...
-
Bob Bristol just called to congratulate you on your excellent work on the various assignments at CII.He now wants you to do some capacity analysis for Meghan Willoughby, the Chief Purser. Meghan is...
-
For Exercises 16, assume that you want to construct a 95% confidence interval estimate of a population mean. Find an estimate of the sample size needed to obtain the specified margin of error for the...
-
Rhinesch Corporation has two divisions: the Motor Division and the Pump Division. The Motor Division supplies the motors used by the Pump Division. The Pump Division produces approximately 10,000...
-
Refer to your solution to the Fairweather Ltd exercise given above and then answer the following additional questions: (a) Is the company small, medium-sized or neither for the purpose of filing its...
-
Terando Co. began operations on July 1. It uses a perpetual inventory system. During July, the company had the following purchases and sales. Instructions (a) Determine the ending inventory under a...
-
George and Nancy had a $30,000 repair bill on their home after the tornado went through town. Their policy contained the usual 80% co-insurance clause. Their home's replacement value was $150,000;...
-
Petsmart is a retail store that sells pet supplies. Suppose Petsmart is interested in studying how sensitive its customers are to price discounts. However, Petsmart also is curious if its price...
-
For unit three, I received an 86% overall. I was proficient in SEC reporting, interim financial reporting, subsequent events, and fair value measurements. The two areas that I could use more studying...
-
What is the correct methodology to use in order to conduct credible research? What are the specific steps someone should take to find possible solutions to research questions being answered?
-
How do inflation expectations, inflation risk premiums, and real interest rates interact to determine nominal interest rates, and how do central banks incorporate inflation expectations into their...
-
Define what are parallel sentences and provide an example? Define what is a journalistic approach and provide an example?
-
a. Identify and discuss which positions in a large restaurant, club, or hotel would be exempt and which would nbe nonexempt. b. Discuss the use of live tanks and when they are practical, or not. c....
-
_______ is a network consisting of a company and its suppliers, vendors, warehouses, transportation companies, distribution centers, and retailers to produce and distribute a product or service....
-
Figure displays a 12.0 V battery 3 four uncharged capacitors of capacitances C1 = 4.00F, C2 = 6.00F, and C3 = 3.00F. The switch is thrown to the left side until capacitor 1 is fully charged. Then the...
-
Your managing director has recently read an article which referred to Financial Reporting Standard 4 (FRS 4) - Capital instruments. He has requested a report from you about FRS 4....
-
Gas lawn mower: \(70 \mathrm{~dB}, 100 \mathrm{~dB}, 120 \mathrm{~dB}\) Select the most representative decibel level for each sound.
-
Radio playing loud enough to sing along to at home: \(20 \mathrm{~dB}, 50 \mathrm{~dB}, 70 \mathrm{~dB}\) Select the most representative decibel level for each sound.
Study smarter with the SolutionInn App