# programming

posted by .

Part A: Write a code segment that inputs an integer from cin, and then outputs a row of that many stars on cout.
Part B: Change the code segment to read a series of numbers from file indata, and print a row of stars on cout for each number read.

## Similar Questions

1. ### computer science

Algorithm for Binomial Numbers Task Binomial numbers (or binomial coefficients) are important positive integers that arise frequently in computing and mathematics. A function to compute binomial coefficients will have two inputs: n …
2. ### C++

Can anyone help me with my c++ program? Its a program I have to write using structs and arrays and i'm stuck. If anyone can help can you post back and I'll show you what i've got and maybe you can tell me why its not working correctly.
3. ### C++ Programming

I NEED HELP WITH MY CODE!!! it won't compile right The formula for finding the force of gravity between two objects is Force = grav * (mass1 * mass2) / (radius * radius), where Force = the force of gravity between the two objects, …
4. ### C++ Algorithms

Binomial numbers (or binomial coefficients) are important positive integers that arise frequently in computing and mathematics. A function to compute binomial coefficients will have two inputs: n and k. The corresponding coefficient …
5. ### C++

I have no idea how to construct this program. Any help is appreciated. Thank you. In a population, the birth rate is the percentage increase of the population due to births and the death rate is the percentage decrease of the population …
6. ### programming

Write a code segment that inputs an integer from cin, and then outputs a row of that many stars on cout.
7. ### Computer Literary

Which of the following is Not an example of debugging A)Looking for errors in programming code B)Fixing misspelled commands in programming code C)Solving faulty logic in programming code D)Upgrading to improve the programming code
8. ### C++

I am trying to create a program that displays shipping charges for two region codes. The region code has to have exactly 3 characters (the letter A or B followed by two numbers). Display a message if invalid region code is entered. …
9. ### Math

An automobile dealership uses CODE = 1 for new automobiles, CODE = 2 for used automobiles, and CODE = 3 for separate accessories. A salesmanâ€™s commissions are as follows: on new automobile, 3% of the selling price but a maximum of …
10. ### Math

An automobile dealership uses CODE = 1 for new automobiles, CODE = 2 for used automobiles, and CODE = 3 for separate accessories. A salesmanâ€™s commissions are as follows: on new automobile, 3% of the selling price but a maximum of …

More Similar Questions