Write a program that displays the colored pyramid

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

Programming Assignment-

In this assignment you are requested to write a C++ program that displays the following colored pyramid on the screen:

- The pyramid is 71 characters wide and 21 characters high.

- To draw it, you need to draw green horizontal lines, then red and blue vertical lines.

- Used the following clarifications to write your program:

  • The output screen can be thought of as a grid of 25 rows and 80 columns. Row 0 is at the up edge of the screen. Column 0 is at the left edge of the screen.
  • The intersection of a row and a column is a cell. A cell can display a single character.
  • A cell is identified by its row and column numbers. These are its coordinates. To be able to write starting from a specific position on the screen you have to include - #include<windows.h>.
  • You have also to create a handle (an identifier) to reference the output screen: HANDLE screen = GetStdHandle(STD_OUTPUT_HANDLE);

- As an illustration, the following program draws the function y=x on the screen using the character '*'

Attachment:- Assignment.rar

Reference no: EM131207961

Questions Cloud

Compute unit conversion cost on cost of production report : Department W had 2,282 units, one-third completed at the beginning of the period, 13,357 units were transferred to Department X from Department W during the period, and 567 units were one-half completed at the end of the period. What is the equivalen..
What were total cost of units completed during the period : Department S had no work in process at the beginning of the period. 10,420 units of direct materials were added during the period at a cost of $72,940, 7,815 units were completed during the period, and 2,605 units were 32% completed as to labor and o..
Identify and briefly describe four trends in the macro : Identify and briefly describe four trends in the macro/marketing environment that will have or recently had an influence on the given industry
Prepare a post-closing trial balance as at 31 july 2016 : Determine the correct balances at 31 July for Merchandise inventory and Cost of goods sold under each of the following inventory methods: (a) FIFO, (b) LIFO and (c) weighted-average. (For the purposes of the question, please ignore GST).
Write a program that displays the colored pyramid : CMPS 151 Programming Assignment. In this assignment you are requested to write a C++ program that displays the following colored pyramid on the screen: The pyramid is 71 characters wide and 21 characters high
Describe the components or subsytems of the system : Describe the components or subsytems of the system and what business function they address. Identify one vendor or open source solution for the system you chose to describe.
Mission and values of better world books : What are the mission and values of Better World Books? Critically evaluate their usefulness to the company's management in formulating strategy.
Crm help subaru conduct successful : As Marketing Manager for Subaru, respond to the following- "In what ways could CRM help Subaru conduct successful target marketing and positioning of their products?"
How performance is measured and interview an employee : Find out form senior managers how performance is measured and Interview an employee about the employee''s experience with the business'' performance management system.

Reviews

len1207961

9/15/2016 9:01:33 AM

In your program you should create 2 functions: One to draw a horizontal line at specific row, starting at a specific column, having a specific number of stars and with a specific color. And another one to draw a vertical line at specific column, starting at a specific row, having a specific number of stars and with a specific color. In your main function you should use the above 2 function to draw the pyramid.

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

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

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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