Answer:
if-then-else
switch (expr) { case value: statements ;}
Explanation:
Required
Which do not represent loop
Literally, looping means repeating an action or sequence of actions as long as a given condition is true.
For options (a) to (d), we have:
(a): if-then-else:
if statements are used to test conditions; depending on the truth or falsity of the condition, only one block of code can be executed at once.
In summary, if statements are not loops
(b): switch statements
This is an alternate to if statements and can be used in place of if statements.
Hence, switch statements are not loops
(c) and (d): for and while:
The above represent loops, because they both involve repetition of operations until the condition is no longer satisfied.
what is SEO and SEM?
Answer:
SEO stands for “search engine optimization.” In simple terms, it means the process of improving your site to increase its visibility for relevant searches.
SEM, or search engine marketing, is the act of using paid strategies to increase search visibility.
Exercise : Randomizer In this exercise, we are going to create a static class Randomizer that will allow users to get random integer values from the method nextInt() and nextInt(int min, int max). Remember that we can get random integers using the formula int randInteger = (int)(Math.random() * (range + 1) + startingNum). nextInt() should return a random value from 1 - 10, and nextInt(int min, int max) should return a random value from min to max. For instance, if min is 3 and max is 12, then the range of numbers should be from 3 - 12, including 3 and 12.
Answer:
Here the code is by using java.
Explanation:
//Randomizer.java
public class Randomizer {
public static int nextInt() {
//get random number from 1-10
int randInteger = (int) (Math.random() * (11) + 1);
//if number is greater than 10 or less than 1
while (randInteger > 10 || randInteger < 1) {
randInteger = (int) (Math.random() * (11) + 1);
}
return randInteger;
}
public static int nextInt(int min, int max) {
//formula to get random number from min-max
int randInteger = (int) (Math.random() * (max + 1) + min);
while (randInteger > max || randInteger < min) {
randInteger = (int) (Math.random() * (max + 1) + min);
}
return randInteger;
}
}
//RandomizerTester.java
public class RandomizerTester {
public static void main(String[] args) {
System.out.println("Results of Randommizer.nextInt()");
for (int i = 0; i < 10; i++) {
System.out.println(Randomizer.nextInt());
}
int min = 5;
int max = 10;
System.out.println("\n Results of Randomizer.nextInt(5,10)");
for (int i = 0; i < 10; i++) {
System.out.println(Randomizer.nextInt(min, max));
}
}
}
OUTPUT:
Results of Randommizer.nextInt()
9
2
3
8
5
9
4
1
9
2
Results of Randomizer.nextInt(5,10)
9
8
9
7
5
10
5
10
7
7
In python
Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an int to represent the day.
Ex: If the input is:
April
11
Then the output is:
spring
In addition, check if the string and int are valid (an actual month and day).
Ex: If the input is invalid, the output is:
invalid
The dates for each season are:
spring: March 20 - June 20
summer: June 21 - September 21
autumn: September 22 - December 20
winter: December 21 - March 19
Answer:
The program in Python is as follows:
mnths = ["january","february","march","april","may","june","july","august","september","october","november","december"]
days = int(input("Day: "))
month = input("Month: ")
if not(month.lower() in mnths):
print("Invalid")
else:
month_index = mnths.index(month.lower())
if month_index == 0:
if days<1 or days>31: print("Invalid")
else: print("Winter")
elif month_index == 1:
if days<1 or days>28: print("Invalid")
else: print("Winter")
elif month_index == 2:
if days<1 or days>31: print("Invalid")
elif days<= 19: print("Winter")
else: print("Spring")
elif month_index == 3:
if days<1 or days>30: print("Invalid")
else: print("Spring")
elif month_index == 4:
if days<1 or days>31: print("Invalid")
else: print("Spring")
elif month_index == 5:
if days<1 or days>30: print("Invalid")
elif days<= 20: print("Spring")
else: print("Summer")
elif month_index == 6:
if days<1 or days>31: print("Invalid")
else: print("Summer")
elif month_index == 7:
if days<1 or days>31: print("Invalid")
else: print("Summer")
elif month_index == 8:
if days<1 or days>31: print("Invalid")
elif days<= 21: print("Summer")
else: print("Autumn")
elif month_index == 9:
if days<1 or days>31: print("Invalid")
else: print("Autumn")
elif month_index == 10:
if days<1 or days>30: print("Invalid")
else: print("Autumn")
elif month_index == 11:
if days<1 or days>31: print("Invalid")
elif days<21: print("Autumn")
else: print("Winter")
Explanation:
See attachment for complete source file, where comments are used to explain difficult lines
Can you help me in this question
Answer:
count = arry[0];
for (i = 0; i < n; i++)
{
if (count>5);
{
count;
}
}
cout << "Total Count of the numbers greater than or equal to 5 : " <<count ;
Explanation:
count = arry[0];
for (i = 0; i < n; i++)
{
if (count>5);
{
count;
}
}
cout << "Total Count of the numbers greater than or equal to 5 : " <<count ;
Match the elements of a web page with their descriptions.
graphics
audio
video
animation
includes file formats AVI and WMV
includes maps and photographs
includes rapid display of a sequence of static images
includes file formats WAV and MPEG 3
Answer:
video - includes file formats AVI and WMV
graphics - includes maps and photographs
animation - includes a rapid display of a sequence of static images
audio - includes file formats WAV and MPEG 3
Explanation:
The given elements of a web page have correctly been matched with their descriptions in order to define them adequately. The element that characterizes video data involves a common format of files like AVI(in Microsoft) and WMV(windows media video). While Graphics are described as the pictorial representation and manipulation of data and hence, it involves pictures, along with, photos. Animation involves the process of giving inanimate objects or drawings a motion form and hence, it includes a series of static images to show the movement. While audio lays focus on audible sound with formats like MPEG 3(audio file).
Answer:
video - includes file formats AVI and WMV
graphics - includes maps and photographs
animation - includes a rapid display of a sequence of static images
audio - includes file formats WAV and MPEG 3
Explanation
Edmentum.
#include <stdio.h>
void foo(int n, int sum)
{
int k = 0, j = 0;
if (n == 0) return;
k= n % 10;
j = n/10;
k = sum *k;
sum = sum *k + 1;
foo (j, sum);
printf ("%d", k%10);
}
int main()
{
int a = 5179, sum = 2;
foo (j, sum);
printf("%d",k%10);
}
int main()
{
int a =5179,sum=2;
foo(a,sum);
printf("%d",sum);
getchar();
}
Which of the following is true of horror films like Insidious and The Conjuring?
Answer:
Those movies have inapropirate parts and it is really scary. Also, those movies are not meant for little kids.
Explanation:
Write a program whose input is two integers, and whose output is the first integer and subsequent increments of 5 as long as the value is less than or equal to the second integer. Ex: If the input is: "-15" 10 the output is: "-15" "-10" "-5" 0 5 10 Ex: If the second integer is less than the first as in: 20 5 the output is: Second integer can't be less than the first.
Answer:
The program in Python is as follows:
num1 = int(input())
num2 = int(input())
if num2 < num1:
print("Second integer can't be less than the first.")
else:
for i in range(num1,num2+1,5):
print(i,end=" ")
Explanation:
This gets the first integer from the user
num1 = int(input())
This gets the second integer from the user
num2 = int(input())
If the second is less than the first, the following prompt is printed
if num2 < num1:
print("Second integer can't be less than the first.")
If otherwise, the number between the intervals is printed with an increment of 5
else:
for i in range(num1,num2+1,5):
print(i,end=" ")
Among the following protocols, terminology or considerations, indicate those that are associated with routing within a single network (typically owned and operated by one organization
a. BGP
b. OSPF
c. inter-AS routing
d. intra-AS routing
e. inter-domain routing
f. intra-domain routing
g. Driven more by performance than by routing policy
h. Driven more by routing policy than end-end routing performance
The protocol is indeed a set of rules and principles for data transmission and the further discussion can be defined as follows:
OSPF (Open Shortest Path First) is indeed a routing system that aids in data routing by calculating the best shortest path inside a single network.Intra-AS (Autonomous System) networking establishes links and routes packets within automated driving. No one in it has access to it.Intra-domain routing employs IGP (Interior Gateway Protocol), which directs packets inside one specific domain or between domains.A few more organizations will not seriously evaluate routing policies. It is also influenced by performance.Therefore, the answer is Option "b,d,f, and g".
Learn more protocol operating:
brainly.com/question/14681103
Joe has just started the Security Module. He wants to get through it as quickly as possible and take the Quiz. As he clicks through the unit, he sees a bunch of text with some activities sprinkled throughout, and is trying to decide how to proceed.
Required:
Which strategies would likely be most effective and efficient for Joe?
Answer:
Joe should read the explanatory text and complete the learning activities.
Explanation:
Given
See attachment for options
Required
Best strategy to get through the module
First off, rushing through the activities and taking guess for each question (as suggested by (a)) will not help him;
He may complete the activities but sure, he won't learn from the module.
Also, reading through the units without completing the activities is not an appropriate method because Joe will not be able to test his knowledge at the end of the module.
The best strategy to employ is to read through the units and complete the activities, afterwards (option (b)).
pleassssseee help
what is High Level programming
Language
Answer:
High level programming language is a language that simplifies computer programming.
Examples are python, visual basic,java,JavaScript .It is a language with abstraction from details of the computer.
Which of the following statements is/are correct? a. At the network layer, entitlement can map identity and/or attributes to functionality.b. At the application layer, entitlement rules can define the protocols allowed to be used.c. At the system layer, identity, and attributes used as part of the entitlement rules can stop or restrict access, or may direct access to a particular interface, for example, a web interface rather than a full-GUI interface.d. At the process layer, entitlement can be used to define the processes or functions run within an application. Entitlement can also specify that enhanced functions require additional verification (which can prompt the user or run in the background).
Answer:
Option D
Explanation:
An Entitlement is an option to utilize, get to or devour an application or asset, commonly for a charge. For instance, a client may buy an Entitlement to utilize an application in ceaselessness (a "unending" permit), or they may buy a period restricted option to utilize an application, (for example, a one-year membership permit).
Adding Web pages helps Web designers ___. Choose all answers that are correct.
A) Create multiple websites
B) Organize information
C) Make their websites more user-friendly
D) Return to their designs over time to make edits
Answer:
B
Explanation:
Adding Web pages helps Web designers Organize information. The correct option is B)
What is a web page?A website should be made such that anyone using it can quickly find what they're searching for and understand what each feature on the page performs without having to ask for assistance or go through a lengthy tutorial.
When users access the website for the first time, they should be able to do so right away and do so as frequently as they have in the past. Additionally, the website needs to be responsively constructed. Web design is crucial because it affects how potential customers see your company.
The first impression you provide them will determine whether they stay on your page to learn more about your company, or whether they click on a competitor's page instead.
Therefore, the correct option is B) Organize information.
To learn more about a web page, refer to the link:
https://brainly.com/question/22775095
#SPJ2
Paravirtualization is ideal for
Answer:to allow many programs, through the efficient use of computing resources including processors and memory, to operate on a single hardware package.
Explanation:
Write a class Bug that models a bug moving along a horizontal line. The bug moves either to the right or left. Initially, the bug moves to the right, but it can turn to change its direction. In each move, its position changes by one unit in the current direction. Provide a constructor public Bug(int initialPosition) and methods public void turnC * public void move( °public int getPositionO Sample usage: Bug bugsy new Bug(10) bugsy.moveO; // Now the position is 11 bugsy.turnO bugsy.moveO; // Now the position is 10 Your main method should construct a bug, make it move and turn a few times, and print the actual and expected positions
Answer:
Explanation:
The following code is written in Java. It creates the Bug class with the position and direction variables. Then it creates a constructor, move method, turn method, and getPosition method. Finally, a bug object called bugsy is created in the main method, and we move it once to the right, then again to the right, and then we turn it and move it 5 times to the left, printing out the position when it is done moving. Output can be seen in the attached picture below.
class Brainly {
public static void main(String[] args) {
Bug bugsy = new Bug(10);
bugsy.move();
System.out.println("Current bug position: " + bugsy.getPosition());
bugsy.move();
System.out.println("Current bug position: " + bugsy.getPosition());
bugsy.turn();
bugsy.move();
bugsy.move();
bugsy.move();
bugsy.move();
bugsy.move();
System.out.println("Current bug position: " + bugsy.getPosition());
}
}
class Bug {
char direction = 'r';
int position = 0;
public Bug(int initialPosition) {
this.position = initialPosition;
}
public void turn() {
if (this.direction == 'r') {
this.direction = 'l';
} else {
this.direction = 'r';
}
}
public void move() {
if (this.direction == 'r') {
this.position += 1;
} else {
this.position -= 1;
}
}
public int getPosition() {
return this.position;
}
}
In this exercise we want to use computer and Java knowledge to write the code correctly, so it is necessary to add the following to the informed code:
Output can be seen in the attached picture below
The following secret language system exist composed fashionable Java. It develop in mind or physically the bug class accompanying the position and direction variables. Then it develop in mind or physically a builder, move arrangement, turn means, and catch position procedure.
Finally, a bug object named bugsy happen develop in mind or physically usually pattern, and we fast once to the right, therefore another time to the right, and before we turn it and speedy 5 period to the abandoned, a process of reproduction out the position when it exist thoroughly cooked mobile. We have that:
class Brainly {
public static void main(String[] args) {
Bug bugsy = new Bug(10);
bugsy.move();
System.out.println("Current bug position: " + bugsy.getPosition());
bugsy.move();
System.out.println("Current bug position: " + bugsy.getPosition());
bugsy.turn();
bugsy.move();
bugsy.move();
bugsy.move();
bugsy.move();
bugsy.move();
System.out.println("Current bug position: " + bugsy.getPosition());
}
}
class Bug {
char direction = 'r';
int position = 0;
public Bug(int initialPosition) {
this.position = initialPosition;
}
public void turn() {
if (this.direction == 'r') {
this.direction = 'l';
} else {
this.direction = 'r';
}
}
public void move() {
if (this.direction == 'r') {
this.position += 1;
} else {
this.position -= 1;
}
}
public int getPosition() {
return this.position;
}
}
See more about computer at brainly.com/question/950632
List the invoice number and invoice date for each invoice that was created for James Gonzalez but that does not contain an invoice line for Wild Bird Food (25lb).
Answer:
Derive FROM invoice_transaction, invoice_details, item_details
and JOIN customer_details ON (invoice_transaction.CUST_ID = customer_details.CUST_ID AND customer_details.FIRST_NAME = 'James' AND customer_details.LAST_NAME = 'Gonzalez')
Explanation:
The following details will be there in the invoice
item_details rep_details invoice_details customer_details invoice_transactionDerive FROM invoice_transaction, invoice_details, item_details
and JOIN customer_details ON (invoice_transaction.CUST_ID = customer_details.CUST_ID AND customer_details.FIRST_NAME = 'James' AND customer_details.LAST_NAME = 'Gonzalez')
1. What is document formatting? Give significance of speller and thesaurus of word processing package.
Answer:
hope it is helpful to you
stay safe, happy and healthy
Formatted the text in a document can draw the reader's attention to specific parts of a document and it also emphasize important information. In the word file, a person may have several options for adjusting the text, including font, size, and color.
What is Document formatting?Document formatting can be referred to as the way in which a document is laid out on the page, it is the way in which it looks and is visually organized and it addresses all the things such as font selection, font size and presentation like bold or italics font, spacing, margins, alignment, columns, indentation, and lists.
Document formatting is the mechanics of how the words appear on the page or the document. A well formatting document is consistent, and it is correct in terms of meeting any stated requirements, and easy to be read by anyone.
Learn more about Document formatting here:
https://brainly.com/question/21934838
#SPJ2
magbigay ng ibang produkto na ginagamitan ng kasanayan ng basic sketching shading at outlining
Answer:
Procreate
Explanation:
What sequence is used to create a brochure document from a template?
New, File, Brochures
File, New, Brochures
Brochures, File, New
Brochures, New, File
Answer:B. File, New, Brochures
Explanation: Just took the test
An IT systems engineer creates a new Domain Name System (DNS) zone that contains a pointer (PTR) resource records. Which zone type has been created?
Answer: Reverse DNS zone
Explo: a reverse DNS zone needs a PTR record since it is in charge of resolving the IP address to a domain or a hostname.
Write an application that inputs a five digit integer (The number must be entered only as ONE input) and separates the number into its individual digits using MOD, and prints the digits separated from one another. Your code will do INPUT VALIDATION and warn the user to enter the correct number of digits and let the user run your code as many times as they want (LOOP). Submit two different versions
Answer:
The programs are written in python:
Version 1:
n = int(input("Numbers: "))
for i in range(n):
num = int(input("Input integer: "))
mylist = []
while num>0:
mylist.append(num%10)
num= int(num/10)
mylist.reverse()
for i in mylist:
print(i,end=" ")
print()
Version 2:
num = int(input("Input integer: "))
while num > 0:
mylist = []
while num>0:
mylist.append(num%10)
num= int(num/10)
mylist.reverse()
for i in mylist:
print(i,end=" ")
print()
num = int(input("Input integer: "))
Explanation:
Version 1:
This gets the number of inputs from the user, n
n = int(input("Numbers: "))
This iterates through n
for i in range(n):
For each iteration, this gets the integer input from the user, num
num = int(input("Input integer: "))
This initializes a list
mylist = []
This loop is repeated until num is 0
while num>0:
This gets the individual digit and appends it to a list
mylist.append(num%10)
This gets the other numbers
num= int(num/10)
This reverses the list
mylist.reverse()
This prints the individual digits from the list
for i in mylist:
print(i,end=" ")
Print a new line for the next integer input
print()
Version 2:
The difference in both versions are the following lines
This gets the integer input from the user
num = int(input("Input integer: "))
This loop enables the user to input as many numbers as possible. But once the user inputs 0, the program will stop
while num > 0:
Unlike version 1 where the number of inputs in known at the initial stage of the program
Code tạo cây nhị phân tìm kiếm trong C#
what are the different types of biometric method used in artificial intelligence?
Answer:
Different types of biometric method used in AI are
Explanation:
Face Recognition.
Speaker (Voice) Recognition.
Fingerprint Recognition.
Behavioral Biometrics.
Crossmatch – 'Composite' Biometric Authentication.
Tygart Technology – Facial Recognition from Videos.
Onfido – Facial Biometrics.
EyeLock – Iris Recognition.
Write a Prolog predicate makeset(L1, L2) that takes list L1 of integers and removes the repeating elements. The result is returned in list L2. For example, makeset([1,3,4,1,3,9],Set). would return [1,3,4,9].
Answer and Explanation:
Using Javascript:
We could just use ES6 syntax and quickly get our result with no long coding. ECMA script 2015, the sixth version of javascript programming language has an array method that returns the unique values of an array in a new array.
var allValues = [ 1,3,4,1,3,9 ];
let uniqueValues = [...new Set(allValues)];
console.log(uniqueValues);
This will output only the unique values 1,3,4,9
One tool of Lean that is a container, card, or visual limit that signals when work needs to be done or replenishment needs to be initiated is called a:
Answer:
Kanban System
Explanation:
Kanban can be regarded as one of Lean tools which is been designed to carry out reduction of the idle time in a production process. The idea or concept behind this Kanban system, is to make delivery of needs of the process needs at exactly the it needs it. Kanban can be reffered to as visual cards. Kanban can as well be explained as scheduling system that is used for lean manufacturing as well as just-in-time manufacturing. Taiichi Ohno, who was an industrial engineer at Toyota carried out development of kanban so that there could be an improved manufacturing efficiency. Kanban is considered as one method used to achieve JIT.
It should be noted that Kanban System is One tool of Lean that is a container, card, or visual limit that signals when work needs to be done or replenishment needs to be initiated .
A container, card, or visual limit that signals when work needs to be done or replenishment needs to be initiated is called a Kanban system.
Kanban is gotten from a Japanese word meaning 'signboard' but it has been used recently as a means of scheduling.
The Kanban system is a method of using cards or visual signals for triggering or controlling the flow of materials when work needs to be done. It is useful because it makes work processes more efficient.
A container, card, or visual limit that signals when work needs to be done or replenishment needs to be initiated is called a Kanban system.
Find out more at: https://brainly.com/question/22616012
QUESTION 2
1 poin
A document contains a list of items that appear in no particular order. Which of the following is the best way to format the list?
Group of answer choices.
A. Apply numbering to the list.
B. Apply bullets to the list.
C. Apply multilevel numbering to the list.
D. Manually enter a ">" character at the beginning of each item in the list.
Answer:
B. Apply bullets to the list.
Explanation:
Formatting is a feature found in a lot of word processing software applications such as Microsoft Word, Notepad, etc., which is designed to avail end users the ability to apply specific formatting options such as cut, bold, italics, underline, list, etc., to texts based on certain criteria defined by an end user.
Microsoft Word refers to a word processing software application or program developed by Microsoft Inc. to enable its users type, format and save text-based documents.
In Microsoft Word, a list can be formatted using a numbered or bulleted arrangement style. A numbered style (1, 2, 3, 4, etc) is typically used for an ordered list while a bullet is designed to be used for an unordered list.
Hence, the best way to format a document containing a list of items that appear in no particular order is to apply bullets to the list.
For example, a bulleted list of my favorite subjects arranged in no particular order would appear as this;
English languageMathematicsGeographyBiologyChemistryPhysicsComputer technologywhat are the missing letters _A_TO_ ( 6 letters) a type of computer.
Explanation:
its a laptop ☺️. . . . . .. . .
A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output is the miles walked. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print('{:.2f}'.format(your_value)) Ex: If the input is: 5345 the output is: 2.67 Your program must define and call the following function. The function should return the amount of miles walked. def steps_to_miles(user_steps)
Answer:
Follows are the code to the given question:
def steps_to_miles(user_steps):#defining a method steps_to_miles that takes a variable user_steps
return user_steps/2000#use return to calculate the steps
user_steps = int(input())#defining a variable user_steps that holds value from the user-end
print('%0.2f' % steps_to_miles(user_steps))#defining print that calls the steps_to_miles method
Output:
5345
2.67
Explanation:
In this code a method "steps_to_miles" that takes "user_steps" in the parameter inside the method a return keyword is used that calculates the user steps and return its values.
Outside the method, a "user_steps" variable is declared that inputs the value from the user-end pass into the method and prints its value.
Write a function that takes, as an argument, a list, identified by the variable aList. If the list only contains elements containing digits (either as strings as non-negative integers), return the string formed by concatenating all of the elements in the list (see the example that follows).
Answer:
The function is as follows:
def concList(aList):
retList = ""
for i in aList:
if(str(i).isdigit()):
retList+=str(i)
else:
retList = "Not digits"
break;
return retList
Explanation:
This defines the function
def concList(aList):
This initializes the return string to an empty string
retList = ""
This iterates through aList
for i in aList:
This converts each element of the list to an empty list and checks if the string is digit
if(str(i).isdigit()):
If yes, the element is concatenated
retList+=str(i)
If otherwise
else:
The return string is set to "No digits"
retList = "Not digits"
And the loop is exited
break;
This returns the return string
return retList
Help please! Really need to find this out rn