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
a_sh-v [17]
3 years ago
7

What happens when a Boolean expression is evaluated?

Computers and Technology
1 answer:
Lemur [1.5K]3 years ago
5 0

Answer:

If the condition evaluates as True, then, the next statement is executed.

You might be interested in
A(n) ______________________________ is a camera mount that uses the concept of a lever and fulcrum and allows a camera to be rai
rewona [7]
Hey and thanks for giving me the chance to serve u
_________________tripod 
_______________
hope l helped
4 0
3 years ago
Write a program in C which will open a text file named Story.txt. You can create the file using any text editor like notepad etc
ddd [48]

Answer:

See explaination

Explanation:

#include <stdio.h>

#include <stdlib.h>

int main()

{

FILE * file_object;

char file_name[100];

char ch;

int characters=0, words=0;

printf("Enter source file name: ");

scanf("%s", file_name); //asking user to enter the file name

file_object = fopen(file_name, "r"); //open file in read mode

if (file_object == NULL)

{

printf("\nUnable to open file.file not exist\n"); //check if the file is present or not

}

while ((ch = fgetc(file_object)) != EOF) //read each character till the end of the file

{

if (ch == ' ' || ch == '\t' || ch == '\n' || ch == '\0') //if character is space or tab or new line or null character increment word count

words++;

else

characters++; //else increment character count this assures that there is no spaces count

}

printf("The file story.txt has the following Statistics:\n"); //finally print the final statistics

if (characters > 0)

{

printf("Words: %d\n", words+1); //for last word purpose just increment the count of words

printf("Characters (no spaces): %d\n", characters);

}

fclose(file_object); //close the file object

return 0;

}

6 0
4 years ago
Summary In this lab, you declare and initialize variables in a C++ program. The program, which is saved in a file named NewAge.c
AVprozaik [17]

Answer:

<em>#include <iostream></em>

<em>using namespace std;</em>

<em>int main()</em>

<em>{</em>

<em>  int myNewAge;</em>

<em>  int myCurrentAge = 29;</em>

<em>  int currentYear = 2020;</em>

<em> </em>

<em>myNewAge = myCurrentAge+(2050-currentYear);</em>

<em />

<em>cout<<"My Current Age is "<<myCurrentAge<<". I will be "<<myNewAge<<" in 2050"<<endl;</em>

<em>    return 0;</em>

<em>}</em>

Explanation:

The program is written in C++ language as required. firstly, we declare the three variables:

<em>  </em><em>int myNewAge;</em>

<em>  int myCurrentAge = 29;</em>

<em>  int currentYear = 2020;</em>

Then we calculate the new age as: <em>myNewAge = myCurrentAge+(2050-currentYear);</em>

Using multiple cout operators (<em> </em><<) we display the output nicely as required by the question with this statement

<em>cout<<"My Current Age is "<<myCurrentAge<<". I will be "<<myNewAge<<" in 2050"<<endl;</em>

7 0
3 years ago
What is the missing line of code? &gt;&gt;&gt;from math th import &gt;&gt;&gt; Point = [1,5) &gt;&gt;&gt; bPoint [4.9]​
Ulleksa [173]

Answer:

I believe import math.

Do let me know if its correct.

3 0
2 years ago
To use the wireless network in the airport you must pay the daily fee unless you are a subscriber to the service. Express your a
just olya [345]

Answer:

s ----> w V d

Explanation:

<em>s: You are a subscriber to the service</em>

<em>w: You can use the wireless network in the airport</em>

<em>d: You pay the daily fee</em>

From the statement, we can deduce that To use the wireless in the airport, you either have to be a subscriber to the service or you pay the daily fee.

The statement can be written logically as :

If you are a subscriber to the service, then you can use the wireless network in the airport or you can pay the daily fee

it can be written symbolically as:

s --------> w V d

5 0
4 years ago
Other questions:
  • Select the correct text in the passage.
    5·1 answer
  • In a linux script, the line ____ is important because it identifies the file as a script.
    5·1 answer
  • When can you message on brainly? My account says I have to answer more questions first.
    6·1 answer
  • Sam wants to move across the text and his documents to add data at predefined stops. Which key will Hughes to navigate through t
    6·1 answer
  • write a java program to accept three item names and prices, and output them. Also output the average price if one of the items i
    14·1 answer
  • When a person bullies someone using technology, it's called:
    9·2 answers
  • Ask what are brainly points for besides asking questions.
    9·1 answer
  • JAVA
    13·1 answer
  • Hue purchased 50 shares of stock on April 24, 2019. The price skyrocketed, so she decided to sell the stock in April of 2020. Wh
    12·1 answer
  • ____ is an example of a set of prewritten classes that allows you to access data stored in a database.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!