Question

Iterative Program Structure: (using basic loop) Create a flowchart, simulation, pseudocode and C++ Program that will...

Iterative Program Structure: (using basic loop)

Create a flowchart, simulation, pseudocode and C++ Program that will generate the following number series:

1,2,4,7,11,16,22,29,37, and 46

Homework Answers

Answer #1

PSEUDO CODE:

DECLARE COUNT=1,I=1

LOOP: I<=46

PRINT I

I=I+COUNT

COUNT=COUNT+1

END LOOP

C++ Code:

#include<iostream>

using namespace std;

int main(){

int count=1;

//iterating the loop and increasing the I by count everytime

for(int i=1;i<=46;i+=count,count++)

cout<<i<<" ";

}

//Simulation

Flow Chart:

Note : Please comment below if you have concerns. I am here to help you

If you like my answer please rate and help me it is very Imp for me

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Include a pseudocode or flowchart of your process. Use a loop structure to write a C++...
Include a pseudocode or flowchart of your process. Use a loop structure to write a C++ program that A) Finds and displays how many multiples of 8 there are in between 1 to 1000 . B) Displays all the multiples of 8 between 1 ~ 1000 , separated with commas. C) Finds and displays the sum of all the multiples of 8 in between 1 to 1000.
​​​​​​WRITE FLOWCHART AND PSEUDOCODE ONLY (C++) Write the flowchart and pseudocode for the following program (but...
​​​​​​WRITE FLOWCHART AND PSEUDOCODE ONLY (C++) Write the flowchart and pseudocode for the following program (but not the program itself.) In a right triangle, the square of the length of one side is equal to the sum of the squares of the lengths of the other two sides. ( sidea2 = sideb2 + sidec2 / sideb2 = sidea2 + sidec2 / …..) The program will read three side lengths from a text file, and then print the lengths along with...
Create a program in C++ language, create a flowchart, provide a screenshot of the program and...
Create a program in C++ language, create a flowchart, provide a screenshot of the program and output, and involve looping for your program: Nested loops: Challenge. Write a program that calculates and displays the yearly amount available if $1000 is invested in a bank account for 10 years. Your program should display the amounts available for interest rates from 6% to 12% inclusively, in 1% increments. Use a nested loop, with the outer loop controlling the interest rate and the...
In Python You must create a flowchart, and its corresponding Python program, to solve the following...
In Python You must create a flowchart, and its corresponding Python program, to solve the following problem: 1. Using a repetition structure, evaluate the factorial of a positive whole number n: n! = n · (n - 1) · (n - 2) · ... · 1, where n >=1 Your program must take into account the cases in which the user enters an incorrect number and provide an error message for such cases.
You must create a flowchart, and its corresponding Python program, to solve the following problem: 1....
You must create a flowchart, and its corresponding Python program, to solve the following problem: 1. Using a repetition structure, evaluate the factorial of a positive whole number n: n! = n · (n - 1) · (n - 2) · ... · 1, where n >=1 Your program must take into account the cases in which the user enters an incorrect number and provide an error message for such cases.
What is the basic structure of a C++ program?
What is the basic structure of a C++ program?
Write a program (also write its pseudocode and draw its flowchart) to prompt the user to...
Write a program (also write its pseudocode and draw its flowchart) to prompt the user to input the variables to solve the following problem: X2 + X×Y/Z – W*V3 Note 1: You should ask the user to input 5 number to be able to do this calculation. Note 2: You can use multiplication instead of power if you do not want to use it (as we have not officially covered it).
create a basic python program that converts binary to number (using if statements etc) Asking user...
create a basic python program that converts binary to number (using if statements etc) Asking user for input of binary number converting/calculating printing
This is a link referencing this flowchart and code located here and revising it to fit...
This is a link referencing this flowchart and code located here and revising it to fit the needs of the instructions below. Here is the link: https://www.chegg.com/homework-help/questions-and-answers/hello-please-help-thanks-business-manager-reassessed-needs-website-design-determined-would-q39653574?trackid=EvMGo580 The business updated its website program design request with a few more features to fit its needs. Revise the website program to reflect the following changes: Prompt the sales manager for a number of months Allow the sales manager to input the number of months Use a loop to prompt the sales manager...
Using a loop (not the output format character %o), create a program that takes a positive...
Using a loop (not the output format character %o), create a program that takes a positive integer n, and then displays the polynomial for the octal representation of that integer. Use successive division, as demonstrated in the binary conversion example from the lesson, to do this. For example, for n = 157, the program should output the following: 157 = + (5 * 8^0) + (3 * 8^1) + (2 * 8^2) When this part is working properly, “surround” this...