A program for the frequency histogram

Assignment Help Other Subject
Reference no: EM132194773

Write a C++ program (c++14). ask the user give some inputs. and then output the frequency histogram of them. and the output should be like this:

beauty |**** charm |** dragon |* hi |*** lily |*

What I am confused is how to keep the "|*...*" part be vertically aligned? I try to use setw&setfill but it doesn't work. I am not sure does it matter with the variable of longest input length and how to use that.

Reference no: EM132194773

Questions Cloud

Write a program that creates a vector of given elements : Write a C++ program that creates a vector of 15 integer elements. Using an iterator, assign each element a value that is three times of its current value.
Write a c program that contains a structure : Write a C program that contains a structure that uses predefined types and union. Create a struct with name, age, kind (Either child, college student, or adult)
A c program that will check the current setting of echo : Write a C program that will check the current setting of "echo". It it is on, display the message and turn it off.
Write a program to create two files : Write a C++ program to create two files named abc.txt which contains the text I love C++ Programming and def.txt which contains the text.
A program for the frequency histogram : Write a C++ program (c++14). ask the user give some inputs. and then output the frequency histogram of them.
Write a c program that defines a data type : Write a C program that defines a data type (structure ) called course which includes the following fields on Computer Science courses.
Calculate the product of the two integers : The function takes two integers as arguments and calculates the product of the two integers. The function will return the product.
The user for a positive number n representing the number : Write a C program called sort.c that first prompts the user for a positive number n representing the number of numbers to be sorted.
Ask the user to enter a time in the format : Write a c++ program that asks the user to enter a time in the format HH:MM, if all digits are the same print , "you lucky".

Reviews

Write a Review

 

Other Subject Questions & Answers

  How is the organisational structure reflected

How is this organisational structure reflected in the decision-making processes that apply to the design and implementation of significant organisational change

  What are the key issues in criminal use of social media

What are the key issues in criminal use of social media. Why do you believe somebody would self-confess or otherwise promote criminality on social media

  How does communication contribute to a holistic plan of care

How does communication contribute to a holistic plan of care? How is the knowledge of the therapeutic relationship an essential component of health promotion?

  Define considerations for military intervention

The United Nations, individual nations, and many human rights organizations monitor the occurrences of social injustice around the globe.

  How the epidemiologic data could be used to formulate policy

Analyze how the epidemiologic data could be used to formulate policy for improving population health.

  Describe the importance of synergy to an effective strategy

Describe the importance of synergy to an effective strategy. Discuss how Programs, Budgets, and Procedures can be used to create a successful strategy.

  Case analysis - tesla motors

Case Analysis: Tesla Motors: Disrupting the Auto Industry, Read the case, "Tesla Motors: Disrupting the Auto Industry" (see attachment) use the case analysis format provided below to address to identify the problems and provide several suggested so..

  Watsuji dialectic of double negation

What does Watsuji mean when he says, "we have discovered ourselves in climate"? What does he mean when he says, "climate does not exist apart from history, nor history apart from climate?"

  Discuss the function of the affordable care act

Discuss the function of the Affordable Care Act in providing insurance coverage to the uninsured and any impact on those that already have health insurance.

  Describe the jurisdiction of the us supreme court

Identify the current Supreme Court Justices. Provide a brief bio on each include their politic affiliation or ideology.

  Assignment- trust and boundaries

Assignment: Trust and Boundaries. Identify and discuss the steps an agency should take to monitor your agency's compliance with the following standards: maintaining client records, evaluating treatment outcomes, and ensuring personnel competence

  Explain solvability factors involve in investigation process

In a minimum 200 word response describe the solvability factors involved in the investigation process of a crime. Does this help the investigative officer with guidelines for solving a crime? Explain your answer.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd