Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Programming Language Expert

Objectives:

1. To create your first Windows graphics application.
2. To define and use your first class.
3. To gain experience using someone else’s libraries in your application.

Background:

Creating animation in C++ using Horstmann’s graphics library is easy. All you need to do is create a for loop that

1. draws some objects
2. moves those objects
3. pause for few seconds
4. use cwin to clear the window

Scenario:

“Beat-SC Week” is arguably one of the most exciting weeks for a UCLA Bruin. It is a week marked by school spirit, cross-town pranks, and bonfire rallying before the UCLA-USC football game. The casinos would like to capitalize on “Beat-SC” week by bringing the “crosstown showdown” to Las Vegas for their clientele. They want you to create a short user-interactive animated cartoon demonstrating your school spirit and pride for UCLA which they will display in the sports lounge before the game. They already hired a team of C++ programmers from USC to create their own cartoon promoting their respective school. Thus, the pressure is on you to show Las Vegas and the world the best university in Los Angeles. Are you up for the challenge?

Directions:

Create a Windows Application (not a console application) project called “Hw7” in your solution called “Homework” using Microsoft Visual Studio. The source file inside the project should be named GoBruins.cpp and should contain the following header:
/*
PIC 10A Intro. to Programming
ID: Spring 2013
Email: Assignment no.
Section:
Honesty Pledge:
I, , pledge that this is my own independent work, which conforms to the guidelines of academic honesty.
List of known bugs: */

1. Make use of Horstmann's Message, Point, Circle, and Line objects in some fashion.

2. Prompt the user for his or her name and use it

3. Prompt the user for a few mouse clicks. You will store and use the locations of those clicks later in the program.

4. Define and use at least one class that models a graphic entity composed of Point, Circle, and/or Line objects. A Student would be a good ex ofsuch a class, for ex. A JoeBruin or a JosephineBruin class is another good ex.
Your class should have:

i. a public member function void draw() const; which draws the object using GraphicWindow object cwin.
You may want to draw your object on graph paper before defining the draw member function of the class.

ii. some private helper functions that member function draw() can invoke. The helper functions should draw smaller components of the graphical object.

iii. a private Point member variable called location on which all the Point, Circle, and/or Line object components make up the object depend.

iv. a public constructor that takes in a single argument used to initialize the created object’s location member variable.

v. a public member function void move(const Point& newLocation); that moves the location member variable so that it has the same coordinates asnewLocation.

•    You are expected to make the cartoon tasteful. The cartoon should not offend or insult anyone or any school. Imagine that your prospective employer will be able to see this cartoon.
•    Be sure to comment your code well.
•    Be sure to upload your solution source code file GoBruins.cpp using the CCLE website.
•    Make sure you check to see if your program was submitted correctly.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M9836
  • Price:- $80

Guranteed 48 Hours Delivery, In Price:- $80

Have any Question? 


Related Questions in Programming Language

Algorithmfor each of the problems below state the purpose

Algorithm For each of the problems below state the purpose in your own words, specify input that is needed, expected output, and the step by step process that will obtain the output from the input (the algorithm). Rememb ...

Project instructionsinstructions complete the following two

Project Instructions Instructions: Complete the following two assignments as your final project. These two assignments review everything you learned from Chapters 1-8. Assignment 1 Write an application containing three p ...

Write a function that returns a number given an uppercase

Write a function that returns a number, given an uppercase letter, as follows: def getNumber(uppercaseLetter): Write a test program that prompts the user to enter a phone number as a string. The input number may contain ...

In this lab you will write a program that simulates the

In this lab you will write a program that simulates the dialing of a phone number. The phone number may have either digits, letters, or both. (See sample output below) Here are the letters associated with each digit. 0 5 ...

1 design a class called complex the class enables

1) Design a class called Complex. The class enables operations on so called complex numbers. These are numbers of the form realPart + imaginary Part *i, where the i has the value 2) Design the class to have two private m ...

Programming logic and design questions1 given the

Programming Logic and Design Questions 1 given the following pseudocode module header: module calculate something (real x,real y, real z,) when the following call executes: call calculate something (21.6, 43.1, 15.2) sho ...

Assignment- computer applications for businesslearning

Assignment- Computer Applications for Business Learning Objectives: This assignment is designed to practice: 1. Basic understanding of JavaScript variables, including; a The declaration, initialization and assignment pro ...

Write a program that will predict the size of a population

Write a program that will predict the size of a population of organisms. The program should ask for the starting number of organisms, their average daily population increase ( as a percentage), and the number of days the ...

Lab assignmentwe begin our investigation of object-oriented

Lab Assignment We begin our investigation of object-oriented programming by creating an object-oriented program with a class called Employee. You will create two objects based on the Employee class, along with a class th ...

Assignmentstatementfirst design an interface

Assignment Statement First, design an interface InteractiveGame that generalizes the playing of any two-person game between a human player and the computer. Design two actual games, Nim and another game of your choice, e ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro