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
All of the following are methods to improve the communication of your key messages EXCEPT:
uysha [10]

Answer:

Fill the slides with images and animations

Explanation:

these will most likely distract the audience

6 0
3 years ago
Read 2 more answers
On the cities worksheet, click cell f4 and enter a formula that will subtract the departure date (b1) form the return date (b2)
Mademuasel [1]
=(+B2-B1)*F3 is what you need to enter in cell F4
8 0
3 years ago
write a pseducode that will ask the user to enter the amount of a purchase. The program should then compute that state and provi
stira [4]

The pseudocode of the program is simply a prototype of the actual program

<h3>How to write the pseudocode?</h3>

The pseudocode that does the requirements in the question is as follows:

  • Start
  • Get Input for amount of purchase
  • Compute the state tax: sales tax = sales tax percentage * amount
  • Compute the provisional sales tax: provisional sales tax = provisional sales tax percentage * amount
  • Print the taxes

Read more about pseudocode at:

brainly.com/question/24735155

#SPJ1

7 0
2 years ago
What is the intranet?
Verdich [7]
The internet links you to websites that you need.
8 0
3 years ago
Student B, lives in Phoenix, Arizona and is not on vacation. Student B, submits an assignment for science class and the teacher
frozen [14]

Answer:

Don't take this for your answer though, but no unless the student copied it off of somewhere else.

The IP address might have been spoofed or they could have used a vpn.

Otherwise it would mean that someone else used their account to sign in.

Explanation:

7 0
2 years ago
Other questions:
  • If you were optimizing for performance and wanted to support potentially adding many new elements to an adt, then:
    12·1 answer
  • What is difference between RAM and ROM?
    13·1 answer
  • Output devices reproduce or display which of the following
    12·2 answers
  • Which elements of a myth appear in this story from early babylon
    14·1 answer
  • Is the following sentence true or false? During meiosis, the two alleles for each gene stay together. ______
    15·1 answer
  • What do you think is the importance of Science Technology and Society​
    8·1 answer
  • JAVA
    10·1 answer
  • Which of the following is considered to be open-end credit?
    6·2 answers
  • True or false? Software application packages function as the interface between the operating system and firmware.
    7·1 answer
  • Write a Python program called wdcount.py which uses a dictionary to count the number of occurrences of each word (ignoring case)
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!