1 design a program that reads in a text file with drawing

Assignment Help Computer Engineering
Reference no: EM13347691

1. Design a program that reads in a text file with drawing commands and then outputs a bitmap with all the items drawn correctly

2. BitmapFile.h and BitmapFile.cpp files are available for you to use see the example on how to use these files

3. Use CMPSC 122 Coding Standards

4. Must be Object Oriented using C/C++

- Must have a color class
- Must have an image class

5. Must use a STL container for storing the list of colors

6. Ask the user to input the name of the text file that contains the drawing information

7. The output file name is the input filename with the extension of ".bmp" So if the input file is "test.txt" the output file would automatically be "test.bmp"

8. Implement as many commands / parts as you can

9. Use your program to convert "what_is_this.txt" to "what_is_this.bmp" and include a copy of the output in your report

Drawing Text File Information

The input text file will only have a single command per line

There will be no white spaces before the first character of a command

Commands are case sensitive

The End-Of-Line (EOL) characters are the typical Microsoft ‘\r' ‘\n'

Color Names and text for Text() command may only contain alpha numeric characters and may not contain and of the following characters: , " ‘ ( ) ;

Reference no: EM13347691

Questions Cloud

Questions mylocation sdword : questions mylocation sdword 14thetestnbspnbspnbspnbspnbspnbspnbsp sdword 8nbspnbsp nbspmovnbspnbsp
The purpose of the program is to prepare an accounting : the purpose of the program is to prepare an accounting database for e.g. a dorms kitchen to keep track of the
1 analysis of the bond issuea show that the price of the : 1. analysis of the bond issuea show that the price of the bond is equal to that of a portfolio which containsi a long
Write a step-by-step plan including comments that reflect : write a step-by-step plan including comments that reflect changes to the machine state to solvequestion 1. input a b
1 design a program that reads in a text file with drawing : 1. design a program that reads in a text file with drawing commands and then outputs a bitmap with all the items drawn
Problem 1 a 25 lbf block b is moving with a velocity vo of : problem 1 a 2.5 lbf block b is moving with a velocity vo of magnitude vo 6fts as it hits the 1.5 lbf sphere a which is
The case international coalbob manchester is a busy bright : the case international coal.bob manchester is a busy bright middle-manager with an engineering background. he does not
Implement functions using x86 assembly in addition to : implement functions using x86 assembly. in addition to implementing procedures this assignment requires to pass
Case analysis a brief outline of the firm and its industry : case analysis a brief outline of the firm and its industry is given as well as a few tips for your attention. you are

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  Findout which statement provide required output

Findout which statement provide required output

  What sorts of measures would you recommend

What sorts of measures would you recommend for minimizing changes to project schedules caused by non-availability of required human resources, or conflicts with the personal plans of project workers (e.g. vacations).

  Define the three way tcp/ip handshake in connection setup

Come up with a diagram and explain the three way TCP/IP handshake in connection setup and the 3 way TCP/IP handshake in connection release.

  What is the aim of a disaster recovery plan

What are the five methods of testing a DRP.What is the aim of a Disaster Recovery Plan.

  Which choices would made and why

Using SMIL and SVG, it is possible to choose resources from different locations and contributors to create a single unified presentation

  File descriptor

A file whose file descriptor is fd consists of the following sequence of bytes: 2, 7, 1, 8, 2, 8, 1, 8, 2, 8, 4. The following system calls are made: seek( fd, 3, SEEK_SET ); read( fd, &buffer, 4 );

  Electrical or magnetic field that the nervous system produce

activation of the brain is measured by electrophysiological techniques using an electrical or magnetic field that the nervous system produces. These types of measures include may include magneto-encephalography (MEG) or electroencephalography (EEG..

  Give the reasons based on real life programming scenarios

The two most important design issues that are specific to character string types are the following: Should strings be simply a special type of character array or a primitive type.

  What are the solutions to address those barriers

What are connectivity standards and how do they affect the capability of one provider to connect to another?

  Discuss how these business rules could be set up

How can the above business rules be set up in a database and reinforced using DCL.

  Find out largest, smallest, and median values of array c

Your program must ask for a number and print "YES" if the number is in array a, otherwise print "not found"

  A java based program to calculate the maximum heart rate

Write down a java based program to calculate the Maximum heart rate of person based on the person age and height. Notify for the low end of the target zone (65%) and high end of the target zone (90%).

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