Answer:
!(key == 'q')
Explanation:
Based on the description, the coded expression that would equate to this would be
!(key == 'q')
This piece of code basically states that "if key pressed is not equal to q", this is because the ! symbol represents "not" in programming. Meaning that whatever value the comparison outputs, it is swapped for the opposite. In this case, the user would press anything other than 'q' to continue, this would make the expression output False, but the ! operator makes it output True instead.
5. An entrepreneur who continues to find new and better ways of doing things is ____.
A. Confident
B. Innovative
C. Persistent
D. Wholesale
Answer:
B innovative
Explanation:
new and better are synonymous with innovation
A student is conducting an experiment in which he adds an inhibitor to an enzyme-catalyzed reaction that contains alkaline phosphatase. When the student first adds the inhibitor, the reaction rate decreases, however, he can return the reaction rate to normal by adding a large quantity of substrate. What type of inhibitor is the student using, non-competitive or competitive?
Answer:
competitive
Explanation:
An inhibitor is a substance that hinders the action of an enzyme. An inhibitor may be competitive or non competitive.
A competitive inhibitor is an inhibitor that is very similar to the substrate hence it binds to the enzyme instead of the substrate. A noncompetitive inhibitor binds to a site that is different from the active site. This site is called an allosteric site.
If we look at the experiment described in the question, the reaction rate decreases upon addition of the inhibitor. This effect is reversed by adding a large quantity of substrate.
The implication of this observation is that the enzyme and the inhibitor compete for the active site on the substrate.
Hence the inhibitor is a competitive inhibitor.
Answer:
competitive inhibitor is the students using
Discuss the impact of vision on your actions to keep a clean environment
Answer:
For healthy living a clean environment is crucial: The more you care about our environment, the more contaminants and toxins that have a detrimental effect on our health are polluted. Air pollution can lead, among other problems and diseases, to respiratory and cancer problems
Explanation:
Ensuring and improving the climate is an important resource for Irelanders. To safeguard against radiation and contamination damage our kin and the climate.
We have the vision:
A perfect environment to promote practical society and economy, which is sound and very secure.
Very few people are working to keep the environment clean. Although municipal authorities are responsible for making sure the environment is clean, the clean and green environment must also be supported.
Reasons Why We Should Care About the Environment
An essential part of human survival is the environment in which we live. I believe that people who don't care about the environment simply don't know how important it is for us all and how it doesn't directly affect them, which is why I want you to worry about the environment.
Earth Is Warming: We must do more to fight climate change for our children and our future. Yes, no single event trends. Yes, it is true. You can't ignore that now.
Biodiversity is essential: the diversity of plants, animals and the rest of our world is concerned with biodiversity. Habitat loss and degradation due, among other things, to human activity, climate change, and pollution could be negatively affected.
which of the following is not a hardware component a) input devices b)storage devices c)operating systems d)processing
Answer:
C. Operating systems
Explanation:
Operating systems are software components, not hardware. (Think about Apple OS or Android, they are softwares that are ON the hardware, which is the physical device.)
two things every professional PowerPoint presentation should have
It has been a hectic day for the cyber security team. The team is struggling to decide to which incident to devote the most resources. You are estimating the amount of time taken to recover from each incident Which scope factor are you considering?
Answer:
This definitely is a project management question. The scope factors to be considered are:
Varying Resource Levels Time FactorCompliance with Regulatory Factors Requirements of Stakeholders Quality of Management RisksLegal FactorsExplanation:
Any element or factor that can advantageously advance a project or negatively impact it is usually referred to as Project Scope Factor.
It is considered a desirable or nice-to-have ability to be able to spot these factors to the end that the positive ones are enhanced whilst negative ones are mitigated.
Failure, for instance, to timeously and properly identify factors that can negatively impact a project is most likely to result in a negative outcome.
Cheers
I get an error message on my code below. How can I fix it?
import java.util.Scanner;
public class CelsiusToFahrenheit {
public static void main (String [] args) {
Scanner scnr = new Scanner(System.in);
double tempF;
double tempC;
System.out.println("Enter temperature in Celsius: ");
tempC = scnr.nextDouble();
System.out.print("Fahrenheit: ");
System.out.println(tempF);
return;
}
}
CelsiusToFahrenheit.java:16: error: variable tempF might not have been initialized
System.out.println(tempF);
^
1 error
Answer:
tempF = (tempC * 1.8) + 32;
Explanation:
Required
Correct the error in the program
The error is due to tempF not been initialized or being calculated
Correct the error by writing the formula for tempF before tempF was printed
tempF = (tempC * 1.8) + 32;
Writing the formula ensures that tempF is initialized with the expected equivalent value for tempC
The transmission control protocol (TCP) and internet protocol (IP) are used in Internet communication. Which of the following best describes the purpose of these protocols?
A-To ensure that communications between devices on the Internet are above a minimum transmission speed
B-To ensure that common data is Inaccessible to unauthorized devices on the Internet
C- To establish a common standard for sending messages between devices on the Intemet
D- To validate the ownership of encryption keys used in Internet communication
Answer:
To establish a common standard for sending messages between devices on the Internet, C
Explanation:
The purpose of these protocols is to establish a common standard for sending messages between devices on the Internet.
What is internet protocol?The Internet Protocol (IP) is the method or protocol by which data is sent from one computer to another on the Internet , like sending a email to one another .
Internet Protocol (IP) are guideline about how data should be sent across the internet.
Hence, the purpose of these protocols is to establish a common standard for sending messages between devices on the Internet.
Learn more about internet protocol and transmission protocol here : https://brainly.com/question/15415755
#SPJ2
Write a function (subroutine) that inputs a data value in register r0 and returns value in r0. The function returns y 5 a 1 bx 1 cx2, where a, b, and c are parameters built into the function (i.e., they are not passed to it). The subroutine also performs clipping. If the output is greater than a value d, it is constrained to d (clipped). The input in r0 is a positive binary value in the range 0 to 0xFF. Apart from r0, no other registers may be modified by this subroutine. Write ARM code to implement the following C operation.
Int s=0;
for ( i = 0; i < 10; i++) { s = s + i*i;)
Solution :
int f(int x){
[tex]\text{return a + b*x +c*x*x}[/tex];
}*/
int f([tex]\text{int R0}[/tex]){
int stack[2] = {[tex]\text{R1,R2}[/tex]};
[tex]\text{R1 = R0}[/tex];
[tex]\text{R1 = R1}\times \text{ R1}[/tex];
[tex]\text{R2 = C}[/tex];
R1 = R1 * C; /*R1 = [tex]cx^2[/tex]*/
[tex]\text{R2 = B}[/tex];
[tex]\text{R0 = R0}[/tex] * R2; /* R0 = bx */
[tex]\text{R0 = R0 + R1}[/tex]; /*R0 = [tex]bx + cx^2[/tex] */
[tex]\text{R2 = C}[/tex];
[tex]\text{R0 = R0 + R2}[/tex]; /*R0 = a+bx+cx^2 */
[tex]\text{R1 = stack[0];}[/tex]
[tex]\text{ R2 = stack[1];}[/tex]
[tex]\text{ return R0;}[/tex]
}
/*[tex]\text{ARM code to implement the following C operation}[/tex]
int s=0;
[tex]\text{for ( i = 0; i < 10; i++)}[/tex]
{ [tex]\text{s = s + i } \times i[/tex];)
*/
AREA SumSquares, code, readWrite
ENTRY
[tex]\text{MOV r0, #0}[/tex] ;loop [tex]\text{ counter i present at 0}[/tex]
MOV r1, #0 ; s = 0
Loop [tex]\text{MUL r2, r0, r0}[/tex] ;calculate i*i
[tex]\text{ADD r1, r1, r2}[/tex] ;s = s+ i*i
[tex]\text{ADDS r0, r0}[/tex], #1 ; i = i+1
[tex]\text{CMP r0}[/tex],#10 ; test for end
[tex]\text{BNE}[/tex] Loop ; [tex]\text{continue until all added}[/tex]
END
Write a program that reads an integer and determines and prints whether it's odd or even. [Hint: Use the remainder operator (%). An even number is a multiple of two. Any multiple of 2 leaves a remainder of zero when divided by 2.]
The source code, written in Java, and a sample output have been attached to this response. It contains comments explaining certain parts of the code.
A few things to note are;
(i) The Scanner class is imported to allow user's interact with the program. This is done by writing the import statement at the top of the code as follows;
import java.util.Scanner;
(ii) An object of the Scanner class is created to receive inputs from the user. The object is called input and created as follows;
Scanner input = new Scanner(System.in);
(iii) Since the user is expected to enter an integer, the nextInt() method of the Scanner object is used to receive the integer and this is saved in a variable called number. i.e
int number = input.nextInt();
(iv) A number x, is even if its remainder when divided by 2 is 0. i.e
if x % 2 = 0, then x is even. Otherwise it is odd.
The user's input received and saved in a variable called number is then checked using if and else blocks to check if it is even or not and can be written as follows;
if(number % 2 == 0){
System.out.println(number + " is even");
}else {
System.out.println(number + " is odd");
}
EXERCISE 3
A student's examination scores at the end of the session
have been listed as follows: 67, 89, 56, 34, 60, 95, 43, 55,
51, 42, 77, 44, 89, 67, 81, 70, 49, 45, 54, and 62. Write a
BASIC program to read, find the sum, and calculate the
average score for the student
Answer:
The BASIC program is as follows:
SUM = 0
FOR I = 1 TO 20
INPUT SCORES
SUM = SUM + SCORES
NEXT I
AVERAGE = SUM/20
PRINT AVERAGE
Explanation:
This initializes sum to 0
SUM = 0
This iterates through 20
FOR I = 1 TO 20
This reads each score
INPUT SCORES
This calculates the total scores
SUM = SUM + SCORES
NEXT I
This calculates the average
AVERAGE = SUM/20
This prints the calculated average
PRINT AVERAGE
Can you write a global keyword in a program with capital letters instead
small in php
Answer:
Variable names in PHP are case sensitive (including the global variables!), although function names are not.
find the summation of even number between (2,n)
Answer:
The program in python is as follows:
n = int(input("n: "))
sum = 0
for i in range(2,n+1):
if i%2 == 0:
sum+=i
print(sum)
Explanation:
This gets input n
n = int(input("n: "))
This initializes sum to 0
sum = 0
This iterates through n
for i in range(2,n+1):
This checks if current digit is even
if i%2 == 0:
If yes, take the sum of the digit
sum+=i
Print the calculated even sum
print(sum)
Write a program that reads a string and outputs the number of times each lowercase vowel appears in it. Your program must contain a function with one of its parameters as a string variable and return the number of times each lowercase vowel appears in it. Also write a program to test your function. (Note that if str is a variable of type string, then str.at(i) returns the character at the ith position. The position of the first character is 0. Also, str.length() returns the length of the str, that is, the number of characters in str.)
Answer:
Here the code is given as follows,
Explanation:
#include <iostream>
#include <string>
using namespace std;
void Vowels(string userString);
int main()
{
string userString;
//to get string from user
cout << "Please enter a string: ";
getline(cin,userString,'\n');
Vowels(userString);
return 0;
}
void Vowels(string userString)
{
char currentChar;
//variables to hold the number of instances of each vowel
int a = 0, e = 0, i = 0, o = 0, u = 0;
for (int x = 0; x < userString.length(); x++)
{
currentChar = userString.at(x);
switch (currentChar)
{
case 'a':
a += 1;
break;
case 'e':
e += 1;
break;
case 'i':
i += 1;
break;
case 'o':
o += 1;
break;
case 'u':
u += 1;
break;
default:
break;
}
}
// to print no of times a vowels appears in the string
cout << "Out of the " << userString.length() << " characters you entered." << endl;
cout << "Letter a = " << a << " times" << endl;
cout << "Letter e = " << e << " times" << endl;
cout << "Letter i = " << i << " times" << endl;
cout << "Letter o = " << o << " times" << endl;
cout << "Letter u = " << u << " times" << endl;
}
Hence the code and Output.
Please enter a string
Out of the 16 characters you entered.
Letter a = 2 times
Letter e = 1 times
Letter i = 0 times
Letter o = 1 times
Letter u = 0 times.
A method named 'withdraw' in the CheckingAccount class throws a custom exception named 'OverdrawnException'. You want to scan in the value of the withdrawal amount from a file, and you need to make sure that the scanner is closed whether the withdrawal is successful or not. Fill in the blank to complete the code below to do that.
Scamner sconfiLe -muil: try t scanFile new Scanner(myFile); myAccount.withdrow(scanFile.nextDouble)); System.out.println(oe.getMessageC); if (scanFile! null) catch (OverdrawnException oe) f th all of
scanFile.close ():
}
}
Solution :
Scanner scanFile = null;
try {
scanFile = new Scanner(myFile);
myAccount.withdraw(scanFile.nextDouble());
} catch (OverdrawnException oe){
System.out.println(oe.getMessage());
} finally {
if (scanFile != null){
scanFile.close();
}
}
What does internet prefixes WWW and HTTPs stands for?
Answer:
World Wide Web - WWW
Hypertext Transfer Protocol (Secure) - HTTPS
Explanation:
WWW means that the source and content is available to the whole world. Regarding what browser or registrar you have, the content will appear. HTTPS means Hypertext Transfer Protocol Secure. This means that it is a safe way to send info from a web system. I hope I helped you!
................. are used to summarize data (option) (a) report (b) action
i think report is right for the question
Why is Java declining in popularity?
Answer:
other languages are increasing in popularity
Explanation:
The simple main reason for this is that other languages are increasing in popularity. There are many open-source languages that are being optimized constantly and upgraded with new features. The ability for these languages to perform many tasks better than Java makes it the obvious choice when a developer is choosing a language to develop their program on. Two of these languages are Javascript and Python. Both can do everything that Java can and with less code, faster, and cleaner.
Which types of scenarios would the NETWORKDAYS function help calculate? Check all that apply.
Answer:
A. days of vacation time left
B. days of school left in the year
D. years of service someone performed
Explanation:
The NETWORKDAYS function is a built in excel function which makes it easy to calculate the number of days between two specified dates the start date and the end date, this function when applied excludes weekends from the days calculated and one has the opportunity of specifying certain holidays. With this function. The number of days till vacation, the number school days left. The NETWORKDAYS is a very versatile function.
Using the adjacency matrix implementation, extend the class GraphType (C++) to include
a Boolean EdgeExists operation, which determines whether two vertices are connected by an edge
a DeleteEdge operation, which deletes a given edge.
Create main to test EdgeExists and DeleteEdge operations.
Answer: What grade work is this i would really like to know?
Explanation:
c language.
I have to display the highest average amongst 10 students + if there are 2+ students who both have the max average I need to display them both. How can I do that?
Answer:
The program in C is as follows:
#include <stdio.h>
int main(){
int scores[10];
for(int i = 0; i<10;i++){
scanf("%d", &scores[i]); }
int max = scores[0];
for(int i = 0; i<10;i++){
if(max<scores[i]){
max = scores[i]; } }
for(int i = 0; i<10;i++){
if(max==scores[i]){
printf("%d ", scores[i]);
} }
return 0;
}
Explanation:
This declares the average scores as an integer array
int scores[10];
The following iteration gets the average score for each student
for(int i = 0; i<10;i++){
scanf("%d", &scores[i]); }
This initializes the maximum to the first index
int max = scores[0];
This iterates through the 10 elements of the array
for(int i = 0; i<10;i++){
This makes comparison to get the maximum
if(max<scores[i]){
max = scores[i]; } }
This iterates through the 10 elements of the array
for(int i = 0; i<10;i++){
This prints all maximum in the array
if(max==scores[i]){
printf("%d ", scores[i]);
} }
return 0;
}
2. 5s is a Chinese principle adapted for use in the workplace.
True or False
Answer:
A. true
Explanation:
because 5s is the.................
List the four workplace trends discussed in the lecture.
Answer:
The global economy, teamwork, technology, and diversity
Answer:
Trends in the workplace are constantly evolving and the latest trends are tough to maintain. Ten years ago, employers did not care about open businesses, advantages like ping pong tables and lunches on Fridays, or standing desks and unbounded time off. As times change, however, companies have to adopt trends to increase productivity and employee involvement in the workplace.
Explanation:
Global economy: The global economy refers to the worldwide interconnected economic activities between several countries. These economic activities could impact the countries concerned either positively or negatively.There are several features in the global economy, for example:
Globalization.International trade.International finance.Global investment.TEAMWORK: "To work together with a group of people to achieve an objective. Teamwork is often an important part of a company, as colleagues often have to work together well and to try their best in all circumstances. Work in a team means that, despite any personal conflicts between people, people will try to cooperate, use their individual abilities, and provide constructive feedback."It is selfless teamwork. It concentrates on the ultimate objective. Teamwork is based on the idea that the whole exceeds the sum of its components. It's the traditional idea of "one plus one is equal to three." Personalities and the ability to create personal conflicts are different. However, the differences between the members of the team become strengths and goals, if the whole team focuses on doing great work.
TECHNOLOGY: The skills, methods, and processes used to achieve objectives are technology. The technology to use is:
Manufacture products and servicesachieve objectives such as scientific research or sending a moon spaceshipSolve issues like sickness or starvationWe already do things, but easier.Knowledge of how to do things maybe technology. Embedding machines are examples. This enables others to use the machines without knowing how they function. By taking something, changing it, and producing results, the technological system uses the technology. They are also known as systems of technology.
Developing and using fundamental tools is the simplest form of technology. The discovery of fire and the Revolution made food more readily available. Additional inventions such as the ship and the wheel have helped people and themselves to transport goods. IT, like the printer, the phone, and the internet, has led to Globalization.
DIVERSITY:Diversity is a range of differences in the human race, ethnicity, sexuality, age, social class, physical capacity or attributes, religious or ethical values systems, nationality, and political faith.
Inclusion is participation and empowerment, which recognize everybody's inherent worth and dignity. An included university supports and promotes the sense of belonging; respects its members' talents, beliefs, backgrounds, and livelihoods. They respect and practice them.
Answer:
The global economy, teamwork, technology, and diversity
Explanation:
A Windows user is locked out of her computer, and you must log into the local administrator account Helpdesk Admin. Which would you use in the username field?
a. WHelpdeskAdmin
b. // HelpdeskAdmin
c. HelpdeskAdmin
d. /HelpdeskAdmin
e. HelpdeskAdmin
Answer:
B is the correct answer
system. Construct an ER diagram for keeping records for exam section of a college.
Type the correct answer in the box. Spell all words correctly.
To which type of domain does information on wikis belong?
The information on wikis belongs to the
domain.
Answer:
.cc type of Domain
Explanation:
:)
Answer:
The information on wikis belongs to the public domain.
Explanation:
tutorials on edmentum
LAB: Warm up: Drawing a right triangle This program will output a right triangle based on user specified height triangle_height and symbol triangle_char. (1) The given program outputs a fixed-height triangle using a character. Modify the given program to output a right triangle that instead uses the user-specified triangle_char character. (1 pt) (2) Modify the program to use a loop to output a right triangle of height triangle_height. The first line will have one user-specified character, such as % or* Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches triangle_height. Output a space after each user-specified character, including a line's last user-specified character. (2 pts) Example output for triangle_char = % and triangle_height = 5: Enter a character: Enter triangle height: 5 273334.1408726 LAB ACTIVITY 16.6.1: LAB: Warm up: Drawing a right triangle 0/3 main.py Load default template... 1 triangle_char - input('Enter a character:\n') 2 triangle_height = int(input('Enter triangle height:\n')) 3 print('') 4 5 print ('*') 6 print ("**') 7 print ("***') 8
Answer:
The modified program in Python is as follows:
triangle_char = input('Enter a character:\n')
triangle_height = int(input('Enter triangle height:\n'))
for i in range(triangle_height):
print(triangle_char * (i+1))
Explanation:
This gets the character from the user
triangle_char = input('Enter a character:\n')
This gets the height of the triangle from the user
triangle_height = int(input('Enter triangle height:\n'))
This iterates through the height
for i in range(triangle_height):
This prints extra characters up to the height of the triangle
print(triangle_char * (i+1))
Here's the modified program that incorporates the requested changes:
python
Copy code
triangle_char = input('Enter a character:\n')
triangle_height = int(input('Enter triangle height:\n'))
print('')
for i in range(1, triangle_height + 1):
line = triangle_char * i + ' ' * (triangle_height - i)
print(line)
This program uses a loop to iterate from 1 to triangle_height. In each iteration, it creates a line by concatenating triangle_char repeated i times with spaces (' ') repeated (triangle_height - i) times. The resulting line is then printed.
For example, if the user enters % as the character and 5 as the height, the output will be to make sure to maintain the indentation properly in your code for it to work correctly.
Learn more about python on:
https://brainly.com/question/30391554
#SPJ6
Which XXX declares a student's name. public class Student { XXX private double myGPA; private int myID; public int getID() { return myID; } } Group of answer choices String myName; public String myName; private myName; private String myName;
Which XXX declares a student's name.
public class Student {
XXX
private double myGPA;
private int myID;
public int getID() {
return myID;
}
}
Group of answer choices
a. String myName;
b. public String myName;
c. private myName;
d. private String myName;
Answer:private String myName;
Explanation:To declare a student's name, the following should be noted.
i. The name of the student is of type String
ii. Since all of the instance variables (myGPA and myID) have a private access modifier, then myName (which is the variable name used to declare the student's name) should be no exception. In other words, the student's name should also have a private access.
Therefore, XXX which declares a student's name should be written as
private String myName;
Option (a) would have been a correct option if it had the private keyword
Option (b) is not the correct option because it has a public access rather than a private access.
Option (c) is not a valid syntax since, although it has a private access, the data type of the variable myName is not specified.
Option (d) is the correct option.
When performing the ipconfig command, what does the following output line depict if found in the tunnel adapter settings?
IPv6 Address: 2001:db8:0:10:0:efe:192.168.0.4
a. IPv6 is disabled.
b. The addresses will use the same subnet mask.
c. The network is not setup to use both IPv4 and IPv6.
d. IPv4 Address 192.168.0.4 is associated with the global IPv6 address 2001:db8:0:10:0:efe
Answer:
d. IPv4 Address 192.168.0.4 is associated with the globe IPv6 address 2001:db8:0:10:0:efe
Explanation:
The adapter setting will be associated with the global IP address. When Ipconfig command is operate the IP address finds the relevant domain and then address will use a different subnet. The network will use both IPv4 and IPv6 subnets in order to execute the command.
In the tunnel adapter settings, when performing the ipconfig command, the given output line depicts: D. IPv4 Address 192.168.0.4 is associated with the global IPv6 address 2001:db8:0:10:0:efe.
What is a tunnel adapter?A tunnel adapter can be defined as a virtual interface which is designed and developed to encapsulate packets as a form of tunnel or virtual private network (VPN) protocol while sending them over another network interface.
In Computer networking, an output line of "IPv6 Address: 2001:db8:0:10:0:efe:192.168.0.4" in the tunnel adapter settings simply means that an IPv4 Address 192.168.0.4 is associated with the global IPv6 address 2001:db8:0:10:0:efe.
Read more on IP address here: https://brainly.com/question/24812743
Write a python program that will accept monthly salary amounts greater than zero but less
than or equal to 400,000.00 until the user enters the character ‘e’. After the user
enters the character ‘e’, calculate the net pay of all salaries by deducting income tax at
a rate of 25%, pension of 5% and housing contribution of 2% from each salary
entered. Additionally, print the number of salaries that were entered in the program
along with the number of salaries that exceed 300,000.00
write a python program
The English alphabet has 26 letters starting from A and ending with Z. If we map the
first 26 numbers i.e 1 through to 26 to each letter in the alphabet, we could encode
messages using numbers. For example, 123 could be represented as ‘ABC’ and 26 could
be the letter ‘Z’. Write a program that accepts 10 integers from the user ranging from 1
- 26. After accepting the values, the program should determine and print the
corresponding letters.
It won't save the answer. Maybe I can give it to you in the comment.
You can message me if you want. I cannot post the answer in the comment too:(