In order to ask for user for input in store the results as a stream, you should use the function. Readline, readlnt, string, algorithm

Answers

Answer 1

Answer: String

-DoggyMan5


Related Questions

How does critical thinking relate to peer
assessment ?

Answers

Answer:

It both helps you understand very well on whatever assessments reading you do. You think and you pay 100% to your work and get done with it. You think through whatever you've been working on.

What type of memory disappears when you turn your computer off? CPU, RAM, ROM or Storage​

Answers

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

Pls help mark brainliest

Answers

Answer:

I cant answer this.

Explanation:

You need to take another screenshot so we can see the multiple choice.

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.

Answers

#!/bin/bash

INPUT_FILE=$1

count=1

while IFS= read -r line; do

echo $count - $line

count=$(($count + 1))

done < $INPUT_FILE

In the binary system, 1 and 0 are not known as digits. Instead, they are called
bits
switches
flow
variables
decimals​

Answers

Answer:

Variables

Explanation:

I hope it helps

Answer:

C variables

Explanation:

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.

Answers

E-mail, short for “electronic mail” is one of most widely used forms of digital communication. It can be used from nearly any device, and unlike paper mail, it is delivered nearly instantly. E-mail is used in all strata of society, and has endless possibilities for personal and professional uses.

It can be used to send messages, links, images and files, essentially everyone on the planet who uses computers will use e-mail. It powers business and connects families together across continents, and the best part of all is that it is essentially free. People use e-mail on personal computers, mobile phones, tablets, even on ‘smart’ televisions!

Every e-mail address has an inbox. This is where new messages are deposited. An e-mail message has a status called “unread” which disappears after the e-mail has been opened. A typical e-mail inbox will also have a ‘Sent’ folder for viewing messages that you have sent in the past. It also will have an ‘Outgoing’ folder, where messages stay until they have been fully transmitted. It is also common to have a ‘Drafts’ folder for messages that were started but never sent, and a ‘Spam’ folder, where unwanted marketing messages will usually be directed. You can of course setup your own folders and sort your e-mails however you like .

Is the quote "Stay inside and have water and food ready in case power goes out" a definition of...

A. Thunderstorm
B. Winter storm

Answers

Answer:

winter storm

Explanation:

possibility of a snow-in.

Answer: winter storm

Devising a plan to solve a problem or perform a task using a set of step by step instructions is called:
Running a program
Writing an algorithm
Creating syntax
Interpreting instructions

Answers

d becaus ig is following INSTRUCTIONS

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

Answers

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:

Pls help I will give points

Answers

Answer:

Desktop

Explanation:

When a laptop internal device fails, what three options can you use to deal with the problem?

Answers

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.

How does the pay for many Science, Technology, Engineering, and Mathematics workers compare to the overall median for all careers? It is far lower than the overall median. It is far higher than the overall median. It is slightly higher than the overall median. It is about the same as the overall median.

Answers

Answer:

B

Explanation:

It just is

Answer:

B is correct

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

Answers

T pose my guy cuz my friend here Justin is next to me

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

Answers

Answer:

continue

Explanation:

........................ allows you to press a key or code for insertion of long phrases that you may require using repeatedly which saves time. *

Answers

Answer:

text expander

Explanation:

Answer:

The answer to this is a text expander!

Hope this helps you! Have a nice day!

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

Answers

Answer:

D

Explanation:

Answer: A, B, C, D

Explanation:

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.

Answers

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.

Which save as element allows a user to save a presentation on a computer?

Answers

Answer:

This PC

Explanation:

Got it right

Answer:

Look at the attached file for the answer, I'm correct as you can see.

Explanation:

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.

Answers

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.

   

Why do we use return statements? Choose all that apply

A.
Javascript requires functions to have return values.

B.
To return multiple data types simultaneously

C.
To allow a function to give different values depending on input.

D.
So that we no longer have to use console.log();

E.
To save the result of a function in a variable in other functions

Answers

Answer:

A.

Javascript requires functions to have return values.

Pls help I will thx and give points

Answers

Answer:

Desktop

Explanation:

A tablet and smartphone dont have enough storage like a desktop, so they would edit very efficiently

A desktop. A desktop has more advanced features than a tablet or smartphone. More programs are available and storage is more widely available as well

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.

Answers

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:

How does Windows operating system manage the file?​

Answers

Answer:

The OS allows you to organize the contents of your computer in a hierarchical structure of directories that includes files, folders, libraries, and drives. Windows Explorer helps you manage your files and folders by showing the location and contents of every drive, folder, and file on your computer.

How does a Red Team vs Blue Team exercise help an organization

Answers

Answer:

Kindly check explanation

Explanation:

The Red team VS Blue team exercise can be explained as a simulated form of exercise or challenge which is intentionally triggered by an organization in a bid to test and access its level of security in other to stay in top of an actual external threat that might be perpetrated. In the simulated exercise, the red team act as the attacker by deploying several forms of threats which are used by actual attackers. The blue team on the other hand act as guard to repel tune attack. All these helps organizations to detect possible weaknesses and loopholes in their system which they can improve on in other to promote system and information security.

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;

Answers

Answer:

d) int numberOfBoxes = (numberOfDonuts + 11) / 12

Explanation:

Hope this helps

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

Answers

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 program

cpp

#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

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?

Answers

Answer: if you have data that is lost then you need to find the things you have deleted and get that data back

Explanation:

Pls help computer science I will give brainliest

Answers

Answer:

A driver assists with hardware management.

Hope this helped.

Answer: Hardware Management

Reason: Depends on the driver type

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~~~

Answers

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*)  

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

Answers

E for eeeedeerreeeee
Other Questions
Pleaseee help me out heree Which of the following is a rational number? square root of 79, square root of 80, square root of 81, square root of 82 A student switches the torch on and sees that it gives out a bright light.After several minutes, the torch begins to fade in brightness.Give a reason for this fading in brightness. Nick is writing an article for his schools website about the increasing interest in school plays. Which of the following elements would help readers visually understand the rise in the number of students who have participated in the school's plays in the last five years? A. formatting: headings to separate parts of the article B. multimedia: video clip of student actors rehearsing C. graphics: graph showing student involvement in the plays D. graphics: table listing the plays from the last five yearsi give brainlest answer rigth fro brainlest Write the slope-intercept equation of the line on this graph. Energy in a chemical reaction can be identified as which of the following?A.) HeatB.) LightC.) HD.) 2,000KjE.) All of the above 3. How did the troopers respond when protesters did not disperse? Wally is rebuilding his fence. Each section of the fence will have 12 vertical boards that are each eight inches wide. Hes going to attach them to two horizontal pieces of wood and add a diagonal piece to brace the fence section. The horizontal pieces will be five feet apart.What is the approximate measure of angle ? When does Grendel attack Herot? 41 pointWhat is the value of p?4545]444434422v2O22 Q.9) Rahul's mother's age is 5 less than 4 times his age. What is his age ifhis mother is 39 years old? *pls ans I will follow you What is the answer!??? Which line from Act 2 of The Monsters Are Due on Maple Street helps to distinguish this teleplay as a work of science fiction rather than a work of fantasy fiction? What kinds of cells are there? Explain. What chemical burns red? Which is a cause of desertification?farmingcreating reservoirsovergrazingdriving motor vehicles I need help QUICKLY!!!!!!!! pls help me out ! ill mark you brainliest Please help me Ill give you a thanks :-) Martha earns $15 per hour for babysitting. The parents always giver her a $5 tip. What is the slope of this situation? Enter the correct answer in the box. ? Dollars per hour