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
pantera1 [17]
4 years ago
6

Consider this program: Cost1 = input("Please enter the first expense: ") Cost2 = input("Please enter the second expense: ") prin

t("Your total for both expenses was", Cost1 + Cost2) If the user inputs “10” for the first expense and “20” for the second expense, what will the interpreter show in the final line when this program is run? If this result in not what the programmer intended, how would you explain what went wrong?
Computers and Technology
1 answer:
Rainbow [258]4 years ago
4 0

it will show '1020'

the inputs dont know that youre putting in numbers. When it adds the inputs together, it just shows them side by side.

You might be interested in
Declare k, d, and s so that they can store an integer, a real number, and a small word (under 10 characters). Use these variable
Svetradugi [14.3K]

Answer:

int k;

double d;

char s[10];

cin >> k >> d >> s;

cout << s << " " << d << " " << k << "\n" << k << " " << d << " " << s;

Explanation

First Step (declare K, d, s) so they can store a integer

int k;

double d;

char s[10];

Second Step (read in an integer, a real number and a small word)

cin >> k >> d >> s;

Third Step ( print them out )

cout << s << " " << d << " " << k << "\n" << k << " " << d << " " << s;

5 0
3 years ago
Which best explains the process he would follow?​
Anni [7]

The first option.

You gotta find the format tab, and change the color from there.

4 0
4 years ago
What's up with this new update?
Andre45 [30]

Answer:

so do i the notifications are out of control i try to ignore them

Explanation:

and yea so it seems you like to do things such as VR? if so i suggest one from the Oculus brand i dont use them but i heard they were good!

~Brianna/edgumacation

4 0
3 years ago
Read 2 more answers
When the system denies access to someone who is authorized it is called a - false negative?
babunello [35]
The computer declined the process for the password
5 0
4 years ago
Por favor alguem poderia me falar se este Computador Gamer Fox PC FPS Intel Core i5 8GB 3.4 GHZ GeForce GTX 1050Ti 4GB GDDR5 HD
AleksAgata [21]

thats an trash computer

5 0
3 years ago
Other questions:
  • A university wants to install a client-server network. Which feature do you think is important for them as they set up the netwo
    7·1 answer
  • A file extension of .xlsx means that the file contains what? *
    12·2 answers
  • To enable a compute or device that does not have built-in networking capability, use a(n) ______.
    13·1 answer
  • What does the line of red semicircles mean on a weather map
    11·1 answer
  • What are comments meant to do?
    12·1 answer
  • When performing actions between your computer and one that is infected with a virus, which of the following offers NO risk of yo
    11·1 answer
  • There are generally two ways of implementing dynamic programming solutions to problems, which have equal asymptotic time complex
    13·1 answer
  • Please help!!! I am very confused about this question!
    10·1 answer
  • Which sentence describes a biotechnology method of treating sulfur liquor in the paper industry?
    11·1 answer
  • can you follow my ikok? its that_enby_skye and my youube Cactus Face with 241 subscribe er s &amp; my twith Mx_Skye
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!