1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Assoli18 [71]
4 years ago
6

5. ADD A STATEMENT OR STATEMENTS to the program on the following page (including constant and/or variable declarations if you wa

nt) so that the output is the single character 1 followed by a newline. Statements in the execution body of the program must NOT include any literal constants (numeric, Boolean or char); however, you may declare named constants and/or initialize variables in the declaration section of the program. In the program body, you must use at least TWO declared symbolic names (variables or named constants), and you are ABSOLUTELY FORBIDDEN to use anything like the following statement: printf("1\n"); On the other hand, you are encouraged to use a printf statement that outputs the result of a Boolean expression (which output will be either 1 or 0). If you aren't confident of your answer, type in, compile and run the resulting C program to test it.
Computers and Technology
1 answer:
kvasek [131]4 years ago
4 0

Answer:

C code is explained below

Explanation:

#include <stdio.h>

int main() { /* main */

/*

      **********************************************************

      * Declaration Section

      **********************************************************

      *

      * Named Constants

      */

  const int bits_per_byte = 8;

  const int attention_span_in_seconds = 3;

  /*

  * You can insert stuff after this comment.

*/

/*

* Local variables

*/

  int modem_send_speed_in_bits_per_second = 56000;

  int script_file_length_in_bytes = 28000;

  int seconds_to_send_script_file;

  /*

  * You can insert stuff after this comment.

*/

/*

      **********************************************************

      * Execution Section

      **********************************************************

      *

      * You can insert stuff after this comment.

*/

  seconds_to_send_script_file =

      (script_file_length_in_bytes * bits_per_byte) /

      modem_send_speed_in_bits_per_second;

  if (attention_span_in_seconds < seconds_to_send_script_file)

      printf("1\n");

  else printf("0\n");

} /* main */

You might be interested in
file Assume that a prototype of the part above was built from several cubes. The total volume of the part is 0.54675 in.3. What
Rina8888 [55]
The correct answer is D
5 0
3 years ago
6. What is the difference between portrait and landscape orientation? What are the advantages of
vlabodo [156]

Answer:

PORTRAIT ORIENTATION IS VERTICAL AND LANDSCAPE ORIENTATION IS HORIZONTAL

Explanation:

PORTRAIT SETTING CAN BE USED TO DESCRIBE MEANINGS OF LETTERS IN A WORD LANDSCAPE CAN BE USED TO DIFFERENTIATE  BETWEEN WORDS MEANINGS                                                                                                                                            

3 0
3 years ago
The ____ cell on the worksheet is the one into which you can enter data.â
Illusion [34]

I guess the best answer is Active.

The Active cell on the worksheet is the one into which you can enter data.

3 0
3 years ago
Read 2 more answers
You have double-clicked a device in Device Manager to open its Properties window. Where can you find information about IRQs the
Setler [38]

To find information about IRQs the device might use, make alteration to the View menu option and then change it to Resources by type.

<h3>How do one find information about IRQs?</h3>

The best way to see IRQ information in Windows is through the use of Device Manager.

Note that for one to be able to find information about IRQs the device might use, one has to makes some changes to the View menu option and then one can change it to Resources by type to be able to see the Interrupt request (IRQ) part.

Learn more about Device Manager from

brainly.com/question/869693

#SJ1

7 0
2 years ago
How is ( a || b ) &amp;&amp; c || ( a || b ) &amp;&amp; ( ! c ) equal to ( a || b ) without simplification?
kogti [31]

Answer: You can see the truth table in the image.

Explanation:We can do this question by using truth table.

As we can see in the truth table that there is no effect on the output of the expression by c if a and b both are false then the output is false and if any of them is True or both of them are True then the result is True.

8 0
3 years ago
Other questions:
  • Describe network in terms of the class computer lab
    14·1 answer
  • Christine would like to add something to her document that will illustrate the text. She should _____.
    10·2 answers
  • Which of the following is not a primary environment in Autodesk Inventor? A. Parts B. Assemblies C. Animations D. Presentations
    10·1 answer
  • What is the term for a set of actions carried out on inputs?
    7·1 answer
  • Create two Lists, one is ArrayList and the other one is LinkedList and fill it using 10 state names (e.g., Texas). Sort the list
    6·1 answer
  • Assignment 1: silly sentences edhesive
    7·1 answer
  • Difference between private and confidential data?​
    5·1 answer
  • How do we store value in a variable? Give an example
    15·1 answer
  • What type is the combination of an integer and a string
    13·1 answer
  • Select L for the items that refer to General Lee, H for General Halleck, and M for General McClellan.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!