Answer:
The Data Entry is Restricted to Specific Fields, Reducing Errors
Explanation:
Answer:
D
Explanation:
edge2021
NO LINKS
write a shell script to find the sum of all integers between 100 and 200 which are divisible by 9
Answer:
#!/usr/bin/env bash
for num in {100..200}
do
if [ $((num % 9)) -eq 0 ]
then
((sum += num))
fi
done
echo $sum
Explanation:
The output will be 1683.
True or false you cannot get a computer virus is you instal antivirus
Answer: F
Explanation: There are many ways hackers can get into your computer, and many ways can bypass an antivirus so it is False
Please Fix This For Me
print ("Please enter a number between 1 and 100")
n = input
if = n < 1 and n > 100:
if = (n // 2 == 0):
print (n, "is even")
if = (n // 3 == 0):
print (n, "is odd")
else:
print("You have not entered a number between 1 and 100.")
Answer:
The correction is as follows:
n = int(input("Please [tex]enter\ a[/tex] [tex]number\ between\ 1[/tex] and 100: "))
if n < 1 or n > 100:
print("You [tex]have\ not[/tex] entered a [tex]number\ between\ 1[/tex] and 100.")
elif n % 2 == 0:
print (n, "is even")
else:
print (n, "is odd")
Explanation:
See attachment for explanation
3) Many people use the World Wide Web (Web) regularly, and search engines
provide vital access to Web resources. Textual and multimedia content is
accessible via web search engines. Informational, navigational, and
transactional intent are the three types of user intent classified for Web
searching. What is meant by navigational, informational, and transactional
search? Provide a comprehensive explanation with examples for each.
Answer: See explanation
Explanation:
Navigational search - This occurs when the user is looking for a certain website. Then the name of the website will be entered into the search bar.
Informational search - This occurs when the user wants to get a certain information. For example, if user enters "what is computer" into the search bar, different results relating to the word "computer" will be gotten.
Transactional search - This occurs when the user wants a website that is interactive it which possess more interaction. An example is when the user wants to buying something, register for something or maybe download something
Hubs connect network hosts in which configuration?
Answer:
A high availability hub is not required to enable or use the self-describing agent. You can optionally configure a high availability hub for improved availability and recovery if the hub fails. Network Layer – The network layer is responsible for creating a routing table, and based on the routing table, forwarding the input request. Some of the Devices used in the Network Layer are, Routers: A router is a switch-like device that routes/forwards data packets based on their IP addresses.
Explanation:
(hope this helps can i plz have brainlist :D hehe)
Which of the following is not part of the four ways you can avoid problems with email communication?
a.
Be brief.
b.
Proofread your message.
C.
Reply right away after you get an email.
d.
Seek other ways to relay your message
Answer:
d is the correct answer for this problem
Suppose a program is supposed to reverse an array. For example, if we have the array arr = {1, 2, 3, 4, 5}, after reversing the array we would have arr = {5, 4, 3, 2, 1}.
Most of the code for the program is shown here:
Const int SIZE = 5;
int arr[SIZE] = {1, 2, 3, 4, 5};
int firstindex =0, lastindex = SIZE-1, temp;
1 _______________________________
{
temp = arr[firstindex];
arr[firstindex] = arr[lastindex];
arr[lastindex] = temp;
firstindex++;
lastindex--;
}
All of the following options below could be correctly inserted at line 1 in the code shown above EXCEPT:
a. while(firstindex < lastindex)
b. while(firstindex <= lastindex)
c. for(int i=0; i<(SIZE/2-1); i++)
d. for(int i=0; i<(SIZE/2); i++)
Answer:
The answer is "Choice C".
Explanation:
In this question, the choice C is correct because all the other options will the output "5 4 3 2 1" and it will given "5 2 3 4 1" as output which is defined in the attached file. please find it.
5. A restore program generally is included with what type of utility?
O A. Screen saver
O B. Antivirus
O C. Uninstaller
D. Backup
6. The interface that allows interaction with menus, and visual images such as
buttons:
A. Touchscreen user interface
O B. Menu driven Interface
O C. Graphical user interface
O D. Command line interface
Find the reference angle of the angle = 850°
Answer:
magine a coordinate plane. Let’s say we want to draw an angle that’s 144° on our plane. We start on the right side of the x-axis, where three o’clock is on a clock. We rotate counterclockwise, which starts by moving up. We keep going past the 90° point (the top part of the y-axis) until we get to 144°. We draw a ray from the origin, which is the center of the plane, to that point. Now we have a ray that we call the terminal side. But we need to draw one more ray to make an angle. We have a choice at this point. Our second ray needs to be on the x-axis. If we draw it from the origin to the right side, we’ll have drawn an angle that measures 144°. If we draw it to the left, we’ll have drawn an angle that measures 36°. This second angle is the reference angle. It’s always the smaller of the two angles, will always be less than or equal to 90°, and it will always be positive. Here’s an animation that shows a reference angle for four different angles, each of which is in a different quadrant. Notice how the second ray is always on the x-axis.
Explanation:
Using a tag, set the color to green for all tags.
Answer:
<style>
p {
background-color: rgb(255, 0, 0);
}
h1 {
background-color: rgb(0, 255, 0);
}
ol {
background-color: rgb(97,51,47);
}
</style>
Explanation:
Put this at the top of your code. It should target the paragraph tag, the header h1 tag, and the Ordered List (OL) tag individually and set their background colors respectively.
It's been a while since I've done CSS so you might have to tweak the syntax a bit, but it should look something like that.
You have been given an encrypted copy of the Final exam study guide here, but how do you decrypt and read it???
Along with the encrypted copy, some mysterious person has also given you the following documents:
helloworld.txt -- Maybe this file decrypts to say "Hello world!". Hmmm.
hints.txt -- Seems important.
In a file called pa11.py write a method called decode(inputfile,outputfile). Decode should take two parameters - both of which are strings. The first should be the name of an encoded file (either helloworld.txt or superdupertopsecretstudyguide.txt or yet another file that I might use to test your code). The second should be the name of a file that you will use as an output file. For example:
decode("superDuperTopSecretStudyGuide.txt" , "translatedguide.txt")
Your method should read in the contents of the inputfile and, using the scheme described in the hints.txt file above, decode the hidden message, writing to the outputfile as it goes (or all at once when it is done depending on what you decide to use).
Hint: The penny math lecture is here.
Another hint: Don't forget about while loops...
Mac hint: use encoding="utf-8" in your file open functions, like this:
Mac hint: use encoding="ascii" in your file open functions, like this:
fin = open(input_file,"r",encoding="ascii")
Answer:
You use a decoder
Explanation:
You can find one on an internet browser
When identifying who will send a presentation, what are the two types of audiences?
Answer:
Explanation:Demographic audience analysis focuses on group memberships of audience members. Another element of audience is psychographic information, which focuses on audience attitudes, beliefs, and values. Situational analysis of the occasion, physical setting, and other factors are also critical to effective audience analysis.
Hi guys, I am in need of help. I have an HTML assignment due today at 11:59 PM and I have to work with video and animation. I am having trouble with working on keyframes because when I run my program, my video remains the same size. I do not know what I am doing wrong. I have attached a picture of my code. Please help me ASAP.
Answer:
Nothing much is wrong
Explanation:
Nothing much is wrong with it but then again I'm a full on computer geek, I assume you need to go back and re-read it and edit whatever you feel is wrong or incorrect it's like a gut feeling and you will have doubts on certain parts of what you are doing
what can a user modify on a business card using the Edit Business card in the dialog box?
9.19 LAB: Words in a range (lists) Write a program that first reads in the name of an input file, followed by two strings representing the lower and upper bounds of a search range. The file should be read using the file.readlines() method. The input file contains a list of alphabetical, ten-letter strings, each on a separate line. Your program should output all strings from the list that are within that range (inclusive of the bounds). Ex: If the input is:
Answer:
9.2. Métodos del Objeto File (Python para principiantes)
Explanation:
Consider the following method:
public static String joinTogether(int num, String[] arr)
{
String result = "";
for (String x : arr)
{
result = result + x.substring(0, num);
}
return result;
}
The following code appears in another method in the same class:
String[] words = {"dragon", "chicken", "gorilla"};
int number = 4;
System.out.println(joinTogether(number, words));
What is printed when the code above is executed?
a. dragonchickengorilla
b. drachigor
c. dragchicgori
d. dragochickgoril
e. There is an error in the program, it does not run
Answer: b.
Explanation:
63. Name the 4 main lights & and their primary purpose.
Create a class called StockTester that has the following fucntionality. a. Create a main method with an ArrayList named dataStock that stores objects of type Stock. b. Add code that reads the content of StockInfo.csv and places it in dataStock. c. Create a new Stock object named newStock using the constructor in Question 1. Set the values to the following. Stock name: Gamma, Stock purchase date: 03/01/20, Number of Shares of Stock: 100, Stock Price: 50.5. Add newStock to dataStock. d. Print the information associated with newStock using printStock. e. Using the method requiredReturn, determine the rate of return required for your stock in Pitsco to have a value of $4,000 in 3 years. Print the result to the screen so that the user can clearly read the result.
Solution :
public class [tex]$\text{Stock}$[/tex] {
private [tex]$\text{String}$[/tex] stockName, [tex]$\text{purchaseDate}$[/tex];
private [tex]$\text{int}$[/tex] nShares;
private [tex]$\text{double}$[/tex] price;
public [tex]$\text{Stock}()$[/tex]
{
this.stockName = "";
this.purchaseDate = "";
this.nShares = 0;
this.price = 0.0;
}
public Stock(String stockName, String purchaseDate, int nShares, double price) {
this.stockName = stockName;
this.purchaseDate = purchaseDate;
this.nShares = nShares;
this.price = price;
}
public String getStockName() {
return stockName;
}
public void setStockName(String stockName) {
this.stockName = stockName;
}
public String getPurchaseDate() {
return purchaseDate;
}
public void setPurchaseDate(String purchaseDate) {
this.purchaseDate = purchaseDate;
}
public int getnShares() {
return nShares;
}
public void setnShares(int nShares) {
this.nShares = nShares;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
this.price = price;
}
public String toString()
{
return("Stock name: " + this.stockName + "\nPurchase date: " + this.purchaseDate
+ "\nNumber of shares of stock: " + this.nShares + "\nPrice: $" + String.format("%,.2f", this.price));
}
public void printStock()
{
System.out.println("Stock name: " + this.stockName + "\nPurchase date: " + this.purchaseDate
+ "\nNumber of shares of stock: " + this.nShares + "\nPrice: $" + String.format("%,.2f", this.price)
+ "\n");
}
}
StockTester.java (Driver class)
import [tex]$\text{java.io.}$[/tex]File;
import [tex]$\text{java.io.}$[/tex]File[tex]$\text{NotFound}$[/tex]Exception;
import [tex]$\text{java.util.}$[/tex]ArrayList;
import [tex]$\text{java.util.}$[/tex]Scanner;
[tex]$\text{public}$[/tex] class StockTester {
private static final String FILENAME = "StockInfo[tex]$.$[/tex]csv";
public static [tex]$\text{void}$[/tex] main([tex]$\text{String}[]$[/tex] args)
{
ArrayList[tex]$<\text{stock}>$[/tex] dataStock = [tex]$\text{readData}$[/tex](FILENAME);
System.out.println("Initial stocks:");
for(Stock s : dataStock)
s.printStock();
System.out.println("Adding a new Stock object to the list..");
Stock newStock = new Stock("Gamma", "03/01/20", 100, 50.5);
dataStock.add(newStock);
System.out.println("\nStocks after adding the new Stock..");
for(Stock s : dataStock)
s.printStock();
Stock targetStock = dataStock.get(3);
double reqReturn = requiredReturn(targetStock, 4000, 3);
System.out.println("Required rate of return = " + String.format("%.2f", reqReturn) + "%");
}
private static ArrayList<Stock> readData(String filename)
{
ArrayList<Stock> stocks = new ArrayList<>();
Scanner fileReader;
try
{
fileReader = new Scanner(new File(filename));
while(fileReader.hasNextLine())
{
String[] data = fileReader.nextLine().trim().split(",");
String stockName = data[0];
String purchaseDate = data[1];
int nShares = Integer.parseInt(data[2]);
double price = Double.parseDouble(data[3]);
stocks.add(new [tex]$\text{Stock}$[/tex](stockName, [tex]$\text{purcahseDate}$[/tex], nShares, price));
}
fileReader.close();
}catch(FileNotFoundException fnfe){
System.out.println(filename + " cannot be found!");
System.exit(0);
}
return stocks;
}
private static double requiredReturn(Stock s, double targetPrice, int years)
{
double reqReturn;
double initialPrice = s.getPrice() * s.getnShares();
reqReturn = ((targetPrice - initialPrice) / initialPrice * years) * 100;
return reqReturn;
}
}
Which element adjusts the space around the data in each cell of a table? adjusts the space around the data in each cell of a table.
Answer:
Increase/decrease indentation
Explanation:
Answer:
(Cellpadding) is actually the correct answer.
Explanation:
Cellpadding and cellspacing are two important features of an HTML table. Cellpadding sets the space around the data in each cell. Cellspacing sets the space around each cell in the table.
How SPARQL 1.1 has advantage over SPARQL 1.0??
**PLEASE AN IPO CHART AND A C++ PROGRAM FOR EACH QUESTION**
20. When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2 / 12 5 0.6%. The first month’s interest on $1,000 is 1000 3 0.006 5 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 2 6 5 19. This means after making the first payment, the loan amount is 1, 000 2 19 5 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 3 0.006 5 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 2 5.89 5 19.11 and the remain- ing balance after the second payment is 981 2 19.11 5 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then out- puts the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first month’s interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)
28. (Apartment problem) A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit?
Write a program that prompts the user to enter:
a. The total number of units.
b. The rent to occupy all the units.
c. The increase in rent that results in a vacant unit.
d. Amount to maintain a rented unit.
The program then outputs the number of units to be rented to maximize the profit.
30. Let n be an integer. The value of the expression lim (1 1 1 ) is n→` n written as e. This number e appears in many places in mathematics. For example, it appears in the formula A 5 Pert to compute the total mount accumulated when the interest is compounded continuously. It also appears in problems relating to exponential growth and decay. It is known that e is an irrational number. The value of e to nine decimal places is e 5 2.718281827. Write a program that computes the value n of the expression lim (1 1 1 ) between certain values of n and then n→` n compare the values with e. For example, you can compute the values of the expression between 100 and 10,000 with an increment of 100, or between 1,000 and 1,000,000 with an increment of 1,000.
answer is b
rtyujhygtrcdxrtgyhgtfr
how many stages needed to have powerful amplifier?
Power amplifier stages in a real circuit. Circuit diagram of a three stage practical audio power amplifier is shown in the figure below. Small signal transistor Q1 and its associated components form the voltage amplification stage.
Answer:
Generally you should pick an amplifier that can deliver power equal to twice the speaker's program/continuous power rating. This means that a speaker with a “nominal impedance” of 8 ohms and a program rating of 350 watts will require an amplifier that can produce 700 watts into an 8 ohm load.
Earth, Wind & Fire were NOT known for combining many different styles of music together.Required to answer. Single choice.
(1 Point)
True
False
Answer:
false
Explanation:
Cause I don't believe you can't use earth, wind,and fire to create music.
Do exercises as follows:
a. Enter a whole number from keyboard, a while loop should calculate a sum of all numbers from one to that number that you entered
b. Enter a numeric score - grade of a test, your program should print a corresponding letter grade that matches the score.
For example, if you enter 89.3, the program should display "B", and if you enter 95.7, then the program displays "A"
Answer:
Explanation:
The following Java program asks the user for a number to be entered it and uses a while loop to sum up all the numbers from 1 to that one and print it to the console. Then it asks the user for a grade number and prints out the corresponding letter grade for that number.
file = open('text.txt', 'r')
total_rainfall = 0
for line in file:
line = line.replace('\n', '')
info = line.split(' ')
info = [i for i in info if i != '']
print(info[0] + " will have a total of " + info[1] + " inches of rainfall.")
total_rainfall += int(info[1])
average = total_rainfall / 3
print("Average Rainfall will be " + str(average) + " inches")
Suppose you are given a relation R with four attributes ABCD. For each of the following sets of FDs, assuming those are the only dependencies that hold for R, do the following: (a) Identify the candidate key(s) for R. (b) Identify the best normal form that R satisfies (1NF, 2NF, 3NF, or BCNF). (c) If R is not in BCNF, decompose it into a set of BCNF relations that preserve the dependencies.
1. C → D, C → A, B → C
2. B → C, D → A
3. ABC → D, D → A
4. A → B, BC → D, A → C
5. AB → C, AB → D, C → A, D → B
Solution :
1.
a). Candidate keys : [tex]$B$[/tex]
b). R is in [tex]$2F$[/tex] but not [tex]$3NF$[/tex]
c). C → [tex]$D$[/tex] and C → [tex]$A$[/tex], both causes violations of [tex]$BCNF$[/tex]. The way to obtain the join preserving decomposition is to decompose [tex]$R$[/tex] into [tex]$AC, BC$[/tex] and CD.
2.
a). Candidate keys : [tex]$BD$[/tex]
b). [tex]$R$[/tex] is in [tex]$1NF$[/tex] but not [tex]$2NF$[/tex].
c). Both B → [tex]$C$[/tex] and D → [tex]$A$[/tex] cause [tex]$BCNF$[/tex] violations. The decomposition : [tex]$AD $[/tex], [tex]$BC, BD$[/tex] is [tex]$BCNF$[/tex] and lossless and the join preserving.
3.
a). Candidate keys : [tex]$ABC, BCD$[/tex]
b). R is in [tex]$3NF$[/tex] but not [tex]$BCNF$[/tex]
c).[tex]$ABCD$[/tex] is not in [tex]$BCNF$[/tex] since D → [tex]$A$[/tex] and [tex]$D$[/tex] is not a key. But if we split up the [tex]$R$[/tex] as [tex]$AD,BCD$[/tex] therefore we cannot preserve dependency [tex]$ABC$[/tex] → D. So there is no [tex]$BCNF$[/tex] decomposition.
4.
a). Candidate keys : [tex]$A$[/tex]
b). R is in [tex]$2NF$[/tex] but not [tex]$3NF$[/tex]
c). BC → [tex]$D$[/tex] violates [tex]$BCNF$[/tex] since [tex]$BC$[/tex] does not contain the key. And we split up R as in [tex]$BCD, ABC$[/tex].
5.
a). Candidate keys : [tex]$AB, BC, CD, AD$[/tex]
b). [tex]$R$[/tex] is in [tex]$3NF$[/tex] but not [tex]$BCNF$[/tex].
c). C → [tex]$A$[/tex] and D → [tex]$B$[/tex] both causes a violations. The decomposition into [tex]$AC,BCD$[/tex] but this will not preserve [tex]$AB$[/tex] → C and [tex]$AB$[/tex] → D, and [tex]$BCD$[/tex] is still not [tex]$BCNF$[/tex] because [tex]$D$[/tex] → [tex]$B$[/tex]. So we need to decompose further into [tex]$AC,BD,CD$[/tex] However when we try to revive the lost functional dependencies by adding [tex]$ABC$[/tex] and [tex]$ABD$[/tex], we that these relations are not in [tex]$BCNF$[/tex] form. Therefore, there is no [tex]$BCNF$[/tex] decomposition.
Write a class called MonetaryCoin that is derived from the Coin class presented in Chapter 5 (the source code for Chapter 5 examples is available via Moodle). [6 pts] Store one integer and one float in the MonetaryCoin that represent its value and weight in grams, respectively. Add a third variable of your choice (related to a coin, of course) and use self-descriptive variable names for all three variables. Pass the values to the constructor in MonetaryCoin and save them to your variables.
Answer:
Explanation:
The following Java code creates the MonetaryCoin class that extends the Coin class. It then creates three variables representing the MonetaryCoin object which are its value, weight, and coinYear. These are all passed as arguments to the constructor and saved as instance variables.
public class MonetaryCoin extends Coin {
int value;
float weight;
int coinYear;
public void MonetaryCoin(int value, float weight, int coinYear) {
this.value = value;
this.weight = weight;
this.coinYear = coinYear;
}
}