Answer:
In C:
#include <stdio.h>
#include <math.h>
int main(){
float f0,r,temp;
r = pow(2.0,1.0/12);
printf("f0: "); scanf("%f", &f0);
temp = f0;
for(int i = 0; i<=4;i++){
f0 = f0 * pow(r,i);
printf("%.2lf ", f0);
f0 = temp; }
return 0;
}
Explanation:
This declares f0, r and temp as float
float f0,r,temp;
This initializes r to 2^(1/12)
r = pow(2.0,1.0/12);
This prompts the user for f0
printf("f0: "); scanf("%f", &f0);
This saves f0 in temp
temp = f0;
This iterates the number of keys from 0 to 4
for(int i = 0; i<=4;i++){
This calculates each key
f0 = f0 * pow(r,i);
This prints the key
printf("%.2lf ", f0);
This gets the initial value of f0
f0 = temp; }
return 0;
define a computer, state its 3 main activities with examples of the functions of each of those activities
Answer:
The four main functions of a computer are to:
- take data and instructions from a user
-process the data according to the instructions
- and display or store the processed data.
These functions are also referred as the input function, the procedure function, the output function, and the storage function.
Explanation:
Write a program that implements a class called Dog that contains instance data that represent the dog's name and age. • define the Dog constructor to accept and initialize instance data. • create a method to compute and return the age of the dog in "person-years" (note: dog age in person-years is seven times a dog's age). • Include a toString method that returns a one-line description of the dog • Write a driver class called Kennel, whose main method instantiated and updates several Dog objects
Answer:
Dog.java:
Dog{
//Declare instance variables
private String name;
private int age;
//Create the constructor with two parameters, and initialize the instance variables
public Dog(String name, int age){
this.name = name;
this.age = age;
}
//get methods
public String getName(){
return name;
}
public int getAge(){
return age;
}
//set methods
public void setName(String name){
this.name = name;
}
public void setAge(int age){
this.age = age;
}
//calculateAgeInPersonYears() method to calculate the age in person years by multiplying the age by 7
public int calculateAgeInPersonYears(){
return 7 * getAge();
}
//toString method to return the description of the dog
public String toString(){
return "Name: " + getName() + ", Age: " + getAge() + ", Age in Person Years: " + calculateAgeInPersonYears();
}
}
Kennel.java:
public class Kennel
{
public static void main(String[] args) {
//Create two dog objects using the constructor
Dog dog1 = new Dog("Dog1", 2);
Dog dog2 = new Dog("Dog2", 5);
//Print their information using the toString method
System.out.println(dog1.toString());
System.out.println(dog2.toString());
//Update the first dog's name using setName method
dog1.setName("Doggy");
System.out.println(dog1.toString());
//Update the second dog's age using setAge method
dog2.setAge(1);
System.out.println(dog2.toString());
}
}
Explanation:
*The code is in Java.
You may see the explanations as comments in the code
Pitch an idea for an app that would help with sustainability (examples could be recycling, food waste or energy). What features would it have, how would one of these features work and how would it positively impact the user of the app
you could do something like homeless help, it would be able to find homeless ppl if they signed up and get them a partner to help them with there life
Explanation:
Which of the following statements is false?
Copyright exists the moment a work is created.
Copyright protects intellectual property such as text, art, film, music, or software.
Omitting the © copyright symbol means your work is not copyrighted.
Copyright is free.
You are not required to register your copyright.
It is false that omitting the © copyright symbol means your work is not copyrighted. The correct option is C.
What is a copyright?Original works of authorship are protected by copyright, a type of intellectual property, as soon as the author fixes the work in a tangible form of expression.
The creators of the works of expression typically control the copyrights, however there are some significant exceptions: When an employee produces a work while employed, the employer is the rightful owner of the copyright.
Some individuals think that a work isn't covered by copyright law if it doesn't display a copyright emblem. That is untrue. The copyright symbol need not be used in most situations.
Thus, the correct option is C.
For more details regarding a copyright, visit:
https://brainly.com/question/14704862
#SPJ2
What is a key consideration when evaluating platforms?
Answer:
The continuous performance of reliability data integrity will lead to the benefit and profit of the platform's regular structure changes. Cleanliness in the platform whereas addresses the straightforward structure of task performance and adequate data integrity.
9. Which of the following is the
leading use of computer?
Complete Question:
What is the leading use of computers?
Group of answer choices.
a. web surfing.
b. email, texting, and social networking.
c. e-shopping.
d. word processing.
e. management of finances.
Answer:
b. email, texting, and social networking.
Explanation:
Communication can be defined as a process which typically involves the transfer of information from one person (sender) to another (recipient), through the use of semiotics, symbols and signs that are mutually understood by both parties. One of the most widely used communication channel or medium is an e-mail (electronic mail).
An e-mail is an acronym for electronic mail and it is a software application or program designed to let users send texts and multimedia messages over the internet.
Also, social media platforms (social network) serves as an effective communication channel for the dissemination of information in real-time from one person to another person within or in a different location. Both email and social networking involves texting and are mainly done on computer.
Hence, the leading use of computer is email, texting, and social networking.
solve x + 4 / x - 3 = 4 , step by step explanation will mark as brainliest
Answer:
I didn't get the exact answer..but hope this help
Is there an alternative website of https://phantomtutors.com/ to get guidance in online classes?
Answer:
The website is
classroom
Explanation:
Libby’s keyboard is not working properly, but she wants to select options and commands from the screen itself. Which peripheral device should she use?
A.
voice recognition
B.
microphone
C.
mouse
D.
compact disk
User ideas for ro blox?
Answer:
You can put random people, or something you like to do, like Soccer2347 (that was just an example) or your favorite animal, Horse990. But Rob lox has to approve it first
Explanation:
Answer:
You can do a lot of usernames despite the fact that a lot of them have also been taken already. You can do something like your favorite food, sport, etc, and combine it into a couple words, and then add numbers to the end if the name has been taken already.
There is a nickname feature too which let's you name yourself whatever you want.
Can i get any information on this website i'd like to know what its for ?
https://www.torsearch.org/
Explanation: torsearch.org is a safe search engine mainly used for dark wed purposes. It does not track your location nor give any personal information.
Def locate_substring(dna_snippet, dna): This function takes in two strings, dna_snippet and dna, where dna_snippet is a substring of dna, and returns all locations of the substring as a list of integers. In other words, dna_snippet may exist in multiple locations within dna; you should return the beginning index position of each occurrence of dna_snippet inside of dna. Example: * Sample DNA snippet (substring): "ATAT" * Sample DNA string: "GATATATGCATATACTT" * The returned position list: [1, 3, 9]
Answer:
In Python. The function is as follows:
def locate_substring(dna_snippet, dna):
res = [i for i in range(len(dna_snippet)) if dna_snippet.startswith(dna, i)]
print("The returned position list : " + str(res))
Explanation:
This iterates defines the function
def locate_substring(dna_snippet, dna):
Check for all occurrence
res = [i for i in range(len(dna_snippet)) if dna_snippet.startswith(dna, i)]
print all occrrence
print("The returned all position list : " + str(res))
Following is the Python program to the given question.
PythonAccording to the question,
DNA Series: GATATATGCATATACTTDNA
Snippet: ATAT
Program: def locate_substring (dna_snippet, dna):
start = 0 while True: start = dna.
find(dna_snippet, start) #finding the first occurrence of dna_snippet in dna.
if start == -1: return # if dna.find() returns -1 yield start #Resumes next execution start += 1dna=input ("Enter the DNA sequence: ") dna_snippet=input
("Enter the DNA snippet: ") print(list(locate_substring(dna_snippet,dna )))
Program Explanation: Defining a function.
An infinite loop is being utilized just to produce the indexes from which dna snippet begins.
Determining the initial occurrence of dna snippet inside dna. storing the new occurrences of dna snippet throughout the starting point.
Whenever dna.find() returns minus one, it means there was no occurrence identified and the method should be exited.
Find out more information about Python here:
https://brainly.com/question/26497128
When gathering the information needed to create a database, the attributes the database must contain to store all the information an organization needs for its activities are _______ requirements.
Answer:
Access and security requirements
please answer soon
Anonymity allows you to have freedom of
the internet
downloads
expression
information
Answer:
[ Freedom of expression ]
Why?
it was either that or internet but internet just means being able to use it rather than do whatever i guess
A musician has recorded some initial ideas for new songs which she wishes to share with her bandmates. As these are initial ideas she is not too concerned about the quality of the audio files she will send, but does wish the size of the files to be as small as possible so they can be easily downloaded by her bandmates, including using mobile data. Which of the following should she do to meet these requirements? Select two answers.
Save the audio using a high sampling rate.
Save the audio using a low sampling rate.
Save the audio using a low bit depth.
Save the audio using a low amplitude (volume).
Answer:
1.save the audio using a low sampling rate
2.save the audio using a low bit depth
Explanation:
1. if the quality of the audio is low then the size of the audio will also be low and which will make the size of the data to be less and also easier to download
What is the fastest way to copy the format from one cell to multiple other cells?
Double-click on the Format Painter.
Single-click on the Format Painter.
Use Copy and Paste commands.
Use Cut and Paste commands.
Double clicking on the format pointer is the fastest way to copy the format from one cell to multiple other cells. Thus, the correct option is A.
What is Format pointer?The format pointer holds a value which represents the memory address of an available data item in the file. If the data item from the file becomes unavailable. For example, because it is in a program which has been canceled then the pointer format is considered to hold a value which is incompatible with the format options.
Use the Format Painter to quickly apply the same formatting, such as the color, font style and size, or border style, to multiple pieces of text or graphics in the data item. With the help of format painter, a person can copy all of the formatting from one object and apply it to another object think of it as copying and pasting for formatting.
Therefore, the correct option is A.
Learn more about Format painter here:
https://brainly.com/question/29563254
#SPJ2
List 3 clinical tools available in the EHR and discuss how those benefit the patient and/or the practice
What is not a type of text format that will automatically be converted by Outlook into a hyperlink?
O email address
O web address
O UNC path
O All will be automatically converted.
Answer:
UNC path seems to be the answer
Answer:
UNC path
Explanation:
Assume a future where security counter measures against DoS attacks are much more widely implemented than at present. In this future network, anti-spoofing and directed broadcast filters are widely deployed. Also, the security of PCs and workstations is much greater, making the creation of botnets difficult. Do the administrators of server systems still have to be concerned about, and take further countermeasures against, DoS attacks? If so, what types of attacks can still occur, and what measures can be taken to reduce their impact? Explain in detail with valid diagram and example.
Answer:
yes administrators have to be concerned
Explanation:
It is necessary for countermeasures to be taken against DoS attacks
The types of attacks that can still occur are:
If the network connection get to be overloaded, there could be flash crown of this computer system and fraudulent activities maybe initiated. By flash crowd we mean that the there is a great deal of traffic on the system and this could cause the network connection to be destroyed.
To reduce the impact of this kind of attacks,
1. there should be enough or excess network bandwidth and distributed servers should be replicated if there is a possibility that network could get to be overloaded.
2. restriction is more commonly done on sporting sites. Restriction brings about an increase in implementation cost.
3. The impact of this type of attack can be reduced by stopping unwanted traffic throught the implementation of filters
4. Use strong antivirus on computer sytems that are used to connect to the internet
Arnie is planning an action shot and wants the camera to move smoothly alongside his running characters. He is working on a tight budget and can’t afford expensive equipment. What alternatives could you suggest?
Mount the camera on a wagon, wheelchair, or vehicle and move it next to the characters.
Rearrange your script so you don’t need to capture the motion in that way.
Try running next to the characters while keeping the camera balanced.
See if you can simulate the running with virtual reality.
Use devices that comply with _____________ standards to reduce energy consumption.
Energy Star
Energy Plus
Power Pro
Data Center
Power Star
Answer:
energy star
Explanation:
I just got it correct
The correct option is A. Use devices that comply with Energy Star standards to reduce energy consumption.
How much energy does ENERGY STAR save?Depending on the comparable model, Energy Star appliances can help you save anywhere between 10% and 50% of the energy needed. If you are replacing an older appliance, you can save even more. The Department of Energy and the Environmental Protection Agency jointly administers the Energy Star program.
Through the use of energy-efficient goods and practices, it seeks to assist consumers, businesses, and industry in making savings and safeguarding the environment. The Energy star badge identifies high-performing, economical houses, buildings, and products.
Thus, the Use of Energy Star-certified equipment to cut down on energy use; is option A.
Learn more about Energy Star here:
https://brainly.com/question/27093872
#SPJ2
You are given an array of arrays a. Your task is to group the arrays a[i] by their mean values, so that arrays with equal mean values are in the same group, and arrays with different mean values are in different groups. Each group should contain a set of indices (i, j, etc), such that the corresponding arrays (a[i], a[j], etc) all have the same mean. Return the set of groups as an array of arrays, where the indices within each group are sorted in ascending order, and the groups are sorted in ascending order of their minimum element.
Example
For
a = [[3, 3, 4, 2],
[4, 4],
[4, 0, 3, 3],
[2, 3],
[3, 3, 3]]
the output should be
meanGroups(a) = [[0, 4],
[1],
[2, 3]]
mean(a[0]) = (3 + 3 + 4 + 2) / 4 = 3;
mean(a[1]) = (4 + 4) / 2 = 4;
mean(a[2]) = (4 + 0 + 3 + 3) / 4 = 2.5;
mean(a[3]) = (2 + 3) / 2 = 2.5;
mean(a[4]) = (3 + 3 + 3) / 3 = 3.
There are three groups of means: those with mean 2.5, 3, and 4. And they form the following groups:
Arrays with indices 0and 4 form a group with mean 3;
Array with index 1 forms a group with mean 4;
Arrays with indices 2and 3 form a group with mean 2.5.
Note that neither
meanGroups(a) = [[0, 4],
[2, 3],
[1]]
nor
meanGroups(a) = [[0, 4],
[1],
[3, 2]]
will be considered as a correct answer:
In the first case, the minimal element in the array at index 2 is 1, and it is less then the minimal element in the array at index 1, which is 2.
In the second case, the array at index 2 is not sorted in ascending order.
For
a = [[-5, 2, 3],
[0, 0],
[0],
[-100, 100]]
the output should be
meanGroups(a) = [[0, 1, 2, 3]]
The mean values of all of the arrays are 0, so all of them are in the same group.
Input/Output
Answer:
import numpy as np
a = [[3, 3, 4, 2], [4, 4], [4, 0, 3, 3], [2, 3], [3, 3, 3]]
mean_holder = [np.array(i).mean() for i in a]
mean_groups= [[i for i,x in enumerate(mean_holder) if x==v] for v in mean_holder]
mean_g = []
for i in mean_groups:
if i not in mean_g:
mean_g.append(i)
print(mean_holder)
print(mean_g)
Explanation:
The python's Numpy package is used to convert the lists in the a-list into arrays and the means are taken and grouped by index
Write a program that would determine the day number in a non-leap year. For example, in a non-leap year, the day number for Dec 31 is 365; for Jan 1 is 1, and for February 1 is 32. This program will ask the user to input day and month values. Then it will display the day number day number corresponding to the day and month values entered assuming a non-leap year. (See part II to this exercise below).
Answer:
In Python:
months = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
daymonths = [31,28,31,30,31,30,31,31,30,31,30,31]
day = int(input("Day: "))
month = input("Month: ")
ind = months.index(month)
numday = 0
for i in range(ind):
numday+=daymonths[i]
numday+=day
print(numday)
Explanation:
This initializes the months to a list
months = ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
This initializes the corresponding days of each month to a list
daymonths = [31,28,31,30,31,30,31,31,30,31,30,31]
This gets the day from the user
day = int(input("Day: "))
This gets the month from the user
month = input("Month: ")
This gets the index of the month entered by the user
ind = months.index(month)
This initializes the sum of days to 0
numday = 0
This adds up the days of the months before the month entered by the user
for i in range(ind):
numday+=daymonths[i]
This adds the day number to the sum of the months
numday+=day
This prints the required number of days
print(numday)
Note that: Error checking is not done in this program
Consider the following code segment, which is intended to create and initialize the two-dimensional (2D) integer array num so that columns with an even index will contain only even integers and columns with an odd index will contain only odd integers.
int[][] num = /* missing code */;
Which of the following initializer lists could replace /* missing code */ so that the code segment will work as intended?
A. {{0, 1, 2}, {4, 5, 6}, {8, 3, 6}}
B. {{1, 2, 3}, {3, 4, 5}, {5, 6, 7}}
C. {{1, 3, 5}, {2, 4, 6}, {3, 5, 7}}
D. {{2, 1, 4}, {5, 2, 3}, {2, 7, 6}}
E. {{2, 4, 6}, {1, 3, 5}, {6, 4, 2}}
Answer:
A. {{0, 1, 2}, {4, 5, 6}, {8, 3, 6}}
Explanation:
From the options, we can see that the array is a 3 by 3 array and the array index (whether row or column) begins at 0.
So, the column index for this array is 0, 1 and 2.
Column number 0 and 2 will be treated as the even column while column number 1 will be treated as the odd columns.
Of all options (a) to (e), option (a) fits the requirement of the question; hence; (a) answers the question.
Answer:
A
Explanation:
because the index is even
The virus which activated on a specific data and time is called
What is your favorite LEGO set
Answer:
star wars death star....
The computer scientists Richard Conway and David Gries once wrote: The absence of error messages during translation of a computer program is only a necessary and not a sufficient condition for reasonable [program] correctness. Rewrite this statement without using the words necessary or sufficient.
Answer:
A computer program is not reasonably correct if it has no error messages during translation.
Explanation:
First, we need to understand what the statement means, and we also need to identify the keywords.
The statement means that, when a program does not show up error during translation; this does not mean that the program is correct
Having said that:
We can replace some keywords as follows:
absence of error messages := no error messages
WHY
is communication Important
in
space
Answer:
Communication is vitally important to astronauts while they are in space. Not only does it allow them to talk to their friends and family back home, it also allows them to communicate with the team of experts on the ground that helps them carry out their mission safely.
Tyrone Shoelaces has invested a huge amount of money into the stock market and doesnât trust just anyone to give him buying and selling information. Before he will buy a certain stock, he must get input from three sources. His first source is Pain Webster, a famous stock broker. His second source is Meg A. Cash, a self-made millionaire in the stock market, and his third source is Madame LaZora, world-famous psychic. After several months of receiving advice from all three, he has come to the following conclusions:
a) Buy if Pain and Meg both say yes and the psychic says no.
b) Buy if the psychic says yes.
c) Donât buy otherwise.
Construct a truth table and find the minimized Boolean function to implement the logic telling Tyrone when to buy.
Solution :
The truth table is :
Pain Meg Psych Buy
[tex]$0$[/tex] [tex]$0$[/tex] [tex]$0$[/tex] [tex]$0$[/tex]
[tex]$0$[/tex] [tex]$0$[/tex] [tex]$1$[/tex] [tex]$1$[/tex]
[tex]$0$[/tex] [tex]$1$[/tex] [tex]$0$[/tex] [tex]$0$[/tex]
[tex]$0$[/tex] [tex]$1$[/tex] [tex]$1$[/tex] [tex]$1$[/tex]
[tex]$1$[/tex] [tex]$0$[/tex] [tex]$0$[/tex] [tex]$0$[/tex]
[tex]$1$[/tex] [tex]$0$[/tex] [tex]$1$[/tex] [tex]$1$[/tex]
[tex]$1$[/tex] [tex]$1$[/tex] [tex]$0$[/tex] [tex]$1$[/tex]
[tex]$1$[/tex] [tex]$1$[/tex] [tex]$1$[/tex] [tex]$1$[/tex]
The Boolean function :
[tex]$\text{F(Pain, \ Meg, \ Psych)}$[/tex] = [tex]$\overline {\text{PainMeg}}\text{Psych}+\overline{\text{Pain}}\text{MegPsych}+\text{Pain}\overline{\text{Meg}}\text{Psych}+\text{PainMeg}\overline{\text{Psych}}$[/tex][tex]$+\text{PainMegPsych}$[/tex]
Meg and Psych
[tex]$00$[/tex] 01 [tex]$11$[/tex] 10
Pain 0 1 1
[tex]$1$[/tex] [tex]$1$[/tex] 1 [tex]$1$[/tex]
Therefore,
[tex]$\text{F(Pain, \ Meg, \ Psych)}$[/tex] = Psych + PainMeg
hy plzz help me friends
Answer:
Ok so RAM is Random-Access-Memory.
RAM can store data just like in a hard drive - hdd or solid state drive - ssd
but the thing is that ram is really fast and data is only stored when RAM chips get power. On power loss your all data will be lost too.
ROM thanslates to Read-Only-Memory - so data in ROM chips can't be modifyed computer can just read the data but not write.
Read-only memory is useful for storing software that is rarely changed during the life of the system, also known as firmware.
Have a great day.
Explanation:
Answer:
Ram which stands for random access memory, and Rom which stands for read only memory are both present in your computer. Ram is volatile memory that temporarily stores the files you are working on. Rom is non-volatile memory that permanently stores instructions for your computer