Answer:
10 i think
Explanation:
what do you type in the terminal then? for c++ 4-4 on cengage
In this exercise we have to use the knowledge of computational language in C++ to write a code that write my own console terminal in C++, which must work .
Writting the code:int main(void) {
string x;
while (true) {
getline(cin, x);
detect_command(x);
}
return 0;
}
void my_plus(int a, int b) {
cout << a + b;
}
void my_minus(int a, int b) {
cout << a - b;
}
void my_combine(string a, string b) {
?????????????;
}
void my_run(?????????) {
???????????;
}
void detect_command(string a) {
const int arr_length = 10;
string commands[arr_length] = { "plus", "minus", "help", "exit" };
for (int i = 0; i < arr_length; i++) {
if (a.compare(0, commands[i].length(), commands[i]) == 0) {
?????????????????????;
}
}
}
See more about C++ at brainly.com/question/19705654
#SPJ1
Define hdd.
is it an imput, storage, processing, or output device?
Answer:
storage
Explanation:
An HDD is a data storage device that lives inside the computer.
In the Guess My Number program, the user continues guessing numbers until the secret number is matched. The program needs to be modified to include an extra criterion that requires all guesses to be within the lower and upper bounds. If the user guesses below or above the range of the secret number, the while terminates. How would the while statement be modified to include the new criterion?
while(userGuess != secretNumber || userGuess >= lowerLimit || userGuess <= upperLimit)
while(userGuess != secretNumber || userGuess >= lowerLimit && userGuess <= upperLimit)
while(userGuess != secretNumber && userGuess >= lowerLimit && userGuess <= upperLimit)
while(userGuess == secretNumber || userGuess >= lowerLimit && userGuess <= upperLimit)
while(userGuess == secretNumber && userGuess >= lowerLimit || userGuess <= upperLimit)
The while statement can be modified to include the new criterion as D. while(userGuess == secretNumber && userGuess >= lowerLimit || userGuess <= upperLimit)
What is a while loop?A while loop is a control flow statement in most computer programming languages that allows code to be performed repeatedly based on a supplied Boolean condition. The while loop is similar to a looping if statement.
The first portion of this answer!(userGuess == secretNumber) confirms that userGuess is not equal to secretNumber. Yes, the equal sign (double as it should be when comparing things) is between the userGuess and the secretNumber, but all of this is enclosed in a parenthesis... which is negated by the! before it.
In conclusion, the correct option is E.
Learn more about programs on:
https://brainly.com/question/12510486
#SPJ1
If you use a pen down block to instruct a sprite to go to random position and then move 100, what happens? A. The sprite teleports randomly and creates a single line 100 units long. B. The sprite creates a 100-unit line between its starting point and a random location. C. The sprite draws a line to a random position, then creates another line 100 units long. D. The program does not run because these commands can’t be combined.
Answer:
C
Explanation:
The sprite draws a line to a random position, then creates another line 100 units long
a(n) _____ is not as flexible as a series of interviews, but it is less expensive, generally takes less time, and can involve a broad cross-section of people.
A survey is not as flexible as a series of interviews, but it is less expensive, generally takes less time, and can involve a broad cross-section of people.
What is meant by cross section area?The area of a two-dimensional shape created when a three-dimensional object, like a cylinder, is cut perpendicular to a predetermined axis at a point is known as the cross-sectional area. For instance, a cylinder's cross-section is a circle when it is cut parallel to the base.Cross section is defined in the Britannica Dictionary. 1.: a perspective or illustration that depicts how something appears on the inside after a cut has been made across it. A thorough cross-section of the human brain is [counted]. Conic sections are some of the most well-known cross sections. Conic sections are made by cutting a right cone in several ways. Conic sections come in four different shapes: circles, ellipses, parabolas, and hyperbolas.
To learn more about 'cross-section' refer to
https://brainly.com/question/3603397
#SPJ1
A survey is not as flexible as a series of interviews, but it is less expensive, generally takes less time, and can involve a broad cross-section of people.
What is meant by cross section area?The area of a two-dimensional shape created when a three-dimensional object, like a cylinder, is cut perpendicular to a predetermined axis at a point is known as the cross-sectional area. For instance, a cylinder's cross-section is a circle when it is cut parallel to the base.Cross section is defined in the Britannica Dictionary. 1.: a perspective or illustration that depicts how something appears on the inside after a cut has been made across it. A thorough cross-section of the human brain is [counted]. Conic sections are some of the most well-known cross sections. Conic sections are made by cutting a right cone in several ways. Conic sections come in four different shapes: circles, ellipses, parabolas, and hyperbolas.To learn more about 'cross-section' refer to
brainly.com/question/3603397
#SPJ1
Does anybody know basic code concepts for beginners or like beginner code languages?
Answer:
Python
Explanation:
Out of all other programming languages, it's the easiest one to learn.
What part of a computer stores all the digital content on a computer?
Motherboard
Hard disk drive
SD card
CPU
Answer:
Its (B) Hard disk drive
Explanation:
Its B since in a computer the hard disk drive stores digital content like video's, word documents, photos, programs, etc.
An example of a function is ___________.
Python
In Python, an example of a function is the Built-in function.
What is the function in Python?In Python, the function may be characterized as a cluster of related statements that operates a specific task within the programming. They help in breaking your program into smaller and modular fragments which we called as chunks.
According to the context of this question, the examples of other functions in Python may include the Python Recursion function, Lambda function, and User-defined function (UDF). Each of the function plays a specific role and make programming user efficient.
Therefore, an example of a function is the Built-in function.
To learn more about the Functions of Python, refer to the link:
https://brainly.com/question/25755578
#SPJ1
Given the string, s, and the list, lst, associate the variable contains with True if every string in lst appears in s (and False otherwise). Thus, given the string Hello world and the list ["H", "wor", "o w"], contains would be associated with True.
In this exercise we have to use the knowledge of computational language in python to write a code that the string, s, and the list, lst, associate the variable contains with True if every string in lst appears in s (and False otherwise)
Writting the code:lst = ["H", "wor", "o w"]
s = "Hello world"
contains = True
for e in lst:
if not e in s:
contains = False
break
print(contains)
We used the print() function to output a line of text. The phrase “Hello, World!” is a string, and a string is a sequence of characters. Even a single character is considered a string.
See more about python at brainly.com/question/18502436
#SPJ1
How to address a resume with wacky fonts
Answer:
Open Minded
Explanation:
So think about the person who wrote this resume maybe they were nervous and looking for a way to lighten the mood so they chose something wacky or funny to realief stress or any anxiety so just be open minded and dont judge people based on just the fonts they use
Hope This Helps <3 <3
How many types of pick list available in TM1?
There are three types of pick lists available in TM1. They are as follows:
Static.Subset.Dimension.What do you mean by Picklist in TM1?Picklist in TM1 may be defined as a list of reasonable values for a specific element or cube cell. It represents the values that are significantly available in the specified cell when ruminating a cube in any of the TM1 clients.
The static type of picklist remains constant for a long period of time without any alterations while the subset type of picklist demonstrates the values of the subset prior to the actual values.
A Dimensional type of picklist considerably deals with the dimensions of values that are represented in the given data.
Therefore, there are three types of pick lists available in TM1.
To learn more about Picklist, refer to the link:
https://brainly.com/question/14294105
#SPJ1
Coulomb's law can be used to calculate the _____________.
Answer:
the electrostatic force between two charged objects
Assuming that the computer retains only 4 digits in the mandisa find the absolute error and relative error in the product numbers 432.8 and 0.12584
The the absolute error and relative error in the product numbers 432.8 and 0.12584 will be 0.02376 and [tex]4.364*10^-^4[/tex] respectively.
What is error?
The variation among the actual and calculated values of any physical quantity is defined as error.
In physics, there are three types of errors: random errors, blunders, and systematic errors.
Here, it is given that:
[tex]x_1[/tex] = 432.8
[tex]x_2[/tex] = 0.12584
To calculate:
Absolute error and relative error in the product
Step 1:
The given numbers are 432.8 and 0.12584, though we have to use four-digit mantissa, we round off the second number to 0.1258
Step 2:
The product of these two numbers is given as
x = [tex]x_1*x_2[/tex]
x = 432.8 × 0.1258
x = 54.44624
By rounding off the product to four-digit mantissa, x = 54.47
Step 3:
The absolute error is given as follows:
Absolute error = Approximate value - True value
Absolute error = 54.47 - 54.44624
Absolute error = 0.02376
Step 4:
The relative error is given as follows:
Relative error = Absolute error/True value
Relative error = 0.02376/54.44624
Relative error = [tex]4.364*10^-^4[/tex]
Thus, the absolute error is 0.02376 and the relative error is [tex]4.364*10^-^4[/tex].
For more details regarding error, visit:
https://brainly.com/question/13286220
#SPJ1
: You are going to collect income data from a right-skewed distribution of incomes of politicians. If you take a large enough sample from that distribution, the sample mean and the sample median will always have the same value.
Since you are going to collect income data from a right-skewed distribution of incomes of politicians. If you take a large enough sample from that distribution, the sample mean and the sample median will always have the same value is a false statement.
How are income distributions skewed?A lower limit in a data set is typically the cause of data that is skewed to the right (whereas data skewed to the left is an outcome or the result of a higher boundary).
Note that, the data will skew right if the lower bounds of the data set are extremely low in comparison to the remainder of the data.
Therefore, When a distribution exhibits an asymmetrically long upper tail and consequently high top wealth shares, it is said to be skewed (to the right).
Learn more about right-skewed distribution from
https://brainly.com/question/9329803
#SPJ1
See full question below
You are going to collect income data from a right-skewed distribution of incomes of politicians. If you take a large enough sample from that distribution, the sample mean and the sample median will always have the same value. True of false
how to clear the contents of cell b8 in an excel document
If you click a cell and then press DELETE or BACKSPACE, you clear the cell contents without removing any cell formats or cell comments.
Explanation:If you want to clear all content and formatting from cells, you can use the Clear All shortcut. To do this, select the cells you want to clear, then press the Ctrl + Shift + A keys on your keyboard. This shortcut will instantly clear all content and formatting from the selected cells.
Write a function that uses recursion to raise a number to a power. The function should accept two arguments: the number to be raised and the exponent. Assume that the exponent is a nonnegative integer. Demonstrate the function in a program.
IN C PROGRAM
Answer:
/*
Program to computea number raised to a power using recursion
base = number and exp is the power to which the number is raised
*/
#include <stdio.h>
int power(int base, int exp);
int main(){
int base, exp;
printf("Enter base: ");
scanf("%d", &base);
printf("Enter exponent: ");
scanf("%d", &exp);
long result = power(base,exp); //function call
printf("%d raised to the power %d = %ld\n", base, exp, result);
return 0;
}
int power(int base, int exp){
//2 base cases
// if exp = 0, return 1
if (exp == 0){
return 1;
}
//if exp 1, return base
if ( exp == 1){
return base;
} //base case when expnent is 0
//otherwise return base * base to the power exp-1
return base * power(base, exp-1 );
}
Explanation:
Which should you do to avoid having difficulty getting scholarships or being
admitted to college?
A. Protect yourself from cyberbullying
B. Be honest and open in the material you post online
C. Avoid making comments on your friends' photos
D. Watch the nature of what you post on social media
To avoid having difficulty getting scholarships or being admitted to college, you should watch the nature of what you post on social media.
What do you mean by scholarship?
A scholarship is a type of financial aid given to students to help them further their education. Scholarships are typically awarded based on criteria such as academic merit, diversity and inclusion, athletic ability, and financial need. Scholarship criteria typically reflect the values and goals of the award's donor, and while scholarship recipients are not required to repay their awards, they may be required to meet certain requirements during their period of support, such as maintaining a minimum grade point average or participating in a specific activity.
Finding appropriate scholarships to apply to, according to the majority of my students, is one of the most difficult aspects of applying for scholarships. With so many scholarships and scams available, it's easy to become overwhelmed.
So, D is the correct answer.
To learn more about scholarship
https://brainly.com/question/25298192
#SPJ9
Businesses are required to follow laws and regulations, but they
follow
ethical standards in a code of ethics.
Businesses are required to follow laws and regulations but they choose to follow ethical standards in the code of ethics. An organization or enterprising entity that can be engaged in commercial, industry, or professional activities is said to be a Business. Businesses are required to follow laws and regulations but they choose to follow the ethical standards in the code of ethics. Business is an economic activity, that can be developed for profit and is concerned with good production, distribution and exchange of goods and services to satisfy the unlimited wants of human beings. The business has the ethics and contribution in accordance to:
The commitment of the employee.The loyalty of the investor and also the customer's confidence.Performance, Revenues, reputations, satisfaction, etc.Codehs 4.1.8 Using the Point Class
Using the knowledge of the computational language in JAVA it is possible to write that Using the Point Class to described the correct code.
Writting the code:{
public static void main(String[] args)
{
extractDigits(2938724);
}
public static void extractDigits(int num)
{
int digit;
while( num > 0 )
{
digit = num % 10;
num = num / 10;
System.out.println(digit);
}
}
}
See more about JAVA at brainly.com/question/12975450
#SPJ1
Answer:
Explanation:
public class Point
{
private int x;
private int y;
public Point(int xCoord, int yCoord)
{
x = xCoord;
y = yCoord;
}
public void move(int dx, int dy)
{
x += dx;
y += dy;
}
public String toString()
{
return x + ", " + y;
}
}
Witch of the following are true of email communications when compared to
Phone or face to face communications
The statements which are true of e-mail communications when compared to phone or face-to-face communications is that communications via e-mail are:
more difficult to determine tone or inflection.easily shared.absent of visual cues.What is communication?Communication can be defined as a strategic process which involves the transfer of information (messages) from one person (sender) to another (recipient or receiver), especially through the use of semiotics, symbols, signs and network channel.
What is an e-mail?An e-mail is an abbreviation for electronic mail and it can be defined as a software application (program) that is designed and developed to enable users exchange (send and receive) both texts and multimedia messages (electronic messages) over the Internet.
In this context, we can reasonably infer and logically deduce that in an electronic mail (e-mail) it would be more difficult to determine a person's tone or inflection in comparison with phone or face-to-face communications.
Read more on e-mail here: brainly.com/question/15291965
#SPJ1
Complete Question:
Which of the following are true of e-mail communications when compared to phone or face-to-face communications?
Communications via e-mail are _____.
absent of visual cues
more precise and accurate
limited in efficiency
less likely to be saved
easily shared
more difficult to determine tone or inflection
Fastttttttttttt answerrrrrrr
Create a profit-and-loss statement. A profit-and-loss statement shows income or revenue. It also lists expenses during a period of time. The main purpose of this document is to find the net income. If the net income is a positive number, the company shows a gain. If the net income is a negative number the company is showing a loss. To find the net income simply add revenues and subtract expenses. Create a profit-and-loss statement with the following information. Calculate totals and net income. Make appropriate formatting changes. Save and print.
Profit-and-Loss Statement for Flowers Galore
September 1, 2008
Revenues
Gross income from sales 67,433
Expenses
Mortgage
Materials
Advertising
Insurance
Utilities
Employees
Bookkeeping
Total expenses 8,790
2,456
6,300
750
491
22,000
3,350
Net Income
The total expenses is 44137 and net income is 23296.
What do you mean by net income?
Net income (as well total comprehensive income, net earnings, net profit, bottom line, sales profit, as well as credit sales) in business and accounting is an entity's income less cost of goods sold, expenses, depreciation and amortisation, interest, and taxes for an accounting period. It is calculated as the sum of all revenues and gains for the period less all expenses and losses, and it has also been defined as the net increase in shareholders' equity resulting from a company's operations. It differs from gross income in that it deducts only the cost of goods sold from revenue.
To learn more about net income
https://brainly.com/question/28390284
#SPJ13
Write a program using the while loop and eof() function to read the input file inData.txt (inData.txtDownload inData.txt). The file contains the following data:
Code so far is this, but I'm not getting my output.
#include
#include
#include
#include
#include
#include
using namespace std;
int main()
{
// vector of vector to store individual words per line
vector > content;
// vector to store rows
vector row;
string line, word;
// open file
ifstream inFile("inData.txt", ios::in);
if (inFile.is_open())
{
// Read file line by line
while (getline(inFile, line))
{
// Empty row vector
row.clear();
// Create a stringstream object
stringstream str(line);
// split line by whitespace and store words in row
while (getline(str, word, ' '))
row.push_back(word);
// store row in main vector
content.push_back(row);
}
}
else
cout << "Could not open the file\n";
// open/creatre outData.txt file
ofstream outFile("outData.txt");
// iterate over every 3 rows
for(int i=0; i // Calculate the paycheck
int monthlySalary = stoi(content[i+2][0]);
int bonus = stoi(content[i+2][1]);
int tax = stoi(content[i+2][2]);
double salaryAfterBonus = (monthlySalary + (monthlySalary*bonus)/100);
double payCheck = salaryAfterBonus - (salaryAfterBonus*tax)/100;
// Write to file
outFile < << "Last Name: "< << "Department: "< << "Title: "< << "Monthly Salary: $"< << "Bonus: "< << "Tax: "< << "Paycheck: $"< }
// close the files
inFile.close();
outFile.close();
return 0;
}
Don Smith Accounting
Auditor
4500 5 30
Joe Cross Finance
Analyst
5500 6 30
James McIntyre IT
Programmer
5500 7 30
Here the first line contains the First Name, Last Name, and Department. The second line contains Position Title. The Third line contains monthly salary, bonus percentage, and tax percentage. Similar data is subsequently repeated for multiple employees.
After reading the data, the program should create an output as shown below:
First Name: Don
Last Name: Smith
Department: Accounting
Title: Auditor
Monthly Salary: $4500.00
Bonus: 5%
Tax: 30%
Paycheck: $3307.50
First Name: Joe
Last Name: Cross
Department: Finance
---
---
---
Write the output in outData.txt file.
Using the knowledge of computational language in JAVA it is possible to describe Write a program using the while loop and eof() function to read the input file inData.txt (inData.txtDownload inData.txt).
Writting the code:#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <sstream>
#include<iomanip>
using namespace std;
int main() {
// vector of vector to store individual words per line
vector < vector < string >> content;
// vector to store rows
vector < string > row;
string line, word;
// open file
ifstream inFile("inData.txt", ios:: in );
if (inFile.is_open()) {
// Read file line by line
while (getline(inFile, line)) {
// Empty row vector
row.clear();
// Create a stringstream object
stringstream str(line);
// split line by whitespace and store words in row
while (getline(str, word, ' '))
row.push_back(word);
// store row in main vector
content.push_back(row);
}
} else
cout << "Could not open the file\n";
// open/creatre outData.txt file
ofstream outFile;
outFile.open("outData.txt");
if (!outFile) {
cerr << "File not opened" << endl;
exit(1);
}
// iterate over every 3 rows
for (int i = 0; i < content.size(); i += 3) {
// Calculate the paycheck
int monthlySalary = stoi(content[i + 2][0]);
int bonus = stoi(content[i + 2][1]);
int tax = stoi(content[i + 2][2]);
double salaryAfterBonus = (monthlySalary + (monthlySalary * bonus) / 100);
double payCheck = salaryAfterBonus - (salaryAfterBonus * tax) / 100;
// Write to file
outFile << setprecision(2) << fixed << "First Name: " << content[i][0] << endl <<
"Last Name: " << content[i][1] << endl <<
"Department: " << content[i][2] << endl <<
"Title: " << content[i + 1][0] << endl <<
"Monthly Salary: $" << monthlySalary << ".00" << endl <<
"Bonus: " << bonus << "%" << endl <<
"Tax: " << tax << "%" << endl <<
"Paycheck: $" << payCheck << endl;
}
// close the files
inFile.close();
outFile.close();
return 0;
}
See more about C++ at brainly.com/question/19705654
#SPJ1
How to end with a newline
Answer:
\n is the character sequence for newline
So terminate whatever you have with \n and a new line will be printed out with whatever you are printing out
Explanation:
what do we generally avoid in a many-to-many junction table?
a. two foreign keys
b. an auto increment primary key column
c. data items specific to the many-to-many relationship
d. a logical key
Not An AUTOINCREMENT primary key column, Data items specific to the many-to-many relationship. When numerous records in one table are linked to several records in another table, this is known as a many-to-many relationship.
What is many to many junction?
When numerous records in one table are linked to several records in another table, this is known as a many-to-many relationship.
The simplest method is to utilize a Junction Table when you need to create a many-to-many link between two or more tables. By referring to the main keys of each data table, a junction table in a database, also known as a bridge table or associative table, connects the databases.
A many-to-many relationship, or type of cardinality, is used in systems analysis to describe the relationship between two entities, such as A and B, where A may have a parent instance for whom there are many offspring in B and vice versa.
To learn more about Many to many junction refer to:
https://brainly.com/question/24092195
#SPJ13
What is the full meaning of FORTRAN
Answer:
FORTRAN in full is "Formula Translation"
Explanation:
Its a computer programming language created in 1957 by John Backus that shortened the process of programming and made computer programming more accessible
what does syntax error mean :-;
explain briefly.
thankyou!
1.16.4: Super Cleanup Karel
does not pass 4th world, please advise, urgent answer needed, 50 pts.
attached image is final result on world 4.
variables are NOT allowed.
public class SuperCleanupKarel extends SuperKarel
{
public void run()
{
ballsTaken();
while(leftIsClear())
{
endUpFacingEast();
ballsTaken();
if(rightIsClear()){
endUpFacingWest();
ballsTaken();
} else {
turnAround();//commentasdfasfdf
}
}
if(rightIsClear())
{
endUpFacingWest();
ballsTaken();
} else {
turnAround();
}
turnLeft();
if(rightIsBlocked())
{
if(frontIsBlocked())
{
turnLeft();
}
}else
{
turnRight();
}
while(frontIsClear())
{
move();
}
turnLeft();
if(frontIsBlocked())
{
turnRight();
if(leftIsBlocked())
{
if(frontIsBlocked())
{
turnLeft();
}
}
turnLeft();
}
}
private void ballsTaken() {
if(ballsPresent()) {
takeBall();
}
while(frontIsClear())
{
move();
if(ballsPresent())
{
takeBall();
}
}
}
private void endUpFacingEast()
{
turnLeft();
move();
turnLeft();
}
private void endUpFacingWest()
{
turnRight();
move();
turnRight();
}
}
Answer:
WHAT????????
Explanation:
Features of online advertising
Answer:
Well impacts of online advertising
Explanation:
•More people are likely to see the advertisement.
•If the quality of advertisement is good, people will trust it more.
One of Accenture’s clients is considering a major Cloud transformation project but is concerned about the time and costs associated with such an initiative.
What should Accenture’s security team focus on to address this particular client's concern?
Accenture has created accelerators that can quickly and cost-effectively deploy particular security policies to cloud settings. Thus, option A is correct.
What is a Cloud transformation?Cloud transformation can be defined as the way through which the data is being transferred into a cloud system in which they can access the data as they want and is always present at that time.
Perhaps one of Accenture's customers are thinking contemplating undertaking a sizable cloud transformation project and yet is worried about just the cost and effort involved.
Accenture has created acceleration that really can quickly and cost-effectively apply particular security measures to cloud settings.
Therefore, option A is the correct option.
Learn more about Cloud transformation, here:
https://brainly.com/question/25737623
#SPJ1
The question is incomplete, the complete question is:
A. Accenture has developed accelerators that can deploy specific security controls to cloud environments in just a few hours, thereby reducing costs.
B. Accenture is the only company that has the experience needed to implement major cloud transformations.
C. Accenture will delay the migration if there are vulnerabilities present in the client's current systems.
D. Accenture's information security team uses waterfall methodology to ensure the migration is fully documented.
You can often exchange information between the internet and mobile devices, which one is not a proper mobile device
Answer: A desktop computer
Explanation: Simple. A desktop must be connected to a modem to work therefore, it can not be taken with you.