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
Evgen [1.6K]
4 years ago
8

Write a method named timesTen. The method should accept a double argument and return a double value that is ten times the value

of the argument.
Computers and Technology
1 answer:
kvasek [131]4 years ago
7 0

Answer:

The code below is implemented using C++.

Explanation:

#include <iostream>

#include <string>

using namespace std;

double timesTen(double num);

int main()

{

double num,tentimesnum;

int i=0;

cout << "Enter number: ";

cin >>num;

tentimesnum=timesTen(num);

int a = 1;

// while loop execution

while( a <= 10 )  

{

cout << "value of "<< a <<": "<< tentimesnum << endl;

a++;

}

return 0;

}

double timesTen(double num)

{

return num*10.0;

}

You might be interested in
Write the function lettersOnly(s) that takes in a string called s, and returns a string containing only the alphabetic character
Phantasy [73]

Answer:

The program to this question as follows:

Program:

def lettersOnly(s): #defining method lettersOnly

   val="" #defining string variable that return value

   for i in s: #defining loop to calculate value

       if(i.isalpha()): #check condition that value is string

           val=val+ i #add value

   return val #return value

print(lettersOnly("data3base_ro1c3k5s")) #call method and print value

Output:

databaserocks

Explanation:

In the above python code, a method lettersOnly is declared that accepts a string variable  "s" in its parameter. Inside the method, a string variable "val", and loop is declared, in which the "val" variable holds method return value.

  • In the loop and if block is used that uses "isalpha" string method, which checks the check alphabetic character in the given value. if this is true it will calculate all value in "val" variable and return its value.    
  • At the last, the print method is used, which calls the lettersOnly method and prints its return value.
4 0
3 years ago
Idea citizen activation
Tatiana [17]
<h2>Answer:</h2><h2>Idea citizen activation badge is a part of the idea silver award and is in the citizen category,helping you learn digital awareness,safety and ethics.</h2>

7 0
4 years ago
Read 2 more answers
What is the value of the variable named result after the following code executes?
Makovka662 [10]

Answer:

The value of result is 20

Explanation:

Given

The above code segment

Required

The value of result

In the first line, we have:

X = 5; Y = 3; Z = 2

In the second, we have:

result = (X + Y)/Z * X

This implies that:

result = (5 + 3)/2 * 5

result = 8/2 * 5

result = 4 * 5

result = 20

3 0
3 years ago
Computer program allowing the computer to communicate<br> with a hardware device
Airida [17]

Answer:The software that allows a computer to communicate with hardware devices is referred to by the general term known as 'Drivers.

Explanation:Transmission Control Protocol/Internet Protocol (TCP/IP) is the backbone of the Internet and the true language computers use to talk to each other. Essentially it's a set of standards for sending information from a computer's network card, through transmission lines to another network card.

8 0
4 years ago
____ helps determine what supplies are required for the value chain, what quantities are needed to meet customer demand, how the
pav-90 [236]

Answer:

Supply Chain Management

Explanation:

Supply Chain Management (SCM) involves all activities that are carried out between the time the raw material becomes a finished product. It also to have a critical look into the activities in the supply-side of businesses to ensure that competitive advantage is achieved and customer value is maximized.

Supply Chain Management is categorized into five parts:

  1. Planning or Strategizing: Proper planning and documentation is necessary for a successful supply chain process.
  2. Source: The location of the raw material must be identified bearing in mind its proximity to the factory or company.
  3. Production: The transition from raw materials to finished products must be monitored to ensure that standards are met.
  4. Logistics and Delivery: This stage is monitored to ensure that customer value is maximized.
  5. Return System: Monitoring and replacement of damaged or defaced goods are necessary goods.
3 0
3 years ago
Other questions:
  • For microsoft word tabs are very useful when you want to
    13·1 answer
  • In a series circuit, electrons only flow along one path. Given this information, which of the following is an advantage of serie
    15·2 answers
  • 10.
    13·1 answer
  • What is the definition of software? Group of answer choices an instruction that causes a single specific action to be performed
    11·1 answer
  • Example 4-1: The styles for the main content of an HTML document main { clear: left; } main h1 { font-size: 170%; } main h2 { fo
    13·1 answer
  • Who like the videos where is clown is from :)
    6·1 answer
  • Finish the program to compute how many gallons of paint are needed to cover the given square feet of walls. Assume 1 gallon can
    9·1 answer
  • Used for monitoring web activity by users to make sure that sensitive information won't leave the building.
    7·1 answer
  • To meet the requirement for the number of vdss on board, what must be true about pyrotechnic vdss?
    15·1 answer
  • You are working on a ticket for a user who cannot access the Internet from their PC. After troubleshooting, how do you confirm t
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!