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
ipn [44]
3 years ago
14

Write statements that output variable numComputers as follows. End with a newline

Computers and Technology
1 answer:
gavmur [86]3 years ago
8 0

Complete Question:

Write statements that output variable numComputers as follows. End with a newline. There are 10 computers.

#include <iostream>

using namespace std;

int main()

{

int numComputers;

cin >> numComputers; // Program will be tested with values: 10.

...

return 0;

}

Answer:

cout << "There are ";

cout << numComputers;

cout << " computers." << "\n";

Explanation:

Using three cout statements the string "There are 10 computers." is printed out, notice that the variable numComputers is entered by the user when the program is run. Another way of concatenating an integer variable and string for printout is by the use of the + (plus) operator.

You might be interested in
At one college, the tuition for a full-time student is $6,000 per semester. It has been announced that the tuition will increase
Alina [70]

Answer:

  1. var projected_fee = 6000;  
  2. for(var i = 1; i <= 5; i++){
  3.    projected_fee = projected_fee * 0.02 + projected_fee;
  4.    console.log("$" + projected_fee.toFixed(2));
  5. }

Explanation:

Firstly, create a variable, projected_fee, and set the initial tuition fee value to it (Line 1).

Next, user a for loop that run for 5 times to repeatedly calculate the projected_fee based on 2 percent of increment rate (Line 4) and display the projected fee to console terminal (Line 5). The output should be

$6120.00

$6242.40

$6367.25

$6494.59

$6624.48

8 0
3 years ago
Which of these tools can best be used as a self assessment for career planning purposes?
Furkat [3]

a self-directed is the correct answer
3 0
3 years ago
Read 2 more answers
How does the actual amount left to spend differ from the budgeted amount for the remaining three months of the project?
Vlad [161]

Answer:

The left(in actual) can be more or less than the budgeted for the remaining time. Suppose some resource fell ill or got damaged, you are going to invest in them, and get them back. However, for that, you need to spend money, and this reduces the actual left, as more of the budgeted is being spent. And this is the difference between the two, the actual left to spend from the budgeted for the remaining time of the project. However, the project managers keep an extra budget these days for such a situation, and hence this drawback in the project plan has already been removed, and the problem is solved.

Explanation:

Please check the answer.

The overexpense %

= (( Actual spent - Budgeted amount)/Budgeted amount) *100

3 0
3 years ago
URGENT!!! If Pete selects the green square or little green camera icon on his camera dial, what mode is he selecting?
SOVA2 [1]

B Shutter Priority Mode

7 0
3 years ago
Organic farming grows more food than chemical farming true or false?
Studentka2010 [4]

FALSE

Organic farming systems yield approximately 10-20% lesser than chemical farming.

Conventional farming has always prioritized more produce, risking other sustainability metrics such as nutritional quality, energy use, soil quality, biodiversity and pollution. Organic farming presents a more balanced approach to agriculture. Organic farming better harmonizes the four areas of sustainability: environment, economics and social well-being.


6 0
3 years ago
Read 2 more answers
Other questions:
  • . What are the disadvantages of using small, fixed-length cells in ATM?
    13·2 answers
  • How auto insurance companies manage risk?
    12·1 answer
  • If a CPU receives theinstruction to multiply the byte-sized values $12 and $3E, thisaction will take place in the ______________
    13·1 answer
  • Which of the following, (1) money deposited in a bank account, (2) student recording her answer to a question in an online test,
    14·1 answer
  • Your friend wants to purchase a new hard drive. She wants a drive that has fast access because she will use it to edit videos on
    8·1 answer
  • What is employee Internet management (EIM) software?
    5·2 answers
  • The term "exception propagation" means:
    5·1 answer
  • Indicate whether the following statements are true or false:
    14·2 answers
  • make a clan using 5S of the current state of your workstation now in the computer laboratory room how are you going to manage sm
    8·1 answer
  • A company is looking to share data between two platforms in order to extend their functionality. which feature enables communica
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!