ENGR1412 F11 Project#5

ENGR1412 F11 Project#5 - ENGR 1412 - INTRODUCTION TO...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
ENGR 1412 - INTRODUCTION TO COMPUTER PROGRAMMING F ALL 2011, JOHANNES 1 of 3 Project #5 - Due during the Week of October 24 – 28, 2011 (Beginning of Labs) Finding Solutions and Other Games 1) Write a program using arrays to print all perfect numbers between 1 and 10000. A perfect number is a positive integer that equals the sum of all of its factors excluding itself. Ex. 6 = 1 + 2 + 3 . Write a VBA program to find all perfect numbers in a specified range and print them to excel. 2) Program a hot and cold scout game on VBA. The user will search for a particular object in the field of the game and the computer will guide the user through their steps based on whether the user is getting closer or away from the object (randomly positioned at the start of the program). Your program should repeatedly ask the user the direction they want to move in (left, right, up, down) and print out messages such as “Wrong Direction”, “Cold”, etc. (be creative). When the user reaches the object, your program should print out the information for how many steps they took to reach the object. 3) Program to shuffle cards. Write a VBA program to shuffle a deck of 52 cards. The input for your program with be the deck of cards in any particular order as specified by the user (on excel). Your program should take this deck and randomize the order in which the cards are placed so as to simulate the shuffling operation and print the shuffled order back to the user. Hint:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

ENGR1412 F11 Project#5 - ENGR 1412 - INTRODUCTION TO...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online