I think its c I hope I'm not wrong about this If I am I'm sorry
Most Information Technology careers require workers to perform their jobs in
A. a home office.
B. a business office.
C. a secure office.
D. an off-site office.
Answer:
b on edge 2020
Explanation:
Answer:
b
Explanation:
The game world plays a crucial role in bringing the game story to life and often acts as a bridge between what two elements?
A) the game title and resolution
B) characters and their powers
C) internal conflict and external conflict
D) game mechanics and game story
Answer:
B Is actually the correct answer
Assuming dataFile is an ofstream object associated with a disk file named payroll.dat, which of the following statements would write the value of the salary variable to the file
A) cout <
B) ofstream
C) dataFile << salary;
D) payroll.dat <
Answer:
dataFile << salary;
Explanation:
To write salary to a file (payroll.dat) using ofstream, you make use of the following instruction:
ofstream dataFile;
myfile.open ("payroll.dat");
myfile <<salary;
myfile.close();
This line creates an instance of ofstream
ofstream dataFile;
This line opens the file payroll.dat
myfile.open ("payroll.dat");
This is where the exact instruction in the question is done. This writes the value of salary to payroll.dat
myfile <<salary;
This closes the opened file
myfile.close();
A user reports slow performance on a computer. A technician checks the computer and finds the RAM utilization Is very high. The technician restarts the computer, and the RAM use is still high. The technician discovers a program running in the background Is using most of the RAM. The user only uses this program once at the end of the year to produce a report. What steps should the technician take to improve the computer's performance?
Answer:
The answer is "disable the program on startup"
Explanation:
The technician simply disables the program on the startup, at this the utilization of the RAM is low. The startup tab is also known as an alternative in the initialization process of the system software, which is automatically started whenever the device boots. There has been an error. If you boot, the more applications you want to load the longer it will take to operate the computer.
A Consider the following method definition. The method printAllCharacters is intended to print out every character in str, starting with the character at index 0. public static void printAllCharacters (String str) for (int x = 0; x< str.length(); x++) // Line 3 System.out.print(str.substring(x, x + 1)); The following statement is found in the same class as the printAllCharacters method. printAllCharacters ("ABCDEFG"); Which choice best describes the difference, if any, in the behavior of this statement that will result from changing x < str.length() to x <= str.length() in line 3 of the method?
Α) The method call will print fewer characters than it did before the change because the loop will iterate fewer times.
B) The method call will print more characters than it did before the change because the loop will iterate more times.
C) The method call, which worked correctly before the change, will now cause a run-time error because it attempts to access a character at index 7 in a string whose last element is at index 6.
D) The method call, which worked correctly before the change, will now cause a run-time error because it attempts to access a character at index 8 in a string whose last element is at index 7.
E) The behavior of the code segment will remain unchanged.
Answer:
(c) The method call, which worked correctly before the change, will now cause a run-time error because it attempts to access a character at index 7 in a string whose last element is at index 6.
Explanation:
Given
printAllCharacters method and printAllCharacters("ABCDEFG");
Required
What happens when x < str.length() is changed to x <= str.length()
First, we need to understand that str.length() gets the length of string "ABCDEFG"
There are 7 characters in "ABCDEFG".
So: str.length() = 7
The first character is at index 0 and the last is at index 6
Next, we need to simplify the loop:
for (int x = 0; x< str.length(); x++) means for (int x = 0; x< 7; x++)
The above loop will iterate from the character at the 0 index to the character at the 6th index
while
for (int x = 0; x<=str.length(); x++) means for (int x = 0; x<=7; x++)
The above loop will iterate from the character at the 0 index to the character at the 7th index
Because there is no character at the 7th index, the loop will return an error
Hence: (c) is correct
Following are calculations to the given method.
Given:
Method printAllCharacters and printAllCharacters("ABCDEFG") are both required.
To find:
What happens if you change x <str.length() to x = str.length()?
Solution:
To begin, we must recognize that str. length() returns the length of the string "ABCDEFG"."ABCDEFG" is made up of seven letters.As just a result, str.length() = 7The first character is at index 0 while the last is at index 6. The loop should therefore be simplified:
for (int x = 0; x< str.length(); x++) means for (int x = 0; x< 7; x++)
Its loop above should iterate from character 0 through character 6.when
for (int x = 0; x<=str.length(); x++) stands as for (int x = 0; x<= 7; x++).
The loop above will iterate from the character from index 0 to a character at index 7.The loop will produce an error since there are no characters at the 7th index.Therefore, the final answer is "Option (c)"
Learn more:
brainly.com/question/22799426
Use the factorial operation to evaluate 10!.
A) 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1
B) 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1
C) 10 + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1
D) 10 x 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1
Answer:
D
Explanation:
The definition of n! is n x (n-1) x (n-2) x ... x 1.
So 10! = 10 x 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1 i.e. D.
Answer:
D) 10 x 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1
Explanation:
The problem here is to use the factorial method to find;
10!
The factorial of any number is given as:
a! = (a - 1) x (a - 2) .........(a - n)
It is the product of any integer from 1 to that number.
So;
10! = 10 x 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1
The solution is therefore 10 x 9 x 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1
If you wanted to help your phone , a nonliving thing , perform the process of life which is to gain energy which would be the best description of what to do ?
Help
Answer:
d. plug it into the charger.
Explanation:
what is mass communication
Hey there!
When you see the word “mass communication” think of an article written on the newspaper or a person interaction on a social media platform. You’re talking to a variety of LARGE groups but not physically there in their appearance, right? (This is an EXAMPLE.... NOT an ANSWER)
Here’s SOME examples
- Political debate campaigns
- Journalism (you could find some in articles / newspapers passages)
- Social Media Platforms
- A company PROMOTING their brand as a COMMERCIAL on the television/radio
Without further a do... let’s answer your question….......
Basically “mass communication”
is the undertaking of media coordination which produce and carries out messages with HUGE crowds/public audiences and by what the message process striven by their audience ☑️
Good luck on your assignment and enjoy your day!
~LoveYourselfFirst:)
Gamification and virtual reality is the future of education . I need a speech on this topic
can you answer this question?
Answer:
To do this you'll need to use malloc to assign memory to the pointers used. You'll also need to use free to unassign that memory at the end of the program using the free. Both of these are in stdlib.h.
#include <stdlib.h>
#include <stdio.h>
#define SIZE_X 3
#define SIZE_Y 4
int main(void){
int **matrix, i, j;
// allocate the memory
matrix = (int**)malloc(SIZE_X * sizeof(int*));
for(i = 0; i < SIZE_X; i++){
matrix[i] = (int *)malloc(SIZE_Y * sizeof(int));
}
// assign the values
for(i = 0; i < SIZE_X; i++){
for(j = 0; j < SIZE_Y; j++){
matrix[i][j] = SIZE_Y * i + j + 1;
}
}
// print it out
for(i = 0; i < SIZE_X; i++){
for(j = 0; j < SIZE_X; j++){
printf("%d, %d: %d\n", i, j, matrix[i][j]);
}
}
// free the memory
for(i = 0; i < SIZE_X; i++){
free(matrix[i]);
}
free(matrix);
return 0;
}
Consider the following class designed to store weather statistics at a particular date and time:
public class WeatherSnapshot
{
private int tempInFahrenheit;
private int humidity; // value of 56 means 56% humidity
private int dewPoint; // in degrees Fahrenheit
private String date; // stores the date as a String
private int time; // in military time, such as 1430 = 2:30 pm
private boolean cloudy; // true if 25% or more of the sky is covered
// constructor not shown, but it initializes all instance variables
// postcondition: returns temperature
public int getTemp()
{
return tempInFahrenheit;
}
// postcondition: returns date
public String getDate()
{
return date;
}
// postcondition: returns true if precipitation is likely; false otherwise
public boolean precipitationLikely()
{
// implementation not shown
}
// other methods not shown
}
Suppose a WeatherSnapshot object named currentWeather has been correctly instantiated in a client class. Which of the following will correctly call the precipitationLikely method?
A. boolean couldRain = precipitationLikely();
B. boolean couldRain = currentWeather.precipitationLikely();
C. boolean couldRain = currentWeather.precipitationLikely(true);
D. double percentChanceOfRain = precipitationLikely();
E. double percentChanceOfRain = currentWeather.precipitationLikely();
Answer:
The answer is "Option b".
Explanation:
In this question, It took the boolean parameter, which may use the couldRain as the precipitationLikely precipitation method as the boolean variable because the precipitationLikely is not a static type, and it can name this method utilizing object is called currentWeather, that's why the choice b is correct.
Write a program that calculates the shipping charges for parcel. The program should ask the user to enter two floating point values:
The weight of a parcel in pounds
The shipping rate per pound
The program calculates and displays the total shipping charges based on the parcel’s weight and shipping rate per pound.
Your program should print dollars and cents with two decimal places such as 32.85, and not 32.8467777.
Hint: Until we learn how to format output, we will use this little trick. You can round a floating-point value to the nearest hundredth by adding 0.005, multiplying by 100, converting the result to an integer, and then dividing by 100. This trick is not perfect but works well with most values.
Here is a sample of what a typical run of this program looks like where the user entered the values 4.75 for the weight and 2.55 for the shipping rate per pound:
Shipping Charges Calculator
Enter the weight of your parcel in pounds: 4.75
Enter the shipping price per pound: 2.55
The weight of your parcel is 4.75 pounds
The shipping price per pound is $ 2.55
The shipping charges for your parcel is $ 12.11
NOTE: Please remember that your program will be graded in terms of:
correctness: it performs the calculations correctly and uses proper arithmetic expressions: 75% (graded by Zybooks)
code style: good variable names, comments, proper indentation and spacing: 25% (grade by the TAs)
This program code is Python
Answer:
Answered below
Explanation:
#Program is written in Python programming language
#Get the weight and price and store them in #variables.
parcel_weight = float(input('Enter weight of parcel in pounds: "))
rate_per_pound = float(input ('Enter shipping price per pound: "))
# Calculate the total price per pound
total_price = parcel_weight * rate_per_pound
#print invoice
print ("Your parcel weighs $parcel_weight pounds')
print ("The rate per pound is $rate_per_pound")
print("Total shipping cost is; ")
print ("%.2f" % total_price)
Write a program that takes a first name and a major as the input and outputs a message with that name and major as shown below Ex. If the input is Nithya and Art the output is Nithya 18 majoring in Art. Use the names and majors of students in your breakout room to test your code. Note that to separate the name from the major as part of the input, you need to place these inputs on separate lines. For the example above, we would provide the input as follows: Nithya Art Hint If you directly add the names and majors inside the print statement, then the code would not work correctly since it is relying on the contents of the provided variables. You need to use these variables inside your print statement, so that regardless of the provided input, the output will always use those values and be as expected Hint. If your code does not pass the tests, make sure you do not have an extra space in your output. Remember. Python automatically adda a blank space between expressions separated by a comma LAD ACTIVITY 1161 LAB: Breakout Room Activity 0/15 main.py Load default template 1 username input() 2 najor - input() 5 6 7. the comments below, listing the names and majors of the students who were in the breakout room with you 9.1. May Finance 10. 2. Ronnte Econ 11.). Preston Accounting
Answer:
The program in Python is as follows:
name = input("Name: ")
major = input("Major: ")
print(name+" is majoring in "+major)
Explanation:
This line prompt user for username
name = input("Name: ")
This line prompt user for major
major = input("Major: ")
This line prints the name and major of the user
print(name+" is majoring in "+major)
why are players givin more carbohydrates a day before a game?
Answer: So they can win
Answer:
players are given more carbohydrate beacuse
they gain more amount of energy for the game
hope it helps you
what time is spellrd the same forwards and backwards
What is the recommended solution if a computer performs slowly?
Answer:
Not sure what the class/context is, but here's what I'd do to diagnose a problem like that:
- Check to see what programs have high utilization of system resources in task manager and end them
- Prevent background startup processes from occuring on restart or from running in the background during normal use
- Figure out what hardware component is bottlenecking the system and upgrade it (HDD to SSD would be one example)
- If the issue is malware related, I would "flatten" the PC by wiping the entire system and reinstalling the OS (though some malware can persist even across this)
Source: I've worked as labs support
If a computer is performing slowly, there are several recommended solutions one can try to improve its performance, such as closing unnecessary programs, restarting the computer, etc.
Reviewing the programs that automatically start when the computer boots up and disabling unnecessary startup programs to reduce the time it takes for the computer to start and free up system resources. The specific solution may vary depending on the computer's operating system, hardware, and specific performance issues. It's always a good idea to back up important files before making any changes to your computer's configuration. If the performance issues persist, seeking assistance from a computer technician or IT professional may be necessary.
Learn more about computers here.
https://brainly.com/question/32297640
#SPJ6
A specification can be a written document, a set of graphical, a formal mathematical model, a collection of usage scenarios (or, use cases), a prototype, or any combination of these.
A. True
B. False
Answer:
The given statement is "True". A further explanation is given below.
Explanation:
The specification would be a necessary condition that is explicitly indicated, for obvious reasons, concerning the great components throughout the prototype of being something. A detailed explanation of that same performance aspects, normally with particular established standards, is presented in terms appropriate to lead to the creation both for real manufacturing and building methods of such a component with either the personality traits mentioned throughout the structural performance.So the above is the appropriate response.
State what’s printed for each println in the code below:
public static void main(String args[ ])
{
MyClass theObj = new MyClass( );
theObj.gravy = 107.43;
String s = "hello";
int xray[] = {1, 2, 3, 4, 5};
double floozy = 97.4;
myMethod(floozy, theObj, xray, s );
System.out.println(floozy); // Problem 1:
System.out.println(theObj.gravy); //Problem 2:
System.out.println(xray[2]); //Problem 3:
System.out.println(s); //Problem 4:
}
public static void myMethod(double floozy, MyClass anObj, int a[ ], String s)
{
floozy = 13.1;
anObj.gravy = 10.001;
a[2] = 100; s = "good bye";
}
Answer:
Explanation:
Each of the following println statements will print the following values
ystem.out.println(floozy); // Problem 1: 97.4
System.out.println(theObj.gravy); //Problem 2: 107.43
System.out.println(xray[2]); //Problem 3: 100
System.out.println(s); //Problem 4: Hello
This is because out of all of the variables that the myMethod gives a value to, the only variable that is being saved back to the global variable in the main method is a[2]. The other variables are being saved as instance variables and not being returned. Therefore, when the println statements are called they target the local variables in the main method.
ve phenotypk percentages of the offspring
A technician who is managing a secure B2B connection noticed the connection broke last night. All networking equipment and media are functioning as expected, which leads the technician to question certain PKI components. Which of the following should the technician use to validate this assumption? (Choose two)
a. PEM
b. CER
c. SCEP
d. CRL
e. OCSP
f. PFX
Answer:
d. CRL
e. OCSP
Explanation:
Note, the term PKI stands for Public Key Infrastructure.
Among all the PKI components, the CRL (CERTIFICATE REVOCATION LISTS), which contains a list of issued certificates that were later revoked by a given Certification Authority, and the PFX format used for storing server certificates should be examined by the technician use to validate his assumption.
Difference between analog and digital computer ??
Answer:
The analogue computer works on a continuous signal. The digital computer works on a discrete signal. The output is a voltage signal, they are not exact values and are in graphical form.
Consider the following pseudocode:
Get the Sqrt of 9.
This pseudocode is an example of what?
A
An event that contains a parameter
B
A function that contains an argument
C
An object that contains a parameter
D
A class that contains an argument
Answer: sorry I couldn’t help but Pseudocode is an artificial and informal language that helps programmers develop algorithms. Pseudocode is a "text-based" detail (algorithmic) design tool. The rules of Pseudocode are reasonably straightforward. All statements showing "dependency" are to be indented. These include while, do, for, if, switch.
Explanation:
1. If you have the following device like a laptop, PC and mobile phone. Choose one device
and write down the specification according to?
*Operating System
*Storage capacity
*Memory Capacity
*Wi-Fi connectivity
*Installed application
Answer:
For this i will use my own PC.
OS - Windows 10
Storage Capacity - 512 GBs
Memory - 16 GB
Wi-Fi - Ethernet
Installed Application - FireFox
Explanation:
An OS is the interface your computer uses.
Storage capacity is the space of your hard drive.
Memory is how much RAM (Random Access Memory) you have
Wi-Fi connectivity is for how your computer connects the the internet.
An installed application is any installed application on your computer.
Write a public static method named insert. The insert method should have the signature insert(String[] words, String newWord, int place), should return a boolean, and should function as described below.
When called, if place does not represent a valid index for words, then the method will return false to indicate the insertion could not be performed and do nothing else. Otherwise the method will insert the String newWord into the array words at the index place, moving each subsequent entry one place further and losing the final String in the array. The method will then return true to indicate the insertion has taken place.
Use the runner class to test this method: do not add a main method to your code in the U6_L4_Activity_One.java file or it will not be scored correctly.
Here is the runner code:
import java.util.Scanner;
public class runner_U6_L4_Activity_One{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
System.out.println("Enter array length:");
int len = scan.nextInt();
scan.nextLine();
String[] wordList = new String[len];
System.out.println("Enter values:");
for(int i = 0; i < len; i++){
wordList[i] = scan.nextLine();
}
System.out.println("Enter new String:");
String insWord = scan.nextLine();
System.out.println("Enter place:");
int pos = scan.nextInt();
System.out.println("Method return: " + U6_L4_Activity_One.insert(wordList, insWord, pos));
System.out.print("Array contents: {");
for(int i = 0; i < len-1; i++){
System.out.print(wordList[i] + ", ");
}
System.out.println(wordList[len-1]+"}");
}
}
Answer:
Explanation:
The following code was written in Java and performs the exact requirements listed in the question. It has also been tested by the runner code and works perfectly.
public static boolean insert(String[] words, String newWord, int place) {
if (place > words.length) {
return false;
} else {
for (int x = words.length - 1; x >= 0; x--) {
if (place == x) {
words[x] = newWord;
break;
} else {
words[x] = words[x-1];
}
}
return true;
}
}
Methods are group of code segments that are executed when evoked or called.
The insert public static method in Java, where comments are used to explain each line is as follows:
//This defines the method
public static boolean insert(String[] words, String newWord, int place) {
//This returns false, if the place value is less than the word length
if (place > words.length) {
return false;
}
//If otherwise
else {
//This iterates through the characters of the word, in reverse order
for (int i = words.length - 1; i >= 0; i--) {
//This inserts the new word into the array
if (place == i) {
words[i] = newWord;
break;
} else {
words[i] = words[i-1];
}
}
//This returns true
return true;
}
}
Read more about methods at:
https://brainly.com/question/13628934
Which function in spreadsheet software can be used to predict future sales or inventory needs?
Answer:forecast
Explanation:
/* missing precondition */
public String getChar(String str, int n) {
return str.substring(n, n 1); }
Write down the most appropriate precondition for the method so that it does not throw an exception.
Answer:
An appropriate precondition is:
0 <= n && n <= str.length() - 1
Explanation:
Required:
Write down an appropriate pre-condition for the program
From the question, we understand that the method accepts two parameters:
str -> A string value
n -> An integer value which represents the index of character to return from the string str
It should be noted that:
n must be within the range of 0 and str.length()-1
Take for instance:
str = "ABCDE";
n must be within the range 0 to 4 (inclusive) in order not to raise an exception. This is so because the string index starts at 0 and stops at 1 less than the length of the string.
Hence, the precondition can be written as:
0 <= n && n <= str.length() - 1
Which means: n = 0 to length - 1
VEE Physics 2006 E.C
466
4.
A transverse sinusoidal wave is travelling on a string. Which
statement is correct a point on the string?
A. The point moves in the same direction as the wave.
B. The point moves in simple harmonic motion with a different
frequency than that of the wave.
C. The point moves in simple harmonic motion with the same
angular frequency as the wave.
D. The point moves I uniform circular motion with a different
angular speed than the wave.
Lesson 3 - Calling All Operators
Exit
37 of 42
Test
Reset
order
75
do
create variable amount ToCoupon
75 +
order
print
"To receive a coupon, you will need to spend $ >
amount ToCoupon
print
Code
Check the customer's order amount. If it is less than $75, determine how much more
needs to be spent to reach $75 and give the customer that information.
< PREV
Answer:
.m
Explanation:
1.16 LAB: Input and formatted output: House real estate summary Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two inputs, current price and last month's price (both integers). Then, output a summary listing the price, the change since last month, and the estimated monthly mortgage computed as (currentPrice * 0.051) / 12 (Note: Output directly. Do not store in a variable.).
Ex: If the input is:
200000 210000
the output is:
This house is $200000. The change is $-10000 since last month.
The estimated monthly mortgage is $850.0.
Note: Getting the precise spacing, punctuation, and newlines exactly right is a key point of this assignment. Such precision is an important part of programming.
import java.util.Scanner;
public class LabProgram {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
int currentPrice;
int lastMonthsPrice;
currentPrice = scnr.nextInt();
lastMonthsPrice = scnr.nextInt();
/* Type your code here. */
}
Answer:
Please find the complete code and the output in the attachement.
Explanation:
In the code, a class "LabProgram" is defined, and inside the main method two integer variable "currentPrice and lastMonthsPrice" is defined that uses the scanner class object is used for a user input value, and in the next step, two print method is declared that print the calculate of the integer variable.
The program is an illustration of output formats in Java
The statements that complete the program are:
System.out.printf("This house is $%d. The change is $%d since last month.\n",currentPrice,(currentPrice - lastMonthsPrice));System.out.printf("The estimated monthly mortgage is $%.1f.\n",(currentPrice * 0.051)/12);To format outputs in Java programming language, we make use of the printf statement, followed by the string literal that formats the required output
Take for instance:
To output a float value to 2 decimal place, we make use of the literal "%.2f"
Read more about Java programs at:
https://brainly.com/question/25458754
Any1??
Write the names of atleast 22 high-level programming languages
Answer:
1 Array languages
2 Assembly languages
3 Authoring languages
4 Constraint programming languages
5 Command line interface languages
6 Compiled languages
7 Concurrent languages
8 Curly-bracket languages
9 Dataflow languages
10 Data-oriented languages
11 Decision table languages
12 Declarative languages
13 Embeddable languages
13.1 In source code
13.1.1 Server side
13.1.2 Client side
13.2 In object code
14 Educational languages
15 Esoteric languages
16 Extension languages
17 Fourth-generation languages
18 Functional languages
18.1 Pure
18.2 Impure
19 Hardware description languages
19.1 HDLs for analog circuit design
19.2 HDLs for digital circuit design
20 Imperative languages
21 Interactive mode languages
22 Interpreted languages
23 Iterative languages
Explanation: