1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
maksim [4K]
3 years ago
5

Help needed in C++ programming!

Computers and Technology
2 answers:
Mila [183]3 years ago
6 0

Answer:

#include <iostream>

#include<conio.h>

using namespace std;

void main()

{

float freqk, freqsk1, freqsk2, freqsk3;

cout<<"Enter the Frequency of a Key = "

cin>>freqk;

freqsk1 = freqk * (1) * (1/6);

freqsk2 = freqk * (2) * (1/6);

freqsk3 = freqk * (3) * (1/6);

cout<<"\nFrequency of Key = "<<freqk<<endl;

cout<<"\nFrequency of Subsequent Key 1 = "<<freqsk1<<endl;

cout<<"\nFrequency of Subsequent Key 2 = "<<freqsk2<<endl;

cout<<"\nFrequency of Subsequent Key 3 = "<<freqsk3<<endl;

getch();

}

Explanation:

There are four variables required to store the frequency value of a key and its subsequent keys. All variable are in float values so that answer should calculated in decimal format. With the help of formula calculate the frequency of all subsequent keys with the help of given frequency of key.

Komok [63]3 years ago
6 0

Answer:

This program is executed in C++ using dev C++, The explanation of the code is given below. However, the expected result of this program after running is attached

Explanation:

#include <iostream>

#include <cmath>

#include<bits/stdc++.h>

using namespace std;

int main ()

{

double key=5;//it will generate next three keys from A;

double freq=440;//frequency ;

cout<<freq<<"     ";//output the frequency

for(double i=2;i<key;i++)//loop to show next three frequency

{

float value = (1.0/12);// store value of (1/12)

double r=pow(2.0,value);//store value of r=2^(1/12);

 

double n=i;//number of ith iteration (number of next key)

double power=pow(r,n);//calculating r^n;

 

double result= freq* power;//function i.e. fn=f0*rn

cout<<result<<"     ";//displaying result

}

 

 

}

You might be interested in
Importing data is sending data to a new file.Is this true or false
Kipish [7]

false homie I gotcho


3 0
3 years ago
Read 2 more answers
What is the name of the technology that is typically implemented on switches to avoid Ethernet connectivity problems when the wr
Andrew [12]

Answer:  Medium Dependent Interface Crossover (MDIX)

Explanation:

The technology that is typically implemented on switches to avoid Ethernet connectivity problems is Medium Dependent Interface Crossover(MDIX) For switches with Auto (MDIX) the connection is configured automatically and a crossover or straight-through cable can be used to connect two switches. When this MDIX interface is connected it corrects the connectivity speed and the cabling for proper device functionality.

4 0
3 years ago
Where do you place the logical test argument in an IF function formula?
Inessa [10]

Answer:

The first argument listed after IF

Explanation:

When the two variables are listed next to each other, Excel will find and calculate the correlation between them.

8 0
3 years ago
Read 2 more answers
Why is it important to identify cables and conductors?​
nlexa [21]

Answer:

While we almost never get to see most of the cables, they power everything so it only makes sense that you should know what the different types of cables and wires are, so that you can pick accordingly and have your equipment, devices and appliances powered properly.

It is also important to identify cables and conductors for safety purposes, such as emergencies linked with electricity.

8 0
2 years ago
Show the steps of a Selection Sort for the numbers ( 5 3 9 5 ).
Sedbober [7]

Answer:

Sorted array will be:-

3 5 5 9

Explanation:

In Selection Sort algorithm it sorts the array by repeatedly finds the minimum in the array form the array that is unsorted and swaps it with the value at the first position.

The unsorted array:- 5 3 9 5

In first iteration

minimum is 3.

3 will be swapped with 5.

Now the array is 3 5 9 5

sorted array 3

In second iteration

unsorted array is 5 9 5

sorted array 3 5

and the minimum from it is 5

No swapping will occur.

In third iteration

unsorted array is 9 5

minimum is 5

sorted array 3 5 5

swap it with 9.

Now the array is sorted.

3 5 5 9

3 0
3 years ago
Other questions:
  • Write a public static method called getPIDs that has a parameter of type Map called nameToPID (keys are student names and values
    6·1 answer
  • Consider the scenario below and determine the most likely source of the problem. A user reports that her or his printer is not r
    13·2 answers
  • 10.7 LAB: Fat-burning heart rate Write a program that calculates an adult's fat-burning heart rate, which is 70% of 220 minus th
    8·1 answer
  • Write a program that asks the p34won to enter their grade, and then prints GRADE is a fun grade. Your program should repeat thes
    7·1 answer
  • Please Help! <br> I need good Anime to watch!
    7·1 answer
  • The image below shows an encoding for a black and white pixel image. The first two
    13·1 answer
  • Write down the characterizations that best suits the term Java applets?
    7·1 answer
  • Question is in photo
    11·1 answer
  • Explain the integer and float datatypes with example.<br><br>​
    11·1 answer
  • in a particular factory, a team leader is an hourly paid production worker who leads a small team. in addition to hourly pay, te
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!