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
What is a traditional tool used to align and mark vertical points from top to bottom?
amm1812
For the answer to the question above, <span>A </span>plumb bob<span>, or plummet, is a weight, usually with a pointed tip on the bottom, suspended from a string and used as a vertical reference line, or </span>plumb<span>-line. It is essentially the vertical equivalent of a "water level".</span>
7 0
3 years ago
How to stay organized in an online school?
Nitella [24]
To stay organized on an online school is no cursing. and keep your files clean and organized
4 0
3 years ago
You are working on a graphical app, which includes multiple different shapes. The given code declares a base Shape class with an
ycow [4]

Answer:

maybe

Explanation:

5 0
3 years ago
Sandie is writing a report for her environmental science class. She has asked her older sister who is away at college to proof h
vichka [17]
Help each other because if the other sister is older she should have more experience and knowledge

8 0
3 years ago
Read 2 more answers
What is the real meaning of hack and crack?
vovangra [49]
Hack means hack computer and crack means I guess your behind
7 0
3 years ago
Other questions:
  • What is the purpose of inserting SmartArt in a Microsoft Office program? (1 point)
    11·2 answers
  • true /falseCompression of entries in the term-document matrix can be used to reduce run-time storage and execution-time requirem
    10·1 answer
  • Where is authorization management app on tablet?
    7·1 answer
  • What is technology addiction​
    14·1 answer
  • Which of the following was one of the first internet search engines? A. archie B. google C. Yahoo D.ask
    7·1 answer
  • Which option best describes the cheapest way to file your federal income taxes?
    5·1 answer
  • Which is the process that a wireless router uses to translate a private ip address on internal traffic to a routable address for
    14·1 answer
  • The email program shipped with Microsoft office
    15·1 answer
  • Betty set up an account on a popular social networking website. she wants to know whether the privacy policy is effective for he
    14·1 answer
  • "If a user on a laptop complains that they are unable to sign into Windows even though they are certain they are entering the co
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!