Answer:
Written in Java
import java.util.*;
public class Main {
public static void main(String args[]) {
int n;
Scanner input = new Scanner(System.in);
n = input.nextInt();
double nums []= new double [n];
for (int i=0; i<n;i++)
{
nums[i] = input.nextDouble();
}
Arrays.sort(nums);
System.out.println("The two smallest are: ");
for (int i=0; i<2;i++)
{
System.out.println(nums[i]);
}
}
}
Explanation:
This line declares number of input
int n;
This line calls the Scanner function
Scanner input = new Scanner(System.in);
This line gets input from user
n = input.nextInt();
This line declares an array of n elements
double nums []= new double [n];
The following iteration gets input into the array
for (int i=0; i<n;i++)
{
nums[i] = input.nextDouble();
}
This line sorts the array
Arrays.sort(nums);
The following iteration prints the two smallest
System.out.println("The two smallest are: ");
for (int i=0; i<2;i++)
{
System.out.println(nums[i]);
}
In cell E13, create a formula using the AVERAGE function
to calculate the average of the values in the range E4:E11.
The average function in Microsoft Excel calculates the mean of the cells.
The required formula is: =AVERAGE(E4:E11)
The syntax of the average function is: =AVERAGE(cells-range)
From the question, the cell range is: cell E4 to cell E11
This means that, the average formula would be:
=AVERAGE(E4:E11)
Hence, the formula to enter in cell E13 is:
=AVERAGE(E4:E11)
Read more about Excel formulas at:
https://brainly.com/question/1285762
When you set the position property for a block element to fixed, the element
Answer:
-is positioned relative to the browser window
Hope this helps!
Answer: When you set the position property for a block element to fixed, the element remains in an exact position on the screen even if the page is scrolled down.
Read each description below, and then choose the correct term that matches the description from the drop-down menus.
wireless technology that lets you identify and track objects
medical uses of RFID
a low-power radio wave used for short distances
computing device used with Bluetooth Read each description below, and then choose the correct term that matches the description from the drop-down menus.
wireless technology that lets you identify and track objects
medical uses of RFID
a low-power radio wave used for short distances
computing device used with Bluetooth
Answer:
wireless technology that lets you identify and track objects (radio frequency identification)
medical uses of RFID (patient identification)
a low-power radio wave used for short distances (bluetooth)
computing device used with Bluetooth hands-free microphone in car
Explanation:
sorry if late :/
Answer:
Explanation:
edg 2021
Please answer this please solve it
Answer:
If you still can't figure it out look this up
nvcc cafe problem
Explanation:
If you are wanting to change programs, when do you need to make this request?
a.To change programs, you must contact your advisor or counselor and complete the change of program application during an open application window.
b.You can change at any time; just email your advisor regarding the change.
c.You can never change programs.
d.You do not need to notify anyone. You just need to start taking courses for the desired program.
Answer:
If your discussing colleges and degrees, you cant take courses your not autorized to take.
So if you have one major and wish to change to another then you need to discuss with a student advisor or counseler so they can make the changes. They will also discuss which classes are necessary for your program of choosing, making sure all your requirements are completed.
Explanation:
You can copy and paste ________ from excel to powerpoint
Answer: data
Explanation:
How do I write this in binary number ?
1/3 ~ 100001.010101...
an exact value cannot be found; therefore, the zeros in ones in this binary representation of 1/3 alternate forever.
Finally, Su uses the last slide of her presentation as a summary slide. She wants to make sure the text she types automatically fits into the text box without changing the text box.
Which tool can Su use to accomplish this task?
Under which heading is the autofit feature found?
Which option should Su choose?
Answer:
Format Shape pane
Text Options
Shrink text on overflow
Explanation:
Answer:
Format Shape pane
Text Options
Shrink text on overflow
Explanation:
100%
Write a program with three functions: upper , lower , and reverse . The upper function should accept a pointer to a C-string as it's only argument. It should step through each character in the string, converting it to uppercase. The lower function, too, should accept a pointer to a C-string as it's only argument. It should step through each character in the string, converting it to lowercase. Like upper and lower , reverse should also accept a pointer to a string as it's only argument. As it steps through the string, it should test each character to determine whether it is upper- or lowercase. If a character is uppercase, it should be converted to lowercase. Likewise, if a character is lowercase, it should be converted to uppercase. Test the functions by asking for a string in function main , then passing it to them in the following order: reverse, lower , and upper. Main will then print out the strings to demonstrate the functions worked. Each function accepts exactly one argument. None of the functions return anything. None of the functions (other than main) interacts with the user in anyway. Variables of type string are not allowed.
Answer:
Here is the C++ program:
#include <iostream> //to use input output functions
#include <cstring> //to manipulate C-strings
#include <string> //to manipulate strings
using namespace std; //to access objects cin cout
//function prototypes
void upper(char *); to convert to upper case
void lower(char *); //to convert to lower case
void reverse(char *); //to convert to reverse case
int main() { //start of main method
char input[101]; //creates a char type array to hold input string
cout << "Enter a string: "; //prompts user to enter a string
cin.getline(input, 101); //reads input string from user
upper(input); //calls upper() method to convert the string to upper case
lower(input); //calls lower() method to convert the string to lower case
reverse(input); } //calls reverse() method to convert the string to reverse case
void upper(char *cString){ //method that takes a pointer to a C-string as it's only argument and converts that string to upper case
cout << "String in upper case: "; //displays string in upper case
for(int i = 0; i < strlen(cString); i++){ //iterates through the input string cString until the length of the cString is reached
if(islower(cString[i])) //checks if the character at i-th index of cString is in lower case
cout << (char) toupper(cString[i]); //converts each i-th character of cString to upper case at each iteration
else //if no character of cString is in lower case
cout << cString[i]; } //displays the cString as it is
cout << endl;} //prints a new line
void lower(char *cString){ //method that takes a pointer to a C-string as it's only argument and converts that string to lower case
cout << "String in lower case: "; //displays string in lower case
for(int i = 0; i < strlen(cString); i++){ //iterates through each character using for loop first character to last
if(isupper(cString[i])) //checks if the character at i-th index of cString is in upper case
cout << (char) tolower(cString[i]); //converts each i-th character of cString to lower case at each iteration
else //if no character of cString is in upper case
cout << cString[i]; } //displays the cString as it is
cout << endl; } //prints a new line
void reverse(char *cString){ //method that takes a pointer to a C-string as it's only argument and converts that string to reverse case (upper to lower and vice versa)
cout << "String in reverse case: "; //displays string in reverse case
for(int i = 0; i < strlen(cString); i++){ //iterates through each character using for loop first character to last
if(isupper(cString[i])) //checks if the character at i-th index of cString is in upper case
cout << (char) tolower(cString[i]); //converts character at i-th position of cString to lower
else //if the character is in lower case
cout << (char) toupper(cString[i]); } //converts character at i-th position of cString to upper
cout << endl;} //prints a new line
Explanation:
I will explain the program with an example.
Lets suppose user enters "hi" as input. So
Now first upper() method is called by passing this C-string to it.
It has a for loop that checks at each iteration, if a character of C-string is in lower using islower method which returns true if the character is in lower case. Since both the characters 'h' and 'i' are in lower in case so they are converted to upper case at each iteration using toupper() method. So the output of this part is:
String in upper case: HI
Now next lower() method is called by passing this C-string to it.
It has a for loop that checks at each iteration, if a character of C-string is in upper using isupper method which returns true if the character is in upper case. Since both the characters 'h' and 'i' are in lower in case so the string remains as it is. So the output of this part is:
String in lower case: hi
Now next reverse() method is called by passing this C-string to it.
It has a for loop that checks at each iteration, if a character of C-string is in upper using isupper method which returns true if the character is in upper case. Since both the characters 'h' and 'i' are in lower so else part: cout << (char) toupper(cString[i]); executes which converts these characters to upper case (reverse case). So the output of this part is:
String in reverse case: HI
The screenshot of program output with a different example is attached.
Gloria is adding footers to a PowerPoint template for students to use in a literature class. Each student must choose an author and make a presentation about their life and work. She wants the first slide in each presentation to show only the author’s name and photo. On subsequent slides, she wants to include a footer with a date and time that changes depending on the actual date of each presentation.
To insert the footer according to her plan, what must Gloria click in the Header & Footer dialog box?
Fixed
Preview
Slide number
Don’t show on title slide
Answer:
Its D
Explanation:
On edg
Answer: don’t show on title slide
Explanation:
Consider the GBN protocol with a sender window size of 4 and a sequence number range of 1,024. Suppose that at time t, the next in-order packet that the receiver is expecting has a sequence number of k. Assume that the medium does not reorder messages. Answer the following questions: What are the possible sets of sequence numbers inside the sender’s window at time t? Justify your answer. What are all possible values of the ACK field in all possible messages currently propagating back to the sender at time t? Justify your answer.
Answer:
Follows are the solution to this question:
Explanation:
In point a:
N = Size of window = 4
Sequence Number Set = 1,024
Case No. 1:
Presume the receiver is k, and all k-1 packets were known. A window for the sender would be within the range of [k, k+N-1] Numbers in order
Case No. 2:
If the sender's window occurs within the set of sequence numbers [k-N, k-1]. The sender's window would be in the context of the sequence numbers [k-N, k-1]. Consequently, its potential sets of sequence numbers within the transmitter window are in the range [k-N: k] at time t.
In point b:
In the area for an acknowledgment (ACK) would be [k-N, k-1], in which the sender sent less ACK to all k-N packets than the n-N-1 ACK. Therefore, in all communications, both possible values of the ACK field currently vary between k-N-1 and k-1.
You need to control the number of people who can be in an oyster bar at the same time. Groups of people can always leave the bar, but a group cannot enter the bar if they would make the number of people in the bar exceed the maximum of 100 occupants. Write a program that reads the sizes of the groups that arrive or depart. Use negative numbers for departures. After each input, display the current number of occupants. As soon as the bar holds the maximum number of people, report that the bar is full and exit the program.
Answer:
count = 0
while True:
people = int(input("Enter the number of people arrived/departed: "))
count += people
if count == 100:
print("The bar is full")
break
elif count < 100:
print("There are " + str(count) + " in the bar currently")
else:
print(str(people) + " people cannot enter right now")
print("The maximum capacity is 100!")
count -= people
print("There are " + str(count) + " in the bar currently")
Explanation:
*The code is in Python.
Set the count as 0
Create an indefinite while loop.
Inside the loop:
Ask the user to enter the number of people arrived/departed
Add the people to the count (cumulative sum)
Check the count. If the count is 100, stop the loop. If the count is smaller than 100, print the current number of people. Otherwise, state that they cannot enter right now. The capacity is 100 at most. Subtract the people from the count and print the current number of people.
How would an assignee enter details, such as mileage and billing information, for a task?
Create a new task, and enter the details.
Open the status report, and enter the details.
In the main task window, click the Details button.
Within the assigned task window, scroll to the bottom.
Answer:
It's C
Explanation:
On edg
Answer:
C is correct
Explanation:
I got it on edg
The CPU is located on what part of the computer?
the motherboard
the system bus
the random access memory
the hard drive
Answer:
the motherboard
Explanation:
What output is produced by
this code?
System.out.print("Computing\nisInfun");
A. Computing is fun
B. Computing\nis\nfun
C.
Computing
is
fun
D. This code will not produce any output, it contains an error.
Answer:
The answer to this question is given below in the explanation section. the correct option is C.
Explanation:
This is Java code statement:
System.out.print("Computing\nisInfun");
The output of this code statement is
Computing
isInfun
However, it is noted that the C option is not written correctly, but it is guessed that it will match to option C.
This Java code statement first prints "Computing" and then on the next line it will print "isInfun" because after the word "Computing" there is a line terminator i.e. \n. when \n will appear, the compiler prints the remaining text in the statement on the next line.
Steven wrote an algorithm for his coding class that explains how he makes a cake. Which is the correct sequence of steps that he used?
Mix the ingredients, put into the oven, preheat the oven
Preheat the oven, mix the ingredients, put into oven
Preheat the oven, put into the oven, mix the ingredients
Put into the oven, mix the ingredients, preheat the oven
WILL GIVE ALOT OF POINTS "29" TOTAL
Answer:
Preheat the oven, mix the ingredients, put into oven.
Answer:
Preheat oven, mix the ingredients, put into oven
Explanation:
basically its B
:)
easy points
Cats or dogs? :D
Cats are better than dogs
Your computer crashed, and you lost many personal and work-related files. You just got a new computer, but you are now much more concerned about viruses and other security threats. Which strategy can help you protect your computer against virus attacks?
Answer choices
A Disable your Web browser's automatic security settings so you can manually control the content you download.
B Open email attachments only from unknown senders.
C Update the definitions on your anti-virus application frequently.
D Perform regular backups of your hard drive.
PLS HELP!
WILL MARK BRAINLIEST!
:)
Answer: c
Explanation:
c
Brian needs to assign a macro to a button on the ribbon. Where should he go to achieve this goal?
Record Macro dialog box
Macros dialog box
Insert tab, Insert Macro icon
Customize the Ribbon area of the Word Options dialog box
Answer: A. Record Macro dialog box.
Explanation:
Answer: a
Explanation:
Submit your design an informative computer safety brochure for a specific cybercrime that targets an audience of your choice.
Finally, Lee wants to modify the table he linked to his presentation. How should he begin?
Highlight the table.
Click the table once.
Double-click the table.
Launch the Excel application.
Answer:
C. double-clike the table
Explanation:
Edg
Answer:
c
Explanation:
Which of these options is an example of a nested structure?A.
for loop
B.
while loop
C.
if-then-else loop
D.
if else inside a for loop
Answer:
D. if else inside a for loop
Explanation:
What is Naptha used for?
Answer:
Naphtha is used to dilute heavy crude oil to reduce its viscosity and enable/facilitate transport; undiluted heavy crude cannot normally be transported by pipeline, and may also be difficult to pump onto oil tankers. Other common dilutants include natural-gas condensate, and light crude.
Answer:
Naphtha is used for laundry soaps and clearing fluids
High Hopes^^
Barry-
Harry is creating a PowerPoint presentation and wants all the slides to have a uniform look.
The first thing Harry should do is select the
.
Next, he should use the command groups to edit the
.
Finally, he should save the file as a new
.
Answer: all answers for test are
Slide Master View
Layout and Theme
PowerPoint Template
A.
C.
Slide Master Thumbnail, Insert Tab, Header &Footer, Slide tab in the dialog box.
D.
C.
D.
Explanation:
The first thing Harry should do is select the Slide Master View, Next, he should use the command groups to edit the Layout and Theme. Finally, he should save the file as a new PowerPoint Template.
What is PowerPoint?It is a presentation-based programme that employs graphics, movies, etc. to enhance the interactivity and appeal of a presentation.
A saved Powerpoint presentation has the ".ppt" file extension. PPT is another name for a PowerPoint presentation that includes slides and other elements.
This right-sided brain activity is perfectly suited to the principal function of PowerPoint presentations.
For his PowerPoint presentation, Harry wants each slide to have a consistent appearance.
Harry must first choose the Slide Master View before using the command groups to change the Layout and Theme. The file should then be saved as a fresh PowerPoint Template.
Thus, this way, Harry can create a uniform look.
For more details regarding PowerPoint, visit:
https://brainly.com/question/14498361
#SPJ2
Which human job is most similar to the role of a producer
Answer: Directors
Explanation: directors create motion pictures, television shows, live theater, commercials, and other performing arts productions. directors work under a lot of pressure, and many are under stress to finish their work on time. Work hours for producers and directors can be long and irregular.
Which tasks can Kim complete using the Customize Ribbon dialog box? Check all that apply.
Rename existing ribbon tabs.
Rearrange ribbon commands.
Add a new main tab to the ribbon.
Add commands to existing groups.
Create new PowerPoint commands.
Add a new contextual tab to the ribbon.
Answer:
Its A, B, C, and F
Explanation:
On edg
Rename existing ribbon tabs, Rearrange ribbon commands, Add commands to existing groups and Add a new contextual tab to the ribbon.
What is PowerPoint presentation?A PowerPoint presentation is a type of visual aid that creates a slideshow of information that can be presented to an audience using Microsoft PowerPoint software.
It is typically made up of a series of slides that include text, images, charts, graphs, and other multimedia elements to convey information to the audience.
Kim can complete the following tasks by using the Customize Ribbon dialog box:
Existing ribbon tabs can be renamed.Rearrange the commands on the ribbon.To existing groups, add commands.To the ribbon, add a new contextual tab.Thus, Kim cannot use the Customize Ribbon dialog box to add new PowerPoint commands or a new main tab to the ribbon.
For more details regarding presentation ,visit:
https://brainly.com/question/14498361
#SPJ7
Question #1
Dropdown
Choose the word that makes each sentence true.
Asking the user for four numbers is an example of____.
Finding the average of the four numbers is an example of_____.
Telling the user the average is an example of_____.
O input
O output
O processing
Answer: Dropdown
Choose the word that makes each sentence true.
Asking the user for four numbers is an example of__input__.
Finding the average of the four numbers is an example of__processing___.
Telling the user the average is an example of__output___.
Explanation:
Following are the discussion to the given question:
Input is displayed by asking users for four digits. Any data or information that's also supplied to a system for analysis is referred to as input. Its statement, 'input' tells the system that it uses must enter some data before the software can proceed.The instance of processing is computing the mean of four numbers. In the CPU, computing is the conversion of input information to a more meaningful form of information.An instance of output is giving the user the average. It refers to information produced by and sent through a computer or another electronic device. The act of generating it, the amount generated, or the procedure through which something is given are all instances of output.Therefore, the answer is "input, processing, and output".
Learn more:
brainly.com/question/2882943
Write your code to define and use two functions. The Get User Values function reads in num Values integers from the input and assigns to user Values. The Output Ints Less Than Or Equal To Threshold function outputs all integers in user Values that are less than or equal to maxVal. num Values indicates the number of integers in user Values. void Get User Values(int user Values[], int num Values) void Output Ints Less Than Or Equal To Threshold (int user Values[], int maxVal, int num Values)
Answer:
#include <iostream>
#include <vector>
using namespace std;
/* Define your function here */
vector<int> GetUserValues(vector<int>& userValues, int numValues) {
int tmp = 0;
vector<int> newVec;
for(int i = 0; i < numValues; i++) {
cin >> tmp;
newVec.push_back(tmp);
}
return newVec;
}
void OutputIntsLessThanOrEqualToThreshold(vector<int> userValues, int upperThreshold) {
for (int i = 0; i < userValues.size(); ++i) {
if(userValues.at(i) < upperThreshold) {
cout << userValues.at(i) << " ";
}
}
cout << endl;
}
int main() {
vector<int> userValues;
int upperThreshold;
int numValues;
cin >> numValues;
userValues = GetUserValues(userValues, numValues);
cin >> upperThreshold;
OutputIntsLessThanOrEqualToThreshold(userValues, upperThreshold);
return 0;
}
Explanation:
Perhaps their is a better way to code this, but I couldn't figure out what to do with the pointer in the first function.
Sue conducted an experiment to determine which paper towel is the most absorbent among three different brands. She decides to present her data using a chart.
Why would Sue want to present her data using a chart?
to analyze alphanumeric data in a table
to analyze alphanumeric values in a spreadsheet
to present numeric values in a visually meaningful format
to present numeric values in a meaningful spreadsheet format
Answer:
c
Explanation:
Write both an iterative and recursive solution for the factorial
problem.
Answer:
Explanation:
Recursive:
C++ program to find factorial of given number
#include <iostream>
using namespace std;
unsigned int factorial(unsigned int n)
{
if (n == 0)
return 1;
return n * factorial(n - 1);
}
// Driver code
int main()
{
int num = 5;
cout << "Factorial of "
<< num << " is " << factorial(num) << endl;
return 0;
Iterative:
// C++ program for factorial of a number
#include <iostream>
using namespace std;
unsigned int factorial(unsigned int n)
{
int res = 1, i;
for (i = 2; i <= n; i++)
res *= i;
return res;
}
// Driver code
int main()
{
int num = 5;
cout << "Factorial of "
<< num << " is "
<< factorial(num) << endl;
return 0;
}