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
Mila [183]
4 years ago
7

If the user types in the characters 10, and your program reads them into an integer variable, what is the value stored into that

integer?
a. 1
b. 0
c. 10
Computers and Technology
1 answer:
____ [38]4 years ago
7 0

Answer:

c. 10

Explanation:

//C++

#include <iostream>

using namespace std;

int main()

{

   int x;

   cout << "Type a number: "; // Type a number and press enter

   cin >> x; // Get user input

   cout << "Your number is: " << x; // Display the input value

   return 0;

}

Here the program reads the user input x as an integer, to then print the store value of x; the result is that the value printed is 10.

You might be interested in
If a webpage utilizes two css files - style.css and media-queries.css, which should be linked last in the head section?
Dmitry_Shevchenko [17]
Media-queries.css should be linked last, the same as if your media queries were in the same file (always go last)
4 0
3 years ago
in java A retail company must file a monthly sales tax report listing the total sales for the month and the amount of state and
qaws [65]

Answer:

  1. import java.util.Scanner;
  2. public class Main {
  3.    public static void main(String[] args) {
  4.        Scanner input = new Scanner(System.in);
  5.        System.out.print("Input total sales of month: ");
  6.        double totalSales = input.nextDouble();
  7.        double stateTax = totalSales * 0.04;
  8.        double countyTax = totalSales * 0.02;
  9.        double totalSalesTax = stateTax + countyTax;
  10.        System.out.println("County Tax: $" + countyTax);
  11.        System.out.println("State Tax: $" + stateTax);
  12.        System.out.println("Total Sales Tax: $" + totalSalesTax);
  13.    }
  14. }

Explanation:

Firstly, create a Scanner object and prompt user to input total sales of month (Line 5-7). Next, apply the appropriate tax rate to calculate the state tax, county tax (Line 9 - 10). Total up the state tax and county tax to get the total sales tax (Line 11).

At last, print the county tax, state tax and the total sales tax (Line 13 - 15).

8 0
3 years ago
_____ is human thinking and problem-solving by a machine, including learning, reasoning, and self-correction.
Delvig [45]
Yea, artificial intelligence :/
4 0
3 years ago
Why should you delete files from your computer?
LekaFEV [45]

to increase the computer's efficiency

Explanation

The more files it holds, the more "jobs" it has to run, which means that you're computer would be using the same amount of energy running all of them as to less of them. When you close (or delete) some files, it allows the computer to concentrate on only running a smaller amount of files as oppose to a large amount.

hope it helps!

6 0
3 years ago
Read 2 more answers
The order of slides can be changed here.
tino4ka555 [31]
ANSWER:

Yes

WHY:

Not enough information is explained


MARK ME BRAINLIEST PLEASE
5 0
3 years ago
Other questions:
  • un diagrama de flujo donde se gana una partida de ajedrez teniendo en cuenta los movimientos de la otra persona
    8·1 answer
  • Interchanges of ideas in forums and internet news groups are functions of which domain?
    13·1 answer
  • How much days are in a year
    9·2 answers
  • How does the speaker feel about traditional forms of poetry
    14·2 answers
  • Renae wants to write a blog about her favorite sports stars. She wants the blog to be informative and visually appealing, so she
    13·2 answers
  • What is the output of the following C++ code?
    14·1 answer
  • Which solution eliminates the need for dedicated high-speed WAN connections between sites
    5·1 answer
  • I know this isn't a school question but it is important! how do I get out of hp hardware diagnostics UEFI on hp pc? (step by ste
    5·1 answer
  • Write a program that creates a two-dimensional array named height and stores the following data:
    15·2 answers
  • If a user wants to change one small section of the formatting of a document and leave the rest the same, which
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!