To have integrity means that you

Answers

Answer 1
You are honest and disciplined

Related Questions

Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in binary. For an integer x, the algorithm is:
As long as x is greater than 0
Output x % 2 (remainder is either 0 or 1)
x = x // 2
Note: The above algorithm outputs the 0's and 1's in reverse order. You will need to write a second function to reverse the string.
Ex: If the input is:
6
the output is:
110
Your program must define and call the following two functions. The function integer_to_reverse_binary() should return a string of 1's and 0's representing the integer in binary (in reverse). The function reverse_string() should return a string representing the input string in reverse.
def integer_to_reverse_binary(integer_value)
def reverse_string(input_string)
Note: This is a lab from a previous chapter that now requires the use of a function.

Answers

Answer:

#include <iostream>//header file

#include <string>//header file

using namespace std;

string integer_to_reverse_binary(int integer_value)//defining a method integer_to_reverse_binary  

{

   string ret = "";//defining string variable

   while (integer_value > 0) //using while loop to check integer_value value is greater than 0

   {

       ret += '0' + (integer_value % 2);//adding zeros in remainder value

       integer_value /= 2;//holding quotient value

   }

   return ret;//return string value

}

string reverse_string(string input_string)//defining a method reverse_string that holds a parameter user_String  

{

   string result;//defining a string variable  

   for (int i = 0; i < input_string.length(); ++i)//use for loop to calculate value  

   {

       result += input_string[input_string.length()-i-1];//add value in result variable

   }

   return result;//result result variable value

}

int main()//defining main method  

{

   int num;//defining integer variable

   string str;//defining string variable

   cin >> num;//input num value

   str = integer_to_reverse_binary(num);//use str variable to call the integer_to_reverse_binary method

   cout << reverse_string(str) << endl;//printing the reverse_string method value

   return 0;

}

Output:

6

110

Explanation:

In this code two string method "integer_to_reverse_binary and reverse_string" is defined that holds one parameter "integer_value and input_string".

In the first method a string variable is defined, that use the while loop to check integer value is greater than 0 and add zeros in the value and return its value as a string.

In the second it reverse the string value and store into the result variable, and in the main method the "num and str" variable is defined, and in the num it takes integer value and pass into the above method and print its return value.    

What is the influence of new technology on society?
Ο Α. .
New technology hardly has any impact on society.
OB.
New technology is only beneficial to society and cannot be detrimental.
OC.
New technology is detrimental, as it makes the existing technology obsolete.
OD. New technology normally utilizes a lot of resources and can adversely affect the economy.
O E.
New technology is beneficial but can also be usedly a detrimental way.

Answers

Answer:

E. New technology is beneficial but can also be used in a detrimental way.

Explanation:

New technology such as cryptocurrency (powered by blockchain technology) can be regarded as a welcome development that has benefited the society in so many good ways. However, cryptocurrency as a new technology also has disadvantages it presents to the society. One of such negative influence cryptocurrency has is that it can be used for illicit activities such as money laundering, funding terrorism and so on.

So, in summary, we can conclude that:

"New technology is beneficial but can also be used in a detrimental way."

CH4 has how many of each type of atom?

Answers

Its easy that moderators that see this answer can think that my answer isn't without explanation.

• Type of atom C (Carbon)

C = 1

• Type of atom H (Hydrogen)

H = 4

You dont understand? JUST SEE THE FORMULA C MEANS ONLY HAVE 1 CARBON ATOM AND H4 MEANS 4 ATOM OF HYDROGEN

oK. have a nice day hope you understands

Other Questions
At the start of the Renaissance, composers wrote polyphonic music but began to emphasize the equal balance of the voices. What type of musical piece MOST likely resulted from this new style? A. chant B. antiphon C. canon D. lyric poem what is the acceleration of a satellite moving in a circular orbit around the earth of radius 2r Jamie is considering leaving her current job, which pays $75,000 per year, to start a new company that develops applications for smartphones. Based on market research, she can sell about 50,000 units during the first year at a price of $4 per unit. With annual overhead costs and operating expenses amounting to $145,000. Jamie expects a profit margin of 20 percent. This margin is 5 percent larger than that of her largest competitor, Apps. Inc.a. If Jamie decides to embark on her new venture, What will her accounting cost be during the first year of operation? Her implicit costs? Her opportunity costs?Accounting costs:$_____Implicit costs: $_____Opportunity costs:$_____b. Suppose that Jamie's estimated selling price is lower than originally projected during the first year. How much revenue would she need in order to earn positive accounting profits? Positive economic profits?Revenue needed to earn positive accounting profits:$______Revenue needed to earn positive economic profits: HELPPP PLEASE RN!!!!What are Political Parties? What are the 2 major ones in the US? Which one do you support? Why does paying off the highest interest rate credit card first make the most mathematical sense? Iready question: How does the author address aconflicting point of view?The author acknowledges somepeople's feelings that life skills areHowever, she argues that parents andteens lack thetheywould need to focus on life skillstraining. Michael writes down 4 different factors of 60He adds the 4 factors together.He gets a number greater than 20 but less than 35What 4 factors could Michael have written down?Input note: write them from smallest to biggest, separated with commas, i.e. 1, 2, 3, 4 Pls help me answer the question attached In sentence 12 (reproduced below), which version of the underlined word best conveys the writer's perspective on long space missions?with NASA's attention directed to the problems of long space missions, it is certain that scientists will come up with creative solutions to the elevated risks to human well-being in space much as they have addresseddangers associated with shorter missions(as it is now)BlikelypossibleD) assuredinconceivable Only the smartest person in science can help me right now...1. Use the given soil triangle. What percentage of sand does loam have?2. Use the given soil triangle. What percentage of silt does loam have?3. Use the given soil triangle. Look for the letter B in Sandy Clay Loam. What percentage of clay does "B" have?4. Use the given soil triangle. Look for the letter B in Sandy Clay Loam. What percentage of silt does "B" have? An audio recording has five minutes of silence at the beginning. Which audio-editing technique will delete this unwanted silence?topping and tailingnormalizingequalizingdithering Write a program that takes in a positive integer as input, and outputs a string of 1's and 0's representing the integer in binary. For an integer x, the algorithm is:As long as x is greater than 0 Output x % 2 (remainder is either 0 or 1) x = x // 2Note: The above algorithm outputs the 0's and 1's in reverse order. You will need to write a second function to reverse the string.Ex: If the input is:6the output is:110Your program must define and call the following two functions. The function integer_to_reverse_binary() should return a string of 1's and 0's representing the integer in binary (in reverse). The function reverse_string() should return a string representing the input string in reverse.def integer_to_reverse_binary(integer_value)def reverse_string(input_string)Note: This is a lab from a previous chapter that now requires the use of a function. How could this document help you argue for abolishing the Electoral College? Saudi Arabia has traditionally been an oil-based economy with strong government controls over major economic activities. To diversify the economy, the Saudi government is working to increase the private sector. These efforts focus on telecommunications, power generation, and chemicals. Which economic system is described in this statement? a. Traditional b. Primitive c. Market d. Mixed shen buys candy that costs $4 per pound he will spend at least $20 on candy what are the possible numbers of pounds he will buy Solve the inequality 13 > 3x + 1 What is the most important mountain animal for the people of Nepal? if the forces on an object are balanced the resultant force is equal to zero true false Please answer please Ill give you brainless. Its important. Please Please help i need to help