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.
Classify the characteristics as abstract classes or interfaces.
A. Uses the implements keyboard
B. Cannot have subclasses
C. Does not allow static and final variables
D. Can have subclasses
E. Uses the extends keyboard
F. Allows static and final variables
........................ allows you to press a key or code for insertion of long phrases that you may require using repeatedly which saves time. *
Answer:
text expander
Explanation:
Answer:
The answer to this is a text expander!
Hope this helps you! Have a nice day!
What infection type can send information on how you use your computer to a third party without you realizing it
Answer:
Spyware collects your personal information and passes it on to interested third parties without your knowledge or consent. they also install trojan horses
Explanation:
Which of the following activities is permissible for IT professionals in the conduct of computer access and authorizations?
viewing explicit content on a company computer
posting updates to social media networks during slow periods at work
using another company’s copyrighted images for the company’s website
using the company’s e-mail software to send work-related e-mails
Answer:
D
Explanation:
Answer: A, B, C, D
Explanation:
Pls help computer science I will give brainliest
Answer:
A driver assists with hardware management.
Hope this helped.
Answer: Hardware Management
Reason: Depends on the driver type
Assume you are a security professional. You are determining which of the following backup strategies will provide the best protection against data loss, whether from disk failure or natural disaster: Daily full server backups with hourly incremental backups Redundant array of independent disks (RAID) with periodic full backups Replicated databases and folders on high-availability alternate servers Answer the following question(s): Which backup strategy would you adopt? Why?
Answer: if you have data that is lost then you need to find the things you have deleted and get that data back
Explanation:
Write a program that reads a file containing text. Read each line and send it to the output file, preceded by line numbers. If the input file is Mary had a little lamb Whose Fleece was a white as snow. And everywhere that Mary went, The lamb was sure to go! then the program produces the output file /* 1 */ Mary had a little lamb /* 2 */ Whose Fleece was a white as snow. /* 3 */ And everywhere that Mary went, /* 4 */ The lamb was sure to go! The line numbers are enclosed in /* */ delimiters so the program can be used for numbering Java source files. Prompt the user for the input and output file names.
#!/bin/bash
INPUT_FILE=$1
count=1
while IFS= read -r line; do
echo $count - $line
count=$(($count + 1))
done < $INPUT_FILE
When a laptop internal device fails, what three options can you use to deal with the problem?
Answer:
I. Return the laptop to a service center for repair.
II. Substitute an external component for the internal component.
III. Replace the internal component.
Explanation:
A laptop can be defined as a small portable computer that is embedded with a keyboard and light enough to be placed on the user's lap while working.
When a laptop internal device fails, the three options which you can use to deal with the problem are;
I. Return the laptop to a service center for repair: a computer technician at the service center would troubleshoot and fix the problem i.e the internal device that failed.
II. Substitute an external component for the internal component: the user could swap a component found on the outside of a laptop with an internal component provided that they are compatible with each other.
III. Replace the internal component: if the failed internal component is a customer replaceable unit (CRU), you can easily replace it.
Need help plz with the code
Answer:
its blocked
Explanation:
When you purchase donuts, they come in boxes of 12, so 24 donuts take 2 boxes. All donuts need to be in a box, so if you buy 13 donuts, you'll get 2 boxes with 12 in the first box and 1 in the second. If the integer variable numberOfDonuts contains the positive number of donuts purchased, which of the following will correctly give the number of boxes needed?
a. int numberOfBoxes = 1 + numberOfDonuts / 12;
b. int numberOfBoxes = numberOfDonuts / 12 + numberOfDonuts % 12;
c. int numberOfBoxes = numberOfDonuts / 12;
d. int numberOfBoxes = (numberOfDonuts + 11) / 12;
Answer:
d) int numberOfBoxes = (numberOfDonuts + 11) / 12
Explanation:
Hope this helps
What is the value of grade after this program is executed? Assume the score is 50. if score >= 90: grade = "A" elif score >= 80: grade = "B" elif score >= 70: grade = "C" elif score >= 60: grade = "D" else: grade = "F" grade =
Answer:
the grade would be C
Explanation:
Your program has a loop. You want to pass control back to the start of a loop if a certain condition is met.
What statement will keep you in the loop but skip the rest of the code in the loop?
continue
exit
quit
break
Answer:
continue
Explanation:
David writes an essay as part of an assignment at school. He wants to indent the first lines of several paragraphs. With a word processing program such as OpenOffice Writer, which tab in the Paragraph dialog box would allow him to indent the first line automatically?
Answer:
Yes, that would be very smart for him.
Explanation:
I got it right on edge 2020
Answer:
Plato/Edmentum
Explanation:
what technical was the microscope invented in?
Answer:
Two Dutch spectacle-makers and father-and-son team, Hans and Zacharias Janssen, create the first microscope in 1590.
Explanation:
A microscope is an instrument that makes an enlarged image of a small object, thus revealing details too small to be seen by the unaided eye. The most familiar kind of microscope is the optical microscope, which uses visible light focused through lenses. Eeuwenhoek observed animal and plant tissue, human sperm and blood cells, minerals, fossils, and many other things that had never been seen before on a microscopic scale. He presented his findings to the Royal Society in London, where Robert Hooke was also making remarkable discoveries with a microscope.
Pls help I will give points
Answer:
Desktop
Explanation:
what will allow you to immediately exit the program without rebooting the computer, when you realize your browser is not responding
Answer:
the exit button on top right or x out of that certain tab
Explanation:
In Python!!
1. Correcting string errors
It's easy to make errors when you're trying to type strings quickly.
Don't forget to use quotes! Without quotes, you'll get a name error.
owner = DataCamp
Use the same type of quotation mark. If you start with a single quote, and end with a double quote, you'll get a syntax error.
fur_color = "blonde'
Someone at the police station made an error when filling out the final lines of Bayes' Missing Puppy Report. In this exercise, you will correct the errors.
# One or more of the following lines contains an error
# Correct it so that it runs without producing syntax errors
birthday = "2017-07-14'
case_id = 'DATACAMP!123-456?
2. Load a DataFrame
A ransom note was left at the scene of Bayes' kidnapping. Eventually, we'll want to analyze the frequency with which each letter occurs in the note, to help us identify the kidnapper. For now, we just need to load the data from ransom.csv into Python.
We'll load the data into a DataFrame, a special data type from the pandas module. It represents spreadsheet-like data (something with rows and columns).
We can create a DataFrame from a CSV (comma-separated value) file by using the function pd.read_csv.
# Import pandas
import pandas as pd
# Load the 'ransom.csv' into a DataFrame
r = ___.___('___')
# Display DataFrae
print(r)
3. Correcting a function error
The code in the script editor should plot information from the DataFrame that we loaded in the previous exercise.
However, there is an error in function syntax. Remember that common function errors include:
Forgetting closing parenthesis
Forgetting commas between each argument
Note that all arguments to the functions are correct. The problem is in the function syntax.
# One or more of the following lines contains an error
# Correct it so that it runs without producing syntax errors
# Plot a graph
plt.plot(x_values y_values)
# Display the graph
plt.show()
4. Snooping for suspects
We need to narrow down the list of suspects for the kidnapping of Bayes. Once we have a list of suspects, we'll ask them for writing samples and compare them to the ransom note.
A witness to the crime noticed a green truck leaving the scene of the crime whose license plate began with 'FRQ'. We'll use this information to search for some suspects.
As a detective, you have access to a special function called lookup_plate.
lookup_plate accepts one positional argument: A string representing a license plate.
# Define plate to represent a plate beginning with FRQ
# Use * to represent the missing four letters
____ = ____
Please help out~~~
Answer:
Following are the solution to the given points:
Explanation:
For point 1:
birthday = "2017-07-14" # defining a string variable birthday that string value
case_id = 'DATACAMP!123-456?' #defining a variable case_id that stores the string value
In this, two variable "birthday and case_id" is defined, that holds the string value. In the first variable, it uses the hyphen sign to hold the date value as a string. In the second variable, it uses a single quoit to store string value.
For point 2:
import pandas as pd # using import package to import pandas
r = pd.read_csv('ransom.csv')# defining r variable that uses pandas to Load the 'ransom.csv' file
print(r)#use print method to print r value
In this code, a pandas package is imported, and in the next step r variable is defined that uses the read method to hold the csv file , and the print method to print r value.
For point 3:
plt.plot(x_values, y_values) # Plot method to hold parameters values
plt.show()#calling the show method
In this code, the plot method is used, which accepts two-parameter to store its value into plt, and in the next step, it uses the show method.
For point 4:
# Defining a plate variable to represents the plate that starts with FRQ
# Using the * to represent the four missing letter
plate = lookup_plate('FRQ*)
You are the IT administrator for a small corporate network. Over the weekend, another employee in the IT department upgraded some components in the Support workstation. When a Support employee came to work this morning, his computer would not start. In this lab, your task is to troubleshoot the problem and take the necessary steps to get the computer to start. Examine the computer to identify possible problems that would prevent it from coming on. Make sure the power cord between the computer and the power strip is plugged in. Make sure the power supply voltage is set to 115V. Make sure the power supply switch is on.
Answer:
Explanation:
First, you should make sure the power cable is properly connected to the pc and the wall plug. Next, you need to make sure that the power switch on the PC's power supply is turned on. If the PC still does not turn on, you may want to check if the wall plug is providing electricity. If so, the next step would be to check the inner cables connecting the power supply to the pc and make sure everything is correctly connected.
If you have tried all of this to no avail then the most likely reason is that something is broken. The possible culprits could be bad cables, broken power button, bad power supply, or failed motherboard. You would have to individually test each component to find the culprit.
Write a C++ program that prints out the following menu for a game (include the line of asterisks (*) on top and bottom). Try to use "endl" and the escape sequences \n, \t in your program.2 *********************************************** Welcome! Please choose a number from the following options: 1. Play the MAD LIBS game! 2. Play the CHOOSE YOUR OWN ADVENTURE game! 3. Exit *********************************************** Q#5: Write a C++ program to print out the following sentences. This is a practice of e
Answer:
#include <iostream>
using namespace std;
const int NRSTARS=50;
int main() {
cout << string(NRSTARS, '*') << endl;
cout << "Welcome!\nPlease choose a number from the following options:" << endl;
cout << "1. Play the MAD LIBS game!" << endl;
cout << "2. Play the CHOOSE YOUR OWN ADVENTURE game!" << endl;
cout << "3. Exit" << endl;
cout << string(NRSTARS, '*') << endl;
}
The example C++ program that prints the menu and the sentences is shown below:
What is the programcpp
#include <iostream>
int main() {
std::cout << "***********************************************" << std::endl;
std::cout << "Welcome! Please choose a number from the following options:" << std::endl;
std::cout << "1. Play the MAD LIBS game!" << std::endl;
std::cout << "2. Play the CHOOSE YOUR OWN ADVENTURE game!" << std::endl;
std::cout << "3. Exit" << std::endl;
std::cout << "***********************************************" << std::endl;
// Printing out sentences
std::cout << "Q#5: Write a C++ program to print out the following sentences:" << std::endl;
std::cout << "Sentence 1: Hello, world!" << std::endl;
std::cout << "Sentence 2: I love programming." << std::endl;
std::cout << "Sentence 3: C++ is a powerful language." << std::endl;
return 0;
}
Read more about program here:
https://brainly.com/question/23275071
#SPJ2
Identify advantages that web designers gained by
switching to divs and CSS for page layout. Check
all of the boxes that apply.
Divs describe the type of content they
contain.
Divs can be styled to any shape, size, or
location on a page.
Divs can contain a combination of tagged
content.
Answer:
B Divs can be styled to any shape, size, or location on a page.
C Divs can contain a combination of tagged content.
Explanation:
it just said i was blocked from brainly for a sec i was like- dang- then i logged in again then it was back to normal uHhHh can someone eXpLaIn ?
Answer:
it has been doing the same to me if your on a school computer at home then it will bug sometimes but if you were at school then it would probably be entirely blocked but idrk
Explanation:
Answer:
It was probably a glitch in the site.
Explanation:
Sometimes sites glitch out and they say certain things but when you log back in or refresh the page your fine. I don't think it's anything to worry about.
PROJECT: RESEARCHING THE HISTORY OF THE INTERNET
The Internet has had a profound effect on how we conduct business and our personal lives. Understanding a bit about its history is an important step to understanding how it changed the lives of people everywhere.
Using the Internet, books, and interviews with subject matter experts (with permission from your teacher), research one of the technological changes that enabled the Internet to exist as it does today. This may be something like TCP/IP, the World Wide Web, or how e-mail works. Look at what led to the change (research, social or business issues, etc.) and how that technology has advanced since it was invented.
Write a research paper of at least 2, 000 words discussing this technology. Make sure to address the technology’s development, history, and how it impacts the Internet and users today. Write in narrative prose, and include a small number of bullet points if it will help illustrate a concept. It is not necessary to use footnotes or endnotes, but make sure to cite all your sources at the end of the paper. Use at least five different sources.
Submission Requirements
Use standard English and write full phrases or sentences. Do not use texting abbreviations or other shortcuts.
Make any tables, charts, or screen shots neat and well organized.
Make the information easy to understand.
Write a program that gets three input characters which are user's initials and displays them in a welcoming message. Then gets input of the quantities of each of the following coins, in the respective order, quarters, dimes, nickels, and pennies.
Computes the total value of the coins, and then displays the value.
Enter the initials with no space, e.g. JTK.
Here are sample runs (blue user input):
Test Run 1
Enter your initials, first, middle and last: JTK Hello J.T.K., let's see what your coins are worth.
Enter number of quarters: 4
Enter number of dimes: 0
Enter number of nickels: 0
Enter number of pennies: 0
Number of quarters is 4.
Number of dimes is 0.
Number of nickels is 0.
Number of pennies is 0.
Your coins are worth 1 dollars and 0 cents.
Test Run 2 Enter your initials, first, middle and last: RHT
Hello R.H.T., let's see what your coins are worth.
Enter number of quarters: 0
Enter number of dimes: 10
Enter number of nickels: 0
Enter number of pennies: 0
Number of quarters is 0.
Number of dimes is 10.
Number of nickels is 0.
Number of pennies is 0.
Your coins are worth 1 dollars and 0 cents.
Answer:
#include <iostream>
using namespace std;
int main()
{
// variable declaration
string initials;
int quarters;
int dimes;
int nickels;
int pennies;
float total;
int dollars;
int cents;
//initials request
std::cout<<"Enter your initials, first, middle and last: "; std::cin>>initials;
//welcome message
std::cout<<"\nHello "<<initials<<"., let's see what your coins are worth."<<::std::endl;
//coins request and display
std::cout<<"\nEnter number of quarters: "; std::cin>>quarters;
std::cout<<"\nEnter number of dimes: "; std::cin>>dimes;
std::cout<<"\nEnter number of nickels: "; std::cin>>nickels;
std::cout<<"\nEnter number of pennies: "; std::cin>>pennies;
std::cout<<"\n\nNumber of quarters is "<<quarters;
std::cout<<"\nNumber of dimes is "<<dimes;
std::cout<<"\nNumber of nickels is "<<nickels;
std::cout<<"\nNumber of pennies is "<<pennies;
//total value calculation
total = quarters*0.25+dimes*0.1+nickels*0.05+pennies*0.01;
dollars = (int) total;
cents = (total-dollars)*100;
std::cout<<"\n\nYour coins are worth "<<dollars<<" dollars and "<<cents<<" cents."<<::std::endl;
return 0;
}
Explanation:
Code is written in C++ language.
First we declare the variables to be used for user input and calculations.Then we show a text on screen requesting the user to input his/her initials, and displaying a welcome message.The third section successively request the user to input the number of quarters, dimes, nickels and pennies to count.Finally the program calculates the total value, by giving each type of coin its corresponding value (0.25 for quarters, 0.1 for dimes, 0.05 for nickels and 0.01 for pennies) and multiplying for the number of each coin.To split the total value into dollars and cents, the program takes the total variable (of type float) and stores it into the dollars variable (of type int) since int does not store decimals, it only stores the integer part.Once the dollar value is obtained, it is subtracted from the total value, leaving only the cents part.
Which operation will remove the originally selected information?
O Duplicate
O Copy
O Paste
O Cut
Answer:
D. the cut command
Explanation:
An articulated robot has a T-type wrist axis that can be rotated a total of 2 rotations (each rotation is a full 3600 ). It is desired to be able to position the wrist with a control resolution of 0.250 between adjacent addressable points. (a) Determine the number of bits required in the binary register for that axis in the robot's control memory. (b) Using this number of bits, what is the actual control resolution of the joint
What number does this binary code represent?
(don’t mind the 36)
Pls help mark brainliest
Answer:
I cant answer this.
Explanation:
You need to take another screenshot so we can see the multiple choice.
What type of memory disappears when you turn your computer off? CPU, RAM, ROM or Storage
Answer:
RAM
Explanation:
Hey,
The answer to this is ram. Ram were your most important info that needs to be read right away is stored when your not using your computer to save power your ram is shut down.
Hope this helps have a great day.
-scav
You have searched a database to locate US cities with population counts above 1 million people. You need to present the results to the class. Which of these describes the process you should use to accomplish these tasks?
options
enter data into a form and present it to the class
present the table you used to search for cities with more than 1 million people
run a query and create a report from the datasheet
run a query and present the datasheet to the class
Answer:
Run a query and create a report from the datasheet.
Explanation: creating a report will give a easy to understand explanation of all the data you have collected.
Answer:
the answer is C
the next one is B
Explanation:
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.
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."