2.32 LAB: Musical note frequencies On a piano, a key has a frequency, say f0. Each higher key (black or white) has a frequency of f0 * rn, where n is the distance (number of keys) from that key, and r is 2(1/12). Given an initial key frequency, output that frequency and the next 4 higher key frequencies. Output each floating-point value with two digits after the decimal point, which can be achieved by executing cout << fixed << setprecision(2); once before all other cout statements. Ex: If the input is: 440.0 (which is the A key near the middle of a piano keyboard), the output is: 440.00 466.16 493.88 523.25 554.37

Answers

Answer 1

Answer:

Explanation:

[tex]\text{This is a python code:}[/tex]

[tex]\text{import math}[/tex]

[tex]your {\_} {value 1 }= float(inpu \ t ())[/tex]

[tex]your{\_}value 2 = your{\_}value1*math.exp(1 * math.log(2) / 12)[/tex]

[tex]your{\_}value 3 = your{\_}value1*math.exp(2 * math.log(2) / 12)[/tex]

[tex]your{\_}value 4 = your{\_}value1*math.exp(3 * math.log(2) / 12)[/tex]

[tex]your{\_}value 5 = your{\_}value1*math.exp(4 * math.log(2) / 12)[/tex]

[tex]print('\{:.2f\} \{:.2f\} \{:.2f\} \{:.2f\} \{:.2f\}'.format(your\_value1, \ your\_value2, \ your\_value3,[/tex][tex]\ your\_value4, \ \ your\_value5))[/tex]

[tex]\mathbf{OUTPU \ T :}[/tex]

[tex]\mathbf{440.00 \ 466.16 \ 493.88 \ 523.25 \ 554.37}[/tex]

Answer 2

The code for musical note frequencies On a piano, a key has a frequency, say f0 is in the explanation part below.

Here is a C++ program to the stated problem:

#include <iostream>

#include <iomanip>

#include <cmath>

int main() {

   double frequency;

   std::cout << "Enter the initial key frequency: ";

   std::cin >> frequency;

   std::cout << std::fixed << std::setprecision(2); // Set output precision to 2 decimal places

   std::cout << frequency << " ";

   for (int i = 1; i <= 4; ++i) {

       frequency *= std::pow(2, 1.0 / 12); // Calculate the next frequency

       std::cout << frequency << " ";

   }

   return 0;

}

Thus, in this program, we use the user's original key frequency as input. The starting frequency and the following four higher key frequencies are then calculated and produced using a loop.

For more details regarding C++ program, visit:

https://brainly.com/question/33180199

#SPJ6


Related Questions

If y varies inversely as x, and y =23 when x=8, find y when x=4 .

Answers

I think u just divide y by two cuz the x value was divided by two

My coding will not work. I don't know what the issue.

Answers

Can you give us a better and larger picture please?

"There are no longer mature industries; rather, there are mature ways of doing business," he is referring to the high demand of creativity and innovation in the market

Answers

Hi, you've asked an incomplete and unclear question. However, I provided the full text below.

Explanation:

The text reads;

"When Porter says “There are no longer mature industries; rather, there are mature ways of doing business,” he is referring to the high demand for creativity and innovation in the market. Earlier we used to be more concerned about the hardware and the physical product rather than its information content, But now as a business, we need to provide more informative content with the product.

Like General Electric offers dedicated customer service for its line of goods which differentiates it from its rivals. Similarly, shipping companies like UPS now offer us to track the location of our package on a live map. This is what we call a mature business and how we can differentiate ourselves and stand out in the highly competitive market by using Information and Technology..."

Can anybody do Algorithm 2 for me (with Python).
Answer = 25 points.

Answers

Answer:

age=int(input("Enter age"))

if age>=18:

    print("You are Young")

else

   print("You are child")

Explanation:

if you have any query or any problem kindly ask in comment

One tool under What-If-Analysis is Scenarios. Which best describes the purpose of setting up and using scenarios

1. to quickly combine multiple formulas from different cells into just one
2. to instantly compare results when data in numerous cells change to specified values
3. to conduct automatic complex statistical analysis on a range of cells
4. to constrain some cells to certain values so that the wrong data are rejected if entered​

Answers

Answer:

Option B, to instantly compare results when data in numerous cells change to specified values

Explanation:

Scenario setting with in the What If Analysis is used to compare various scenarios with in the same excel sheet. Scenarios has set of values that are saves and updated automatically as the values with in the cell changes. Also the scenarios can be switched.

Hence, option B is correct

Who should NOT apply for financial aid?

Students who will attend college part-time

Students whose annual family income is over $100,000

Students who will attend community college

All students should apply for financial aid

Answers

Answer: wealthy students should, not a must, apply for it. Not every student.

explain irony and why its ironic in 300 words

Answers

I’m not sure if I can do it in 300 words but you could probably stretch this out if you try hard enough.

Irony is like when you say how much you hate planes then the first time you get on a plane it crashes. It’s like when you say something that you don’t like or you don’t want to happen and it ends up happening anyways or something around those means.

This is 181 words sorry I couldn't figure out what else to add...

Explanation:

Verbal Irony occurs when the speakers attention is the opposite of what he or she is saying. Dramatic Irony occurs when the audience knows a key peice of information that the characters in a play or story do not know. There are a few diffrent types of Irony but theses two are the main ones used. It's kinda like when in the Cask of Amontillado Montresor hates Fortunado and leads him into the catacombs to kill him. There was a lot of Verbal and dramatic Irony. Verbal irony is created as the pair journey into the catacombs. Fortunado has a cough, and Montresor asks him to "return," or go out of the catacombs a few times. Fortunado continues in the hopes of sampling the amontillado. After Montresor chains Fortunado to the wall, he says, "Once more, let me implore you to return. No?" This is ironic because Montresor has no intention of letting Fortunado go. Another good representation of Dramatic Irony would be in Romeo and Juliet when the audience knows that Juliet is not dead, but Romeo thinks she is.

Put the following events from computer history in the order they happened:

Answers

Show us a picture so we can answer

is it safe for me to use normal glue to stick things on my laptop like stickers or pics?

Answers

Answer:

I think you should be fine, as long as you're just sticking it to the backside of your laptop. (For MacBooks, this is the part of the laptop with the apple symbol.) You can easily wash glue off with a cleaner such as Goo Gone or Pledge. There's better solutions, like ordering a case for your computer and putting the stickers on there, but I guess it's fine to stick them onto your computer. I'll attach a photo of an example of case with stickers.

Hope this helps! Feel free to give me Brainliest if you feel this helped. Have a good day, and feel free to comment any questions below you may have. :)

It is safe to use normal glue to stick things on my laptop like stickers or pics. On the back of the laptop cover, this glue can be used.

What are glues?

Any non-metallic substance applied to one or both sides of two distinct items that binds them together and prevents their separation is an adhesive, also known as glue, cement, mucilage, or paste.

superglue, sometimes called cyanoacrylate, is a kind of adhesive that joins quickly and may be used on a range of surfaces and materials. This fast-bonding glue has the advantage of eliminating the need for nails, clamps, and other fasteners. Superglues are waterproof, quick-setting, and will dry clear.

Therefore, stickers and pictures can be safely adhered on my laptop using regular adhesive. This glue can be applied to the laptop cover's rear.

To learn more about glues, refer to the link:

https://brainly.com/question/13225566

#SPJ2

who like the videos where is clown is from :)

Answers

Answer:

i hate clowns alot especially pennywise lol

Explanation:

which type of hazzard are those substances which threathen you physical safety ?​

Answers

Answer:

98o

Explanation:

Which of the following binary numbers is equivalent to decimal 4?

A. 10
B. 100
C. 1010
D. 1111

Answers

Answer:

b so easy

Explanation:

Answer:

B. 100

Explanation:

Which securities protects networks from intruders? *

Application security
Network security
Information security
Operational security

Answers

Answer:

I think it is network security

Explanation:

Heard in an ad before :T

Answer:

Use Kika Clipboard to make paste easypneumonoultramicroscopicsilicovolcanoconiosis

(Print distinct numbers) Write a program that reads in integers separated by a space in one line and displays distinct numbers in their input order and separated by exactly one space (i.e., if a number appears multiple times, it is displayed only once). Hint: Read all the numbers and store them in list1. Create a new list list2. Add a number in list1 to list2. If the number is already in the list, ignore it.

Answers

Answer:

Following are the program to the given question:

num = input("Enter numbers: ")#defining a variable num for input value  

list1 = num.split()#defining a list1 that adds value in list1  

list2 = []#defining an empty list list2

for j in range(len(list1)):#defining a for loop that checks the list value in range  

   if not list1[j] in list2:# use if block that checks multiple value

       list2.append(list1[j])#add value in list2

print("The distinct numbers are: ")#print message

for j in range(len(list2)):#defining for loop for print list value

   print(list2[j])#print list value

Output:

Enter numbers: 1 22 55 7 22 1 1 2 3

The distinct numbers are:  

1

22

55

7

2

3

Explanation:

In the above-code, a "num" variable is defined, that takes inputs from the console screen, and in the next step, "list1 and list2" is defined. In the "list1" it adds num variable value a into the list.

In the next step, a for loop is defined that checks the list value in range , and define an if block, that checks multiple value and add value into the list2, and in the next step, the for loop is defined that prints the list2 values.    

PLEASE HELP

Write a method that takes two rectangles and returns the (positive) difference between their areas.
This method must be named areaDiff() and have 2 Rectangle parameters. This method must return a double.

For example suppose two Rectangle objects were initialized as shown:

Rectangle rect1 = new Rectangle(2.0, 8.0);
Rectangle rect2 = new Rectangle(6.0, 3.0);
The method call areaDiff(rect1, rect2) should then return the value 2.0.

Answers

The program to define a method that computes the positive difference between the areas of two rectangles is found in the attached image.

The program defines a class Rectangle with a constructor, and a static method areaDiff. The static method areaDiff takes two rectangles (rect1 and rect2) and returns the positive difference between their areas.

The formula used by areaDiff is:

[tex]|(rect1.width \times rect1.height)-(rect2.width \times rect2.height)|[/tex]

where

[tex]rect1,rect2=\text{the two rectangles}\\(rect.width\times rect.height)\text{ calculates the area of a rectangle object}\\|x|=\text{the absolute value function}[/tex]

Another Python program that solves a geometry problem can be found here: https://brainly.com/question/19150697



Horatio would like to use the category functionality contained within Outlook 2016. Which option should he choose to be able to rename categories?

Answers

Answer:

Items that are associated with one another as a group can be categorized by assigning colors to the group for easy identification in Microsoft Outlook

The different colors used includes; Yellow, Blue, Red, Green, Purple, and Orange

in order to rename a category choose the 'All Categories...' option among the options in the Categorize menu, to display the 'Color Categories' dialogue box

Within the 'Color Categories' dialogue box, check the box next to the desired color of the category and select rename

Type in the new name of the Color Category

With the check box next to the Color Category of the items that are currently selected and displayed in outlook, select 'OK' to assign the Color Category to the items

Explanation:

How would you identify the cell located in column
Brow 12?
A. 12B
B. B12
C. B:12
D. 12:B

Answers

Answer:

B. B12

Explanation:

Edge2021

Why is storage and important part of the computing process? It must be atleast five sentences.

Answers

Your computer needs storage because the processor needs a place to perform its magic — a scratchpad for mad doodles, if you will. All computers need storage. ... Memory is where the processor does its work, where programs run, and where information is stored while it's being worked on.

And why five sentences?

You are the leader of your school's Go Green Club, which supports environmentally friendly choices and lifestyles. Your club will represent your school in the forthcoming annual Green City competition. The school coordinator has allocated a fixed budget and a timeline of 30 days to design an ID card format that closely represents the club's theme, and to send it back to him for approval.

To get the desired creative effect, the school coordinator advised you to use desktop publishing software to create the card design and to produce them later, in the required numbers. You'll create the ID cards for the members with desktop publishing software. In your answer, mention the software you’ll use and describe the steps you'll follow to create the ID cards.

(Hint: First identify the audience, timeframe, and limitations of the task, if any. Then, identify the hardware and software to create the ID cards. Lastly, create and finalize the formatting techniques and templates for the ID card.)

Answers

Answer:

(Answers may vary.)

My Considerations

The Go Green Club has a total of 100 members. I plan to photograph each of them in front of our club's "Go Green" sign. I have a deadline of 30 days to deliver the ID cards. Therefore, I have to ensure that all the cards are printed and ready for delivery in 20 days, with 10 days of buffer time (in case the cards require any edits or changes). Additionally, after I have submitted the draft for review, I will need the coordinator's final approval on the design and layout of the ID card.

Hardware Requirements

a desktop computer or laptop with adequate memory to run the software to create the ID cardssome external storage devices, such as pen drives and DVD disks, to share the design and layout for the coordinator to review; I will also need these devices to store the final digital file for printa color scanner to scan hand-drawn artwork and signatures, which I will place on the ID carda digital camera to capture photos of members, and to transfer them to the computer/laptopa printer to make hard copies of the cards.Software Requirements

I intend to use Scribus to create the ID cards because it is a free DTP application, and has most of the common features I'd need to create an ID card.

Formatting Techniques

I plan to use the following techniques to design the club ID cards.I'll use the landscape or horizontal orientation. This will enable proper spacing for the ID card elements.I'm planning to use a card measuring 3.370 inches × 2.125 inches. A card this size will ensure that all the elements of the card are visible.I am planning to place the club logo on the top left corner, because the eye normally follows the path of the letter Z. This'll help the viewer to see the logo and identify/recognize the club.Next I'll place the club name; I'll use the top-center alignment and also vertically align it to the logo. I'll use the sans serif font for the club name.Following the Z-path rule, I'll place the member's photo to the right and the member's name under the photo. In this position, the photo and the name will be visible, and will not get mixed up with other elements. I'll print the member name with a serif font.Finally, again in line with the Z-path rule, I'll position the club seal and the club director's signature at the right lower bottom. Although these elements are essential on an ID card, they do not require as much viewer attention as the club logo, name, and member photo.

Explanation:

I used Canva for this card.

does anyone now how to make an app on code.org????
i’ll pay you if you can do it for me!!

Answers

Answer: Honestly, code.org wont get you far. I recommend you get a IDE and pick a language to learn.

I would be happy to help you im not going to make it for you but i can help walk you thought it. I know a little bit of code.org had to make something in it last year.

Which of the following is NOT true about data?
A. It is information processed or stored by a computer
B. It is stored and processed in decimal format
C. It can be in the form of figures, texts, images or other types of
information
D. It can be transferred from one computer to another

Answers

Answer: B. It is stored and processed in decimal format

============================================================

Explanation:

Choice B is not true because data is stored and processed in binary format. This is in the often talked about format of 1s and 0s. Binary is preferred because computers are built upon electronic circuits. If an electrical current is passing through a certain node, then you can represent this with 1 for "on", while no electricity would be 0 for "off". Think of a series of switches you can flip up or down. Chaining together 1's and 0's allows us to represent pretty much any kind of thing we want from documents, to pictures, to movies to videogames. The 1's and 0's can represent instructions of a program (aka computer code) or it could represent raw data such as an image file.

In short, data is not stored and processed in decimal format. It's represented in binary instead. Binary is base 2 consisting of the digits 0 and 1. In contrast, decimal format deals with the digits 0 through 9.

which description below would describe a library linked to a coding file?

1. Imagine to pull into your game.

2. A library helps you find errors in your code.

3. Pre-written function to be used over and over.

4. Books.

Answers

Answer:

2 im pretty sure

Explanation:

I just did this quiz and i got it correct so im pretty sure its 2 :D

Kelly has always used "P4ssw0rd” as her password on her online accounts. Why should she change this? Check all that apply.

o Passwords should be used only once.
o It could be easily guessed.
o Passwords must be unique.
o It contains insufficient personal information.
o Passwords should be changed regularly.

Answers

Answer:

it could be easily guessed

All of them except C

How does segmenting your network increase network security?

Answers

Answer:

By segmenting networks, it becomes easier to protect the most sensitive data that you have on your internally-facing network assets. The creation of a layer of separation between servers containing sensitive data and everything outside of your network can do wonders to reduce your risk of data loss or theft.

Explanation:

PLEASE MARK ME AS BRAINLIEST

Lin wants to play an online game with her friends. She read the description of the game and knows it contains several features with addictive design, including rewards for completing levels and long game times with penalties for quitting early. She likes the game but doesn’t want to get sucked in and skip her homework (which has happened before)! Name two guidelines Lin should set for herself before playing the game.

Answers

Answer:

Set a time limit for herself. Ask her parents for help monitering her app usage.

what is a collection of records DBMS?

Answers

Answer:Database

Explanation:

- is an integrated collection of logically related records or files. A database consolidates records previously stored in separate files into a common pool of data records that provides data for many applications. The data is managed by systems software called database management systems (DBMS).

Answer:

Database

Explanation:

Jiwoo is a professional photographer. Identify and describe a photography scenario where Jiwoo would need to consider the ethics and aesthetics of photography before proceeding. Clearly examine what ethical and aesthetic consideration she would have based on the scenario that you describe and how these relate to photography as a career or art form in general.

Answers

Answer:

Photography ethics are the principles that guide the way we take and share photos. Why is photography ethic so important? If we don't have morality in the way we use photography, we risk Aesthetics Ethics deals with the rights and wrongs and Aesthetics deals with beauty or otherwise. When we correct, manipulate or enhance images, the factors of ethics and aesthetics must always be kept in consideration. Where Does One Draw The Line if you add or remove something there that wasn’t in the scene you have crossed from documentary to fictional art. Exceptions In other cases, the only way to present a truer representation of reality is through a composite rather than with a single exposure.

Explanation:

I hope this helps I little

Live Preview, found in the Font group, uses which method for seeing different font sizes without committing to them.
double-clicking the sizes on the Size drop-down list
pointing the mouse pointer to the sizes on the Size drop-down list
right-clicking the cell and clicking Preview Size on the drop-down list
clicking the sizes on the Size drop-down list

Answers

Answer:

B- pointing the mouse pointer to the sizes on the Size drop-down list

Explanation:

Answer:

B

Explanation:

got it right on edge

"During a context-switch, the process status word (PSW) of the running process is also saved." TRUE or FALSE?

Answers

Answer:

The answer is "True".

Explanation:

In the processor status word, comprising all pointers into some kind of registry account, which must be stored whenever a context switch took place. In this, each size of a process is reduced through the use of lightweight processes in such a multitasking environment, and the entire process will save through the unique process ID.

Write an extensive note on register and type of register .
a very long note that will give me enough mark.


I WILL MARK U BRAINLEST
30 POINTS

Answers

I don’t understand can you simplify
Other Questions
Use capital letter to begin interrogative word. You do not need to use punctuation marks but you must use accentmark-2 es esto?Es un disco compacto.0 I need help fast! Someone help! If anyone read the giver. Ch18 What was the important events in the giver ch18. will mark brainliest if you put an actual good answer.(DONT ANSWER IF YOU HAVENT READ) 10. Write a polynomial in factored form with a single root at 0 and a doubleroot at 3 that decreases as x approaches infinity. What is 4000 divided by 70 What does NS or IMS mean in terms of substitution for algebra? Lacy is given a kite with one diagonal....please click photo to see the question Why might an author choose to use a third-person narrator?A. To make the readers feel that they are a part of the storyB. To give the audience a more personal experienceO C. To create a story with more than one main characterO D. To show the thoughts and feelings of one characterSUB List some of the crash costs of driving.Describe three moncrash costs of drivingHow can you minimize the crash costs of driving, Homework, 12 points for whoever answers.Note: if you dont know the answer or unsure of it, please do not say it or type I dont know as the answer, it takes away my points and my time, thank you :D Which equation can be used to find the volume of the cylinder? A cylinder with a radius of 6 centimeters and a height of 8 centimeters.V = pi (6) squared (8)V = pi (12) squared (8)V = pi (8) squared (6)V = pi (8) squared (8) A tire company was testing a new type of tire under harsh driving conditions. The histogram shows the results of the test.Usable Life of New TireHow many tires in this test had a usability between 700 and 1000 hours?D. 17A. 6E. 20B. 8 C. 12 HELP PLEASEQuestion 110 ptsA trout is not considered a _____________________ species because it lives in freshwater streams, rivers, and lakes.Group of answer choiceshydrantmarinehydroelectricaquaticFlag this QuestionQuestion 210 ptsIt is important that we utilize alternative energy sources, such as _______________ power, in order to reduce the burning of fossil fuels.Group of answer choicesaquatichydrantaqueducthydroelectricFlag this QuestionQuestion 310 ptsThe scientists were studying a number of _______________ plants to see if pollution from the nearby factory was affecting the pond.Group of answer choicesmarineaqueductaquatichydroelectricFlag this QuestionQuestion 410 ptsBecause there wasn't an accessible ____________________ near the house, the firefighters were unable to save our home from the fire.Group of answer choicesaquatichydranthydroelectricmarineFlag this QuestionQuestion 510 ptsThe severe drought left the local _____________ almost empty, which prevented the farmers from properly watering their crops.Group of answer choicesaquaticmarinehydrantaqueductFlag this QuestionQuestion 610 ptsChoose an antonym for dehydrate.Group of answer choicesmoistenjungleparchrainforestFlag this QuestionQuestion 710 ptsWhat might you hear if you were in a marina?Group of answer choicesbarking dogsscreeching seagullsloud sirenscrying babiesFlag this QuestionQuestion 810 ptsChoose a synonym for maritime.Group of answer choicesoceanicatmospherevesselsterrestrialFlag this QuestionQuestion 910 ptsWhy might aquifiers be important to humans?Group of answer choicesThey provide water and shelter to many desert animal species.They provide a place for recreational fun, like boating, swimming, and fishing.They took many years to build, and they bring water to large cities.The rocks within them help to filter and clean flowing groundwater.Flag this QuestionQuestion 1010 ptsaquarium : water : vase :Group of answer choicesglassfishflowersrocks Lowest common denominator of 3 5/7 and 4 4/5 nees help asap extra. points!!!!!!!!!! Dave places 17000 in an account which pays 4% compound interest per year. How manyyears will it take before he has 19122.69 in the bank? Indicate the answer choice that best completes the statement or answers the question.Which two points represent integers with the same absolute value?VFTAPNU-6-5-4-3-2-1 0 1 2 3 4 5 6 Please help meeeeeeeWhat types of home products are manufactured in your locality? Write with examples.. A penny is about 5103 feet thick. The One World Trade Center building is about 2,000 feet tall. How many pennies would be in a stack of pennies as tall as the One World Trade Center building? Explain answer !( Will give brainlst)