Answer:
Arguments
Explanation:
When input is passed to a function, the input is referred to as an argument.
And the syntax is:
Function_Name(argument_1, argument_2...,argument_n)
I'll answer this question using the following instance:
The following instruction written in cell C3:
=SUM(C1,C2)
The above instruction in Excel adds up the content of cell C1 and C2, and the result is saved in C4.
If C1 = 2, C2 = 3
C3 will be:
[tex]C3 = 2 + 3[/tex]
[tex]C3 = 5[/tex]
Using:
Function_Name(argument_1, argument_2...,argument_n)
The arguments of =SUM(C1,C2) are C1 and C2.
Hence, the term that answers this question is: argument
unemployment is one of the disadvantage of computer explain this statement with example
In industry, computer technology is used by developing robots to assemble products in a short amount of time. This has led to unemployment as manual labour is kept to a minimum due to the robots being able to assemble products at a much faster speed than humans.
how can you best explain server side caching with web pages
Answer:
Server side web caching typically involves utilizing a web proxy which retains web responses from the web servers it sits in front of, effectively reducing their load and latency.
Explanation:
Write a program that reads a file called 'test.txt' and prints out the contents on the screen after removing all spaces and newlines. Punctuations will be preserved. For example, if 'test.txt' contains: This is a test file, for chapter 06. This a new line in the file! Then, your program's output will show: Thisisatestfile,forchapter06.Thisanewlineinthefile! Hint: Consider using the 'strip()' and 'replace()' functions.
Answer:
I don't know you should figure that out good luck
Explanation:
good luck
Tech A states that modern vehicles use asbestos as the brake material. Tech B states that asbestos is no longer used in brakes. Who is correct?
Answer:
Tech A is correct.
Explanation:
The modern day vehicles have brakes system equipped with asbestos. It is a mineral which is a kind of fibrous crystal which enables the friction to stop the vehicle. The technician A specifies that the modern day automobiles use asbestos for their brake system.
Answer:
correct answer is Tech B.
Explanation:
just took the test
Create a relational database table in Microsoft Excel for the grocery store of 20 employers.
Answer:
That is not a question.
Explanation:
How do you change the slide layout?
Answer:
1) In Normal view, on the Home tab, click Layout.
2) Pick a layout that best suits the content of your slide.
3) On the View tab, click Slide Master.
4) The slide layouts appear as thumbnails in the left pane below the slide master.
5) Do one or both of the following:
- Click the layout you want and customize it. You can add, remove, or resize placeholders, and you can use the Home tab to make changes to fonts, colors, and other design elements.
- Click Insert Layout to add a new slide and format it.
6) Click Close Master to stop editing layouts.
-Your revised slide layout will be available to insert as a new slide anywhere in your presentation.
7) Click Design and point to any theme.
8) Click the down arrow under that appears under the themes panel.
9) Click Save Current Theme, give the theme a name, and click Save. Your new theme will contain your newly revised slide layout and will be available in Themes gallery.
Write a program using integers userNum and divNum as input, and output userNum divided by divNum three times.
Answer:
Follows are the code to this question:
#include <iostream>//header file
using namespace std;
int main() //defining main method
{
int userNum, divNum;//defining integer variable
cin>> userNum >> divNum;//input values
cout <<"First-time divide: "<<userNum / divNum<<endl;//divide value First time
cout <<"Second-time divide: " << userNum / divNum/divNum<<endl; //divide value Second time
cout<<"Third-time divide: "<< userNum /divNum/divNum/divNum<<endl;//divide value Third time
return 0;
}
Output:
2000
2
First-time divide: 1000
Second-time divide: 500
Third-time divide: 250
Explanation:
In this code two integer variable "userNum and divNum" is declared that uses the input method to input value from the user-end, and after input the value it divides the "userNum by divNum" three times, that is defined as follows:
In this code, the user input the value 2000 and 2, in the first divides it will give 1000, in the second time divide it will give 500, and in the third time it will give 250.
Visual Basic Help:
Code a program that reads a test score (number) from a text-box, each time a button is clicked. In other words, every time a new score is entered in the text-box, the score should be taken by the program, stored and the text-box should be cleared, so that the user can enter a new score. The program should be able to check that the user is entering a number. If the user enters something different than a number (or leaves the text-box empty), the program should not continue and it should display a warning message to the user. After entering as many scores as wanted, the user should be able to click on a second button to display the two highest scores, among all the ones entered until that point. The program should also display the total number of scores entered by the user. Also, once the user clicks on the button to display the results and the results are displayed, the program should get ready to get a new set of scores and start again. If the user starts writing a new score, the text-boxes with the results should be cleared.
Example: Assume the user enters the following scores: 10, 5, 20. The scores are entered once at the time in the top text-box; when a score is entered, the user presses the button to "Read" the score. The score is taken by the program and the text-box is cleared, so that the next score can be entered. This process can be repeated as many times as the user wants and for as many scores as the user wants. Once all the scores are entered and read(or taken-in)by the program, the user clicks on the second button to display the results. The program should then display the two highest scores, among the ones entered. So, in the example, this would be 10, 20. And it should display the total number of scores entered by the user. In the example, it would be 3.
After that, the user should be able to repeat the process and enter a new set of scores, if wanted. The program should therefore be ready to take in new inputs and start the process again. When the user starts typing the new score, the text-boxes with the previous results (two highest scores and total num. of scores) should get cleared
Answer:
See text attachment for complete source code (for the answer) where I used comments to explain each line of the program
Explanation:
First, design the form using the following tools (and the accompanying properties) :
1 Label: Property: Text: Score
2 Buttons
Button1: Property: Name: btnAdd; Text: Add
Button2: Property: Name: btnDisplay; Text: Display
1 ListBox: Property: Visible: Hidden
1 TextBox: Property: Name: txtNum1
First, create the following function.
The function (named typecheck) validates input from the user (i.e. integer input only)
Function typecheck(ByVal input As String) As Boolean
Try
Convert.ToInt32(input)
[tex]Return\ True[/tex]
[tex]Catch\ ex\ As\ Exception[/tex]
[tex]Return\ False[/tex]
End Try
End Function
It returns true if the input is integer and false, if otherwise.
Next, double-click on the "Add" button and write the following lines of code:
Dim num1 As String
num1 = txtNum1.Text
If num1 IsNot String.Empty Then
If typecheck(num1) Then
[tex]ListBox1.Items.Add(num1)[/tex]
[tex]txtNum1.Text = String.Empty[/tex]
Else
[tex]MsgBox("Only[/tex] [tex]Integer[/tex] [tex]Inpu t")[/tex]
[tex]txtNum1.Text = String.Empty[/tex]
[tex]End\ If[/tex]
Else
[tex]MsgBox("Box[/tex] [tex]can\ not\ be\ empty")[/tex]
[tex]txtNum1.Text = String.Empty[/tex]
[tex]End\ If[/tex]
Next, double-click on the "Display" button and write the following lines of code:
If ListBox1.Items.Count > 0 Then
[tex]Dim\ max1, max2\ As\ Integer[/tex]
max1 = Convert.ToInt32(ListBox1.Items(0))
max2 = Convert.ToInt32(ListBox1.Items(0))
[tex]For\ count\ = 0\ To\ ListBox1.Items.Count - 1[/tex]
If Convert.ToInt32(ListBox1.Items([tex]count[/tex])) >= max1 Then
max1 = Convert.ToInt32(ListBox1.Items([tex]count[/tex]))
[tex]End\ If[/tex]
Next
[tex]For\ count\ = 0\ To\ ListBox1.Items.Count - 1[/tex]
If Convert.ToInt32(ListBox1.Items([tex]count[/tex])) >= max2 And Convert.ToInt32(ListBox1.Items([tex]count[/tex])) < max1 Then
max2 = Convert.ToInt32(ListBox1.Items([tex]count[/tex]))
[tex]End\ If[/tex]
Next
MsgBox("Highest Scores: " + max1.ToString() + " " + max2.ToString())
MsgBox("[tex]Total[/tex]: " + ListBox1.Items.Count.ToString())
[tex]End\ If[/tex]
ListBox1.Items.Clear()
Help a brother out
Write a java program with these specifications.
playRps – This method plays 24 rounds of rps and returns the total points earned. For each of the 24 rounds, player1’s hand
gesture will be based on calling the nextInt method of the given Random object. If the next integer is even, player1 will play
rock. If it is odd, player1 will play paper. Player1 never plays scissors. Player2 will play rock in the first round, paper in the
second round, scissors in the third round, and repeat the cycle starting with rock again in the fourth round. The method will sum
the return values for the 24 calls to rps and return the total. Note, since an invalid input is never passed in to an rps call using
playRps, your return value should always be a non-negative number.
Answer:
import java.util.*;
class Main {
private enum RPS { Rock, Paper, Scissors };
private static RPS[] options = { RPS.Rock, RPS.Paper, RPS.Scissors };
private static String[] names = {"Rock", "Paper", "Scissors"};
// Return 1 if player 1 beats player 2, 0 otherwise
static public int rps( RPS p1, RPS p2 ) {
if (p1 == RPS.Rock && p2 == RPS.Scissors) return 1;
if (p1 == RPS.Scissors && p2 == RPS.Paper) return 1;
if (p1 == RPS.Paper && p2 == RPS.Rock) return 1;
return 0;
}
static public int playRps() {
Random rnd = new Random();
int totalPoints = 0;
for(int round = 0; round < 24; round++) {
int randomNumber = rnd.nextInt(2);
RPS player1 = options[randomNumber];
RPS player2 = options[round%3];
String name1 = names[randomNumber];
String name2 = names[round%3];
int score = rps(player1, player2);
if (player1 == player2) {
System.out.printf("%d. Both players %s. Draw.\n", round+1, name1);
} else if (score == 0) {
System.out.printf("%d. %s does not beat %s, player 1 loses.\n", round+1, name1, name2);
} else {
System.out.printf("%d. %s beats %s, player 1 wins.\n", round+1, name1, name2);
}
totalPoints += score;
}
return totalPoints;
}
public static void main(String[] args) {
System.out.println("Playing RPS.");
int total = playRps();
System.out.printf("Player 1 earned %d points.\n", total);
}
}
an algorithm to display multiplication table a number up to 12
Explanation:
Explanation:They are
Explanation:They are 1) start the process
Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed
Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed 3) For T = 1 to 10
Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed 3) For T = 1 to 104) print M = N*T
Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed 3) For T = 1 to 104) print M = N*T5) End for
Explanation:They are 1) start the process 2) Input N, the number for which multiplication table is to be printed 3) For T = 1 to 104) print M = N*T5) End for6) Stop the process
How many digits are in the binary number system? Explain why.
Answer:
Since there are only two digits in binary, there are only two possible outcomes of each partial multiplication: If the digit in B is 0, the partial product is also 0. If the digit in B is 1, the partial product is equal to A.
Explanation:
Answer:
two digits
Explanation:
Binary – The binary numbering system has a base of 2 (MOD-2) and uses only two digits a “0” and a “1” to represent a binary number value.
A person is trying to remember a list of 12 different items:
snow, strawberry, football, banana, soccer, rain, apple, tennis, sleet, hail, orange, rugby
In order to better remember them, he compresses the original list into something shorter that is easier to remember. What would be a compression that would best help him remember the 12 items?
Answer:
for me personally, it would help if the items were rearranged with like items, for example: snow, sleet, rain, and hail would go together.
so the list should look something like this:
weather conditions
snowsleethailrainfruits
strawberrybananaappleorangesports
footballsoccertennisrugbyhope i helped <3 have a nice day
Answer:
weather(rssh) fruit(sabo) sport(fstr)
Explanation:
What two devices in a computer are black boxes
Answer:
the hdmi and hardrive
Explanation:
1) Who invented C Language.?
A) Charles Babbage
B) Grahambel
C) Dennis Ritchie
D) Steve Jobs
Answer:
Dennis Ritchie is the answer
Which of the following commands are part of the Cells group on the HOME tab?
common commands such as bold, underline, copy, and paste. Also for cells format worksheet something like that...
The one that is a part of the Cells group on the home tab is insert. The correct option is 1.
What is a home tab?In Microsoft Word, the Home tab is the default tab. The relevant commands are divided into five groups: Clipboard, Font, Paragraph, Styles, and Editing.
It enables you to edit document settings such as font size, bullet placement, style selection, and many other standard features.
The most utilised document controls can be found under the Home Tab; using these controls, you can alter the text's font and size, paragraph and line spacing, copy and paste, and organisational structure. The Home Tab is divided into four separate sections.
Insert is the one that is a member of the Cells group on the home tab.
Thus, the correct option is 1.
For more details regarding home tab, visit:
https://brainly.com/question/9646053
#SPJ2
Your question seems incomplete, the missing options are:
i. Insert
ii. Delete
iii Format
iv. All of these
What are some study habits that you practice? Check all that apply.
studying with friends
studying on a regular schedule
taking breaks while studying
getting good sleep
studying in a quiet area
Answer:
studying in quiet place
Taking breaks
Reading from notes
good sleep
eating healthy foods
group study
studying on regular schedule
revision
Some study habits that you should practice are studying with friends, studying on a regular schedule, taking breaks while studying, getting good sleep, and studying in a quiet area. All options are correct.
What are good studying habits?
Effective study techniques can be used by someone who wants to get good scores. Summarizing, limiting distractions, taking breaks, and memorization are some good study techniques.
Several good study practices include: When studying, summarize your notes, avoid studying when you're sleepy, memorize your notes, limit distractions, and take breaks.
Study habit is an action such as reading, taking notes, holding study groups which the students perform regularly and habitually in order to accomplish the task of learning.
Therefore, the correct options are a, b, c, d, and e.
To learn more about studying habits, refer to the link:
https://brainly.com/question/14735769
#SPJ5
Given the mass of an airplane, the amount of forward force produced by its propellers, and the mass of the TWO gliders it is towing (airplane connected to first glider and the first glider is connected to the second glider), calculate the resulting tension on each cable connecting the aircraft and the acceleration of the glider. Vertical forces and air resistance are not considered. . Your program must accept input and produce output that matches exactly to the given executions. Note that the width modifier used for the tension values is calculated as the number of digits in the force input plus six. Example Execution #1 (eleven spaces after colon character for tension output): Enter mass of airplane (kg) -> 15000 Enter mass of glider #1 (kg) -> 5000 Enter mass of glider #2 (kg) -> 4500 Enter force produced by propellers (N) -> 75000 Acceleration: 3.06 m/s^2 -=-=-= Resulting tension on cable #1: Resulting tension on cable #2: 29081.63 Newtons 13775.51 Newtons
Answer:
Follows are the code to this question:
#include <stdio.h>//header file
int main() //main method
{
int plane, g1, g2, f;//defining integer variables
float m,a,t1,t2; //defining float variables
printf("Enter mass of airplane (kg)-> ");//print message for input value
scanf("%d", &plane);//input value
printf("Enter mass of glider #1 (kg)-> ");//print message for input value
scanf("%d", &g1);//input value
printf("Enter mass of glider #2 (kg)-> ");//print message for input value
scanf("%d", &g2);//input value
printf("Enter force produced by propellers (N) -> ");//print message for input value
scanf("%d", &f);//input value
m= plane + g1 + g2;//use float variable m to calculate Mass
a=f/m;//use float variable a to calculate Acceleration
printf("\nAcceleration: %.2f m/s^2", a);
printf("\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");//use print method for design
t1 = (g1 + g2) * a;//using the t1 variable to calculate tensions
printf("\nResulting tension on cable #1: %.2f Newtons", t1);//print tension value
t2 = g2 * a;//using the t1 variable to calculate tensions
printf("\nResulting tension on cable #2: %.2f Newtons", t2);//print tension value
printf("\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-");//use print method for design
return 0;
}
Output:
Please find the attached file.
Explanation:
In this code four integer variable "plane, g1, g2, and f" and four floating-point variables "m, a, t1, and t2" is declared, in which the integer variable is used for input the value from the user-end.
In the next step, the "m" variable is used, which adds the "plane, g1, and g2" integer value to calculate mass, and in the "a" variable it calculates the acceleration, and in the "t1 and t2" variable it calculates the tension and prints its value.
a technique for printing text images or pattern which originated in china as a method for printing on paper
Answer:
Woodblock printing or block printing is a technique for printing text, images or patterns used widely throughout East Asia and originating in China in antiquity as a method of printing on textiles and later paper. As a method of printing on cloth, the earliest surviving examples from China date to before 220 AD.
Consider the following code segment, which is intended to simulate a random process. The code is intended to set the value of the variable event to exactly one of the values 1, 2, or 3, depending on the probability of an event occurring. The value of event should be set to 1 if the probability is 70 percent or less. The value of event should be set to 2 if the probability is greater than 70 percent but no more than 80 percent. The value of event should be set to 3 if the probability is greater than 80 percent. The variable randomNumber is used to simulate the probability of the event occurring.
int event = 0;
if (randomNumber <= 0.70)
{
event = 1;
}
if (randomNumber <= 0.80)
{
event = 2;
}
else
{
event = 3;
}
The code does not work as intended. Assume that the variable randomNumber has been properly declared and initialized. Which of the following initializations for randomNumber will demonstrate that the code segment will not work as intended?
A) randomNumber = 0.70;
B) randomNumber = 0.80;
C) randomNumber = 0.85;
D) randomNumber = 0.90;
E) randomNumber = 1.00;
Answer:
A) randomNumber = 0.70;
Explanation:
The code works perfectly for all values of randomNumber given in the options except option (a)
This is so because:
The first condition
if (randomNumber <= 0.70) { event = 1; }
It checks if randomNumber is less than or equal to 0.70. This is true, so event is set to 1.
However, the next condition after it will also be executed because it is a different conditional to be executed.
So, we have:
if (randomNumber <= 0.80) { event = 2; }
This condition is also true, so event is set to 2.
From the question randomNumber is meant to be event 1. However, this is different from the result of executing the code.
Hence, (a) is true
Create a class BankAccount with 2 variables, a int balance, and a string name. Then create an instance of the BankAccount Class, change its name and balance, and print its name and balance.
Answer:
Follows are the code to the given question:
class BankAccount //defining a class BankAccount
{
int balance;//defining integer variable balance
String name;//defining String variable name
BankAccount()//defining default constructor
{
}
BankAccount(int balance, String name)//defining parameterized constructor that accepts two parameters
{
this.balance = balance;//use this to hold parameter value
this.name = name;//use this to hold parameter value
}
}
public class Main//defining Main class
{
public static void main(String[] asr)//main method
{
BankAccount obv = new BankAccount(1969, "Mustang");//creating class object and pass value in parameter
System.out.println("Your name is: " + obv.name + " and " +"Your balance is: "+ obv.balance);//print value with message
}
}
Output:
Your name is: Mustang and Your balance is: 1969
Explanation:
In this code a class "BankAccount" is declared, that defines the two variable "name and balance" as a integer and string, and in the next step a parameterized constructor is declared, that uses this keyword to hold value.
In the main class the main method is declared and inside the method class object is created that accepts parameter value and use the print method to print its value.
What were Roman Capitals first used for?
Answer:
Square capitals were used to write inscriptions, and less often to supplement everyday handwriting. When written in documents this style is known as Latin book hand. For everyday writing the Romans used a current cursive hand known as Latin cursive. Notable examples of square capitals used for inscriptions are found on the Roman Pantheon, Trajan's Column, and the Arch of Titus, all in Rome. Square capitals are characterized by sharp, straight lines, supple curves, thick and thin strokes, angled stressing and incised serifs. These Roman capitals are also called majuscules, as a counterpart to minuscule letters such as Merovingian and Carolingian.
Under the Gramm-Leach-Bliley-Act (GLBA), banks must protect customer privacy. A given bank has just implemented its online banking solution that allows customers to access their accounts and perform transactions via their computers or personal digital assistant (PDA) devices. Online banking servers and their public Internet hosting would fall within which domains of security responsibility?
Answer:
System/Application Domain and LAN-to-WAN Domain.
Explanation:
The Gramm-Leach-Bliley-Act is also referred to as the Financial Services Modernization Act of 1999. It was enacted by the 106th Congress of the United States of America and it requires that financial institutions explain to their customers the information sharing policies and ensure that customer sensitive data (privacy) is safeguarded.
This, under the Gramm-Leach-Bliley-Act (GLBA), banks must protect customer privacy.
In this scenario, a given bank has just implemented its online banking solution that allows customers to access their accounts and perform transactions via their computers or personal digital assistant (PDA) devices.
Hence, online banking servers and their public Internet hosting would fall within the System/Application Domain and LAN-to-WAN Domain.
In an IT infrastructure, there are seven main domains and these are the: User Domain, Workstation Domain, LAN Domain, LAN-to-WAN Domain, Remote Access Domain, WAN Domain, and System/Application.
Write a program that:
a. asks user to input the temperature in Fahrenheit.
b. It converts the inputted temperature into Celsius.
c. Calculates the speed of sound in meters per second and in feet per second. The program should display user's inputs and print the results in both m/s and ft/s
Answer:
sucks to suck
Explanation:
The________ partitioning scheme enables you to create more than four primary partitions without needing to use dynamic disks
Answer:
three primary partitions
List 5 ways by which Artificial intelligence (AI) can be used to drive our business.
Answer:
start a website
Explanation:
true
Write a program that uses while loops to perform the following steps:
a. prompt the user to input two integers: firstNum and secondNum
b. Output all odd numbers between firstNum and secondNum.
c. Output the sum of all even numbers between firstNum and secondNum.
d. Output the number and their squares between 1 and 10
e. Output the sum of the square of the odd numbers between firstNum and secondNum.
f. Output all uppercase letters.
Answer:
Explanation:
//Include the required header files.
#include<iostream>
using namespace std;
//Define the main function.
int main()
{
//Define the variables.
int i, sum = 0, sqSum = 0, firstNum = 1, secondNum = 0;
char ch;
//Check for valid input.
while (!(firstNum < secondNum))
{
cout << "Enter starting number: ";
cin >> firstNum;
cout<<"Enter ending number(must be > startingNumber): ";
cin >> secondNum;
}
//Store first number in i
i = firstNum;
//Dispaly the number.
cout << "The odd numbers between " << firstNum
<< " and " << secondNum << " are:\n";
//Iterate between first and second number.
while (i <= secondNum)
{
//Check for even numbers.
//Store the sum
if (i % 2 == 0)
sum = sum + i;
//Print the odd numbers
//Evaluate the square of sum of odd number.
else
{
cout << i << " ";
sqSum = sqSum + i * i;
}
//Increase the value of i.
i++;
}
//Dispaly the sum of even numbers.
cout << "\n\nThe sum of the even numbers is:"
<< sum << endl << endl;
//Dispaly the sum of square of odd number.
cout << "The sum of squares the odd numbers is:"
<< sqSum << endl;
//Set i to 1.
i = 1;
//Dispaly the message.
cout << "\nNumber Square\n";
//Iterate and print number between 1 andd 10
//along with the sum.
while (i <= 10)
{
cout << " " << i << "\t " << i * i << endl;
i++;
}
//USe for visual studio.
system("pause");
//Return the value 0.
return 0;
}
Explanation:
The program code will perform the function listed below using loop.
Prompt the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum). Output all odd numbers between firstNum and secondNum. Output the sum of all even numbers between firstNum and secondNum. Output the numbers and their squares between 1 and 10. Separate the numbers using any amount of spaces. Output the sum of the square of the odd numbers between firstNum and secondNum. Output all uppercase letters.
Hope this helps!
Which TWO of the following are input devices that are parts of a laptop computer?
display screen
touch pad
scanner
mouse
keyboard
Answer:
Mouse and Keyboard.
its actually keyboard and touchpad!!
when computer network are joined together they form a bigger network called the
Answer:
A WAN can be one large network or can consist of two or more lans connected together. The Internet is the world's largest wan.
Explanation:
how are keyboards applied in the real world
A new, empty workbook that contains three worksheets (sheets).
a.Clear Worksheet
b.Blank Worksheet
c.Standard Worksheet
d.Unformatted Worksheet