Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This pdf include c++ program questions,i need codes. Note: . Write code of question 1 and 3 in separate files and name each file according
This pdf include c++ program questions,i need codes.
Note: . Write code of question 1 and 3 in separate files and name each file according to the question number. For example, file named "1.cpp" should contain code for question 1 and so on. Attempt question 2 and 4 on a page, take clear pictures of these pages, and copy paste them in a word file. Submit .cpp and word files on portal. Late submission won't be accepted. In case of plagiarism, you will be marked 0 in whole assignment. Code screenshots won't be marked. . Q1. Write C++ code from the flowchart given on the next page. [10] Q2. Dry run your code from Q1 and fill the trace table given below. You can add more rows if required. [10] Iteration# ch h i j k Output + 3 Q3. Write a C++ program that uses nested loops to output the following pattern (three sample runs are given). The height of the pattern is to be input by the user and should not be greater than 9 or less than 1. [10] Entre height (1-9): 0 Entre height (1-9): -1 Entre height (1-9): 15 Entre height (1-9): 7 Entre height (1-9): 6 1234567654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1 12345654321 12345 54321 1234 4321 123 321 12 21 1 1 Entre height (1-9): 1 1 Q4. Create flowchart for the code that you wrote in Q3. Start int ho Icharch input h is hao ng input CW + int i=1 yes output/ Rutput es if. ucci ch is, int j = 1 ilah no iut KE no no if output/ +i V=h yes I output ttk white spoel ish (int i=h yes 1=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