Question

some people think cars they own is extension of their personality somehow the idea that cars...

some people think cars they own is extension of their personality

somehow the idea that cars define people is very materialistic for some

for some people cars are just a way of transportation from point a to b

I like cars

some people like to collect old cars as a hobby

I guess one needs to be rich to have such a hobby

for some people cars are bad because gasoline pollutes environment

do you like cars

Read this document and create frequency map C++.

Thankyou

0 0
Add a comment Improve this question Transcribed image text
Answer #1

SOURCE CODE IN C++:

#include <iostream>
#include <fstream>
#include <bits/stdc++.h>
using namespace std;

int main()
{
ifstream in("frequency.txt"); //opening file
unordered_map<string,int> freq; //creating unordered map to store frequency of words
string word; //to store every word one by one
while(in >> word) //while file still has words
freq[word]++; //updating frequency
for(auto i:freq) //going through the frequency map
{
//output
cout << i.first << " (" << i.second << ") ";
for(int j=1;j<=i.second;j++)
cout << "*";
cout << endl;
}
return 0;
}

OUTPUT:

Add a comment
Know the answer?
Add Answer to:
some people think cars they own is extension of their personality somehow the idea that cars...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • some people think cars they own is extension of their personality somehow the idea that cars...

    some people think cars they own is extension of their personality somehow the idea that cars define people is very materialistic for some for some people cars are just a way of transportation from point a to b I like cars some people like to collect old cars as a hobby I guess one needs to be rich to have such a hobby for some people cars are bad because gasoline pollutes environment do you like cars Read this document...

  • Write a c++ code to read 4 documents and with the use of  Boolean operators, search which...

    Write a c++ code to read 4 documents and with the use of  Boolean operators, search which of the document contains 1) NOT (cars OR trucks) and 2) (NOT cars) AND (NOT trucks) The documents are as following - Document 1(file1.txt): search for the word “cars”. some people think cars they own is extension of their personality somehow the idea that cars define people is very materialistic for some for some people cars are just a way of transportation from point...

  • Assignment Details The Unit 6 Assignment requires you to consider how effective teams are built. Some...

    Assignment Details The Unit 6 Assignment requires you to consider how effective teams are built. Some considerations in this assignment include the traits of an effective team leader as well as the strategies one would use to recruit team members that would work effectively together. Using material from Chapter 12 of your text as well as the article in the supplemental reading (Rao, 2016), you will write an informative essay sharing best practices for effective team-building. Outcomes evaluated through this...

  • with job satisfaction? CC-12. Using job characteristics theory, explain why the present system of job design...

    with job satisfaction? CC-12. Using job characteristics theory, explain why the present system of job design may be con- tributing to employee dissatisfaction. Describe some ways you could help employees feel more satisfied with their work by redesigning their jobs. 1 me idea about **** Repairing Jobs That Fail to Sati Learning Goals Companies often divid ciency, but speciali quences. Drain sed specialization petitors' costs often divide work as a way to impro Secialization can lead to negative DrainFlow is...

  • Please, i need Unique answer, Use your own words (don't copy and paste). Please, don't use...

    Please, i need Unique answer, Use your own words (don't copy and paste). Please, don't use handwriting, Use your keyboard. I need you to  redrafting my answer, please.. Q1. How does UPS's approach toward sustainability impact the triple bottom line? Be specific. As a founding member of UPS’s sustainability steering committee have wrestled with the challenge and developed a point of view, one that emphasizes the power of organizational momentum and embraces “enlightened self-interested the companies have a responsibility to contribute...

  • Can someone please read this case for me and answer this question and thank you. 1....

    Can someone please read this case for me and answer this question and thank you. 1. Utilize the triple bottom line to measure Uber’s performance under Kalanick’s leadership. Make sure to incorporate examples from the case in your response. Uber - A Startup’s Origins and Early Days Case: Criticizing customers. Short-changing workers. Sassing regulators. Deceiving authorities. Emphasizing rule breaking and ruthlessness in a “win at all costs” workplace culture. Is this what it takes to go from startup to a...

  • Case: Criticizing customers. Short-changing workers. Sassing regulators. Deceiving authorities. Emphasizing rule breaking and ruthlessness in a...

    Case: Criticizing customers. Short-changing workers. Sassing regulators. Deceiving authorities. Emphasizing rule breaking and ruthlessness in a “win at all costs” workplace culture. Is this what it takes to go from startup to a $70 billion business in only seven years? Or are these characterizations false, the criticisms of jealous rivals? Let’s take an extended look at the exciting journey of the low-cost ridehailing service known as Uber, or Uber Technologies Inc., one of the leading transportation services of the world....

  • What an Executive Summary Is An executive summary is a specific type of document that does...

    What an Executive Summary Is An executive summary is a specific type of document that does two things: it summarizes a research article, and it offers recommendations as to how information from the article can be used. Some long reports can contain an executive summary section, as indicated in the Pearson handbook. Write a 2 pahe Executive Summary In business contexts, an executive summary is always written for a specific purpose: to explain the information in the article to a...

  • Amazon to Competition: We Will Crush You! Amazon to Employees: We Will Churn You! Globally, Amazon...

    Amazon to Competition: We Will Crush You! Amazon to Employees: We Will Churn You! Globally, Amazon is one of the largest and most successful companies in any industry. Technological innovation has contributed to its success, as has its employee acquisition practices, which are exceptionally high. The question is what has allowed this company to thrive and maintain its success? This activity is important because it shows how companies like Amazon hire based on personality and individual differences. Such companies place...

  • I need help with the case W16165 SOMEBODY STOP THE RADIO STAR: JIAN GHOMESHI AT THE CBC Questions: What negative behavior is attributed to Ghomeshi? What was the impact of his alleged behavior on Q em...

    I need help with the case W16165 SOMEBODY STOP THE RADIO STAR: JIAN GHOMESHI AT THE CBC Questions: What negative behavior is attributed to Ghomeshi? What was the impact of his alleged behavior on Q employees? Why did the employee get together to compile the red sky presentation for Groen and Noorani? What else could they have done. If is is true that Goneshi treated Q staff extremely poorly over a long period of time (e.g. from April 2007 to...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT