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
Kruka [31]
3 years ago
7

Write a complete program that declares an integer variable, reads a value from the keyboard into that variable, and writes to st

andard output the square of the variable's value.
Computers and Technology
1 answer:
vovikov84 [41]3 years ago
5 0

Answer:

#include <iostream>

using namespace std;

int main ()

{

int num;

cin>>num;

cout << num<< " " << 2 num << " " << numnum;

return 0;

}

Explanation:

See answer

You might be interested in
3) An algorithm has a run time of O(nk ) for some integer k. On an input of size 500, the algorithm takes 16 seconds to run. On
lukranit [14]

Answer:

The value of k is 4

Explanation:

Solution

Given that:

k = integer

Input size = 500

The algorithm takes a run of = 16 seconds

Input size = 750

The algorithm takes a run of = 81 seconds

Now,

We have to determine the value of k

The equation is shown below:

(500)^k /16 = (750) ^k /81

Thus

(750/500)^ k = 81/16

= (3/2)^k

=(3/2)^ 4

k is = 4

6 0
3 years ago
In an average case involving an array of n elements, how many times will a sequential search function have to read the array to
Strike441 [17]

Answer:

n/2 times

Explanation:

The number of times  a sequential search function will have to read the array in other to locate a specific value is : n/2 times

In an average case to locate a specific value using the a sequential/linear search the elements of the array will be searched in other to get a specific value and this will take n/2 number of attempts/times.

a sequential search is used to search for a value contained in a data set that has a linear relationship with other values contained in the data set

3 0
4 years ago
My assignment asks me to write a python program using if, elif, and else that takes a user's salary and calculates the tax based
Goryan [66]

Answer:

user_salary = int(input("Please Enter Your Salary : "))

if user_salary in range(10000, 20000):

   print("Tax = ",int(user_salary/100*1))

elif user_salary in range(20000, 30000):

   print("Tax = ",int(user_salary/100*2))

elif user_salary in range(30000, 40000):

   print("Tax = ",int(user_salary/100*3))

else:

   print("No Tax!")

Explanation:

8 0
2 years ago
what will happen if I upgrade my asus crosshair v formula-z motherboard to a asus rog strix b450-f motherboard?
Setler [38]

Answer: A lot will happen

Explanation:

If you will upgrade your laptop, that means it will get better in performance and a lot of other things....

Also, if the laptop has the word formula, you know that's a good thing, especially if it's z, which is the last letter in the alphabet.

And the other letters are something that I don't understand especially the Strix b450-f part..

Hope I helped a lotttt...

3 0
2 years ago
Conducting a hazard assessment requires a walkthrough of the business or work site to identify physical and health hazards.
Andreas93 [3]
The statement above is TRUE.
Hazard assessment requires that a walk through activity be carried out which takes note of all potential hazards in a company or a site. 
Failure to identify and recognize these hazards may lead to fatal accidents.
8 0
3 years ago
Read 2 more answers
Other questions:
  • To copy consecutive items, click the first item in the group, hold down _______, and click the last item
    7·2 answers
  • When using the strcat function, you must be careful not to overwrite the bounds of an array?
    5·1 answer
  • What change does NOT need to be made to the above cover letter excerpt before sending it to an employer? a. Remove background co
    6·2 answers
  • If a website ends with .gov does it mean that its written by the government or?
    11·2 answers
  • A tool in Word that creates multiple copies of the same letter, envelope, or label and inserts personalized data is a(n) _____.
    12·1 answer
  • What is signature in an E-mail​
    10·1 answer
  • What is the difference between Input, Output, and Storage Devices?
    12·2 answers
  • 9.6 Code Practice, this is in Python, I need its quick!
    13·1 answer
  • Factoring is the revers of​
    14·1 answer
  • What are some real-life situations where multi-dimensional arrays might be useful?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!