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
How do you take a green screen out of the video while editing?
ElenaW [278]

you should get something called  filmora you should be able to find a tutorial on how to use it

5 0
3 years ago
When entering new data into your table, which key should you press to move from one field or cell to the next?
prohojiy [21]

Answer:

Tab key or Enter key is the correct answer.

Explanation:

When the user want to move from one cell to another cell or field then they use the tab key or enter key. If the user wants to fill data vertically then, they use Enter key to move one cell to another and id they wants to fill data horizontally then, they use Tab key to move on the next cell. So, that's why when they want to fill data in Row or Column then, they use tab key or enter key.

6 0
4 years ago
Which of these is an online presentation tool?
Marina86 [1]
Google slides is and online presentation tool
5 0
3 years ago
Read 2 more answers
The __________ utility has the capability to manage users, create and administer user groups, and apply user rights to those use
barxatty [35]
The SECURITY utility has the capability to manage users, create and administer user groups, and apply user rights to those users and groups.
7 0
3 years ago
Malware that is spread through security warnings or advertisements for antivirus software is known as
svetlana [45]
It is known as A bug
5 0
4 years ago
Other questions:
  • What is the difference between First Person Shooters and Construction Simulations?
    12·2 answers
  • Drag the tiles to the correct boxes to complete the pairs.
    13·1 answer
  • Which of the following experiences is considered a simulation?
    12·1 answer
  • To maintain her audience's confidence in her, what should kiara not do while delivering her presentation?
    10·1 answer
  • __________ systems support the search for and sharing of organizational expertise, decision making, and collaboration at the org
    9·1 answer
  • PLEASE ASAP!!
    9·2 answers
  • You can filter the data based on certain specific conditions in Excel 2013 true or false​
    8·1 answer
  • Your development server is experiencing heavy load conditions. Upon investigating, you discover a single program using PID 9563
    5·1 answer
  • The science of networking is attributed to which government's involvement?
    11·1 answer
  • The value that decides whether something falls into one category or another is called a ____
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!