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
Convert to binary140
marshall27 [118]

00110001 00110100 00110000

5 0
3 years ago
What commonly predefined alias is configured to run the ls âl command?
coldgirl [10]
<span>The l</span><span>l command is the commonly predefined alias that is configured to run the ls âl command. The command ls stands for list. So instead of writing list, in Linux you only write the command ls.
The alias are </span>shortcuts and time-savers. By typing ll we'll get the current directory's listing, in long format, including hidden directories.


6 0
3 years ago
The vast amount of data collected from Internet searches, social media posts, customer transactions, military
Brums [2.3K]

Answer:

A. Big Data

Explanation:

It is big data. The internet searches, customer transactions, social media posts, medical tests, weather sensors, military surveillance, and all the data source you are seeing around yourself forms together with the big data. And a big social media company gathers around so many petabytes of data each day. And there are so many such companies, plus all sorts like eLearning sites, etc. And all these together form the big data.

3 0
3 years ago
The most common markup language used with web pages is ___________ Question 4 options: A. HTML B. VRML C. Javascript
leonid [27]
Hi there!

The correct answer is A. HTML.

HTML stands for Hypertext Markup Language which is used in nearly all websites and web-based programs. HTML acts as a structure for a website giving you the text, page titles, text-boxes, etc... HTML is also used along with the languages of Javascript, CSS, C++, and others. DO NOT confuse languages like Javascript and the rest with Markup Languages because they are not the same! Javascript, for example, is what is used to make websites more user-friendly and interactive. When you use Brainly, for example, and you hover over someone's name or picture and that box pops up that is Javascript at work and not HTML or any other Markup Language.

-<span>ASIAX </span><span>  </span><span>Frequent Answerer</span>
4 0
3 years ago
Read 2 more answers
What makes manually cleaning data challenging?
Alexxandr [17]

Manually cleaning data is done manually which makes it challenging. This make it prone to mistakes.

6 0
3 years ago
Other questions:
  • What is the preferred procedure for putting customers on hold​
    13·2 answers
  • Disk requests come in to the disk driver for cylinders 10, 22, 20, 2, 40, 6, and 38, in that order. A seek takes 6 msec per cyli
    6·1 answer
  • HELP URGENT
    12·2 answers
  • What is the keyboard shortcut to display the merge to printer dialog box?
    5·1 answer
  • Which of these statements makes the most sense? a folder is contained within a file. a file is contained within a folder. a driv
    9·2 answers
  • When a diaphragm contracts, a person is<br>Exhaling<br>Inhaling​
    12·2 answers
  • Which best describes how a supporting database will be structured?
    10·1 answer
  • What is the output?
    5·1 answer
  • An enhancement to a computer accelerates some mode of execution by a factor of 10. The enhanced mode is used 50% of the time, me
    11·1 answer
  • Fill in the blank with the correct term.
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!