Write a c program that reads in five numbers

Assignment Help C/C++ Programming
Reference no: EM13162962

Q1. (Bar Chart /Histogram printing) Write a C program that reads in five numbers (each between 1 and 30). For each number read, your program should print a line containing that number of adjacent asterisks. For example, if your program reads the number seven, it should print *******.

 

Q2. Write a C code that draws a shape as follows:

7

+

Shape:

     +

   +++

  +++++

+++++++

  +++++

    +++

      +

Press any key to continue . . .

 

Q3. Write a C program that prompts the users to enter the number of students then calculates and displays the average number of hours that a student spent on doing programming each day over a three day weekend period.

 

 

Reference no: EM13162962

Questions Cloud

Use a systematic treatment of equilibrium to calculate ph : Use a systematic treatment of equilibrium to calculate the pH of a solution prepared by diluting 0.467 g of aniline (aminobenzene, C6H5NH2) to 100.0 mL.
Explain what is the ph of the h3po3 solution : What are the values of [H+], [H2PO3-], and [HPO32-] in a 3.0 M solution of H3PO3? What is the pH of the solution?
What constitutes a perfectly competitive market structure : Your report should be approximately two pages in length, you should use diagrams wherever appropriate and clearly state any assumptions underpinning your analysis.
Explain what is the percentage ionization of the acid : What is the percentage ionization of the acid? What is the value of Ka for the acid? 2) Periodic acid, HIO4, is an important oxidizing agent and a moderately strong acid. In a 0.20 M solution
Write a c program that reads in five numbers : Q1. (Bar Chart /Histogram printing) Write a C program that reads in five numbers (each between 1 and 30). For each number read, your program should print a line containing that number of adjacent asterisks. For example, if your program reads the numb..
State equilibrium is between carbonate and hydrogencarbonate : One ecologically important equilibrium is that between carbonate and hydrogencarbonate (bicarbonate) ions in natural water. (a) Th e standard Gibbs energies of formation of CO3
Program that prints your full name on the screen : write an assembly language program that prints your full name on the screen
What is the pressure of the oxygen gas in the eudiometer : if the pressure inside of the eudiometer is equalized to barometric pressure (0.987 atm), what is the pressure of the oxygen gas in the eudiometer?
Compute the mass fractions of the components : Calculate the mass fractions of the components in the mixture and the average molecular weight of the gas mix. b)The gases are mixed with 20% excess air and completely combusted with 100% conversion

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Public transport fare ticketing system

Implement and test a public transport fare ticketing system.

  Two types of constructors

Explain what constructors do and when they are executed. Explain the two types of constructors. Provide an example class that includes both types of constructor functions and demonstrate how an object would be instantiated using both types of constru..

  Reverses the characters in a character array

Write the function reverseit that reverses the characters in a character array. You must also write main that calls reverseit.

  Write function to find whether number is perfect number

Write down the function perfect which determines whether number is perfect number or not. This function must receive number and return true if number is perfect.

  Create a graphical (not text-based) visual c++ program

Create a graphical (not text-based) Visual C++ program that allows the user to enter the coefficients for a system of four equations with four unknowns. Include a button that when clicked, will solve the system of equations and display the results in..

  Create the appropriate constructor, getters and setters

Create the appropriate constructor, getters and setters for the class. Create an instance of Student for each of the students listed above from array. Construct the instance with lastname, firstname, and job.

  Program which asks the user for due date of next assignment

Write a program which asks the user for due date of the next assignment (hours, minutes). Then print number of minutes between the current time and the due date in format.

  Program to translates letter grade into number grade

In C++ (should be able to compile in Visual Studio 2010): Write a program to translates letter grade into number grade. Letter grades are A,B,C,D and F, possibly followed by a + or -.

  Implement the delivery company

Implement the delivery company using the classes given in the class diagram above.

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Create a program that maintains the required book catalog

Create a program that maintains the required book catalog for the circulation desk of a library.

  Print each employee''s identification number

1) in a program you need to store the identification numbers of 10 employees (as ints) and their weekly gross pay (as doubles) A) Define two arrays that may be used in parallel to store the 10 employee indentificcation numbers and gross pay amounts B..

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