Solved >   1Fill in the blanks in each of:1644817 …

1Fill in the blanks in each of the following questions.

a)A procedure for solving a problem in terms of the actions to be executed and the order in which the actions should be executed is called a(n) . ANS: algorithm.

b)Specifying the execution order of statements by the computer is called . ANS: program control.

c)All programs can be written in terms of three types of control statements: ,  and .

d)The selection statement is used to execute one action when a condition is true and another action when that condition is false.

e)Several statements grouped together in braces ({ and }) are called a(n) . ANS: compound statement.

f)The  repetition statement specifies that a statement or group of statements is to be executed repeatedly while some condition remains true. ANS: while.

g)Repetition of a set of instructions a specific number of times is called  repetition.

ANS: counter-controlled.

h)When it is not known in advance how many times a set of statements will be repeated, a(n)  value can be used to terminate the repetition. 2              Write four different C statements that each add 1 to integer variable x.

3Write a single C statement to accomplish each of the following:

a)Multiply the variable product by 2 using the *= operator.

b)Multiply the variable product by 2 using the = and * operators.

c)Test if the value of the variable count is greater than 10. If it is, print “Count is greater than 10.”

d)Calculate the remainder after q is divided by divisor and assign the result to q. Write this statement two different ways.

e)Print the value 124567 with 2 digits of precision. What value is printed?

f)Print the floating-point value 14159 with three digits to the right of the decimal point.

What value is printed?

142 is displayed.

4Write a C statement to accomplish each of the following tasks.

a)Define variables sum and x to be of type int. ANS: int sum, x;

b)Set variable x to 1.

c)Set variable sum to 0.

d)Add variable x to variable sum and assign the result to variable sum.

e)Print “The sum is: “ followed by the value of variable sum. ANS: printf( “The sum is: %d\n”, sum );

5 Combine the statements that you wrote in Exercise 4 into a program that calculates the sum of the integers from 1 to 10. Use the while statement to loop through the calculation and increment statements. The loop should terminate when the value of x becomes 11.

6Write single C statements that

a)Input unsined integer variable x with scanf. Use the conversion specifier %u.

b)Input unsinged integer variable y with scanf. Use the conversion specifier %u.

c)Set unsinged integer variable i to 1.

d)Set unsined integer variable power to 1.

e)Multiply unsigned integer variable power by x and assign the result to power.

f)Increment variable i by 1.

g)Test i to see if it’s less than or equal to y in the condition of a while statement.

h)Output unsinged integer variable power with printf. Use the conversion specifier %u.

7 Write a C program that uses the statements in Exercise 7 to calculate x raised to the y power. The program should have a while repetition control statement.

8Identify and correct the errors in each of the following:

a)while ( c <= 5 ) {    product *= c;

b)scanf( “%.4f”, &value );

c)if ( gender == 1 )      puts( “Woman” ); else;      puts( “Man” );

9What’s wrong with the following while repetition statement (assume z has value 100), which is supposed to calculate the sum of the integers from 100 down to 1:

while ( z >= 0 )    sum += z;

10Identify and correct the errors in each of the following. [Note: There may be more than one error in each piece of code.]

a)if ( age >= 65 );    puts( “Age is greater than or equal to 65” ); else

puts( “Age is less than 65” ); ANS:

if ( age >= 65 ) // ; removed    puts( “Age is greater than or equal to 65” ); else

puts( “Age is less than 65” );

b)int x = 1, total;

while ( x <= 10 ) {    total += x;



int x = 1, total = 0; // total not originally initialized while ( x <= 10 ) {    total += x;



c)While ( x <= 100 )    total += x;

while ( x <= 100 ) { // while changed to lowercase    total += x;    ++x;

} // } added

d)while ( y > 0 ) {    printf( “%d\n”, y );


} is an online academic writing platform that provides extensive assistance to graduate school students as they work through their research projects, papers and dissertations. gives students access to experienced professionals who can provide the help they need in a timely and efficient manner. The service offers a wide range of services, including editing, proofreading, formatting, researching and more that can give students the confidence they need to write the perfect paper or dissertation for their chosen subject matter.

Services Offered by offers a wealth of different services designed to make research projects easier for graduate school students. These include editing, proofreading, formatting and researching services, all tailored specifically for graduate-level studies such as PhDs or Master’s degrees in any field from business administration to engineering or even psychology – all with the aim of helping busy students find success in their academics without having to sacrifice other important commitments like family time or work hours towards earning a living wage outside of college hours.

The Benefits of Using
Using gives you access to experts from all over the world who are highly qualified and experienced in helping graduate-level students to complete successful projects in various fields quickly and efficiently – something that would otherwise be difficult, if not impossible, given tight deadlines associated with most Ph.D./Master’s degree programs today. Moreover, using this platform makes it easier for students to keep up with multiple research tasks simultaneously since there are so many different experts available on tap at any one time – no longer will you have to put off studying one topic while focusing on another because of lack of resources! Additionally, having access to professional editors, proofreaders, but also formatters means that quality control standards aren’t sacrificed when finishing major pieces – since these individuals understand what makes up good academic writing better than anyone else and can offer guidance on how best one should go about making improvements along those lines. Finally, there is also an added cost-saving benefit associated with utilizing Graduate Writer Help compared to hiring an independent contractor (which could potentially run into thousands depending on length/complexity).
This service allows users only pay for what students need, which tends to be much lower overall because customers pay per hour rather than project basis, thus resulting to greater financial flexibility, especially for those just starting out postgraduate studies looking to conserve some pennies here there whenever possible!

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more
Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?