Purchase Solution

C++ Programming for Personal Information

Not what you're looking for?

Ask Custom Question

Programming Assignment 7 - Arrays

Purpose: This assignment is designed to demonstrate your understanding of repetition structures with an unknown number of iterations as well as arrays.

Assignment:

Write a complete C++ program with jGrasp to do the following:
 Store the first 100 multiples of a user-supplied integer
 Print these values forward and backward from storage (in an array)
 Print any values that are multiples of a second user-supplied integer or a message indicating that there are no multiples of that number if that is so.
Save your program as multiples.cpp

Program 7 will be worth 100 points and will be assigned points as follows:
Program compiles 30 Points
Documentation
Header documentation (programmer info) 5 Points
Input
User prompted values 10 Points
Output
Personal Information (printed on monitor) 5 Points
Correctly printed output 25 Points
Storage
1 array only (and MUST create and use an array) 25 Points
Points will be deducted if you simply use a formula in a loop to print these values.
They must be stored in an array and printed from the array!
Total 100 Points

Attachments
Purchase this Solution

Solution Summary

The expert examines C++ programming for personal information. An array is created to deduct the loops to print.

Solution Preview

The multiples.cpp file takes in two numbers num1 and num2.
It first stores the first 100 multiples of num1 in an array called arr[].
It then shows these multiples using a for loop and by going through the array arr[] from index 0 to index 99 (Remember in ...

Purchase this Solution


Free BrainMass Quizzes
Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

C# variables and classes

This quiz contains questions about C# classes and variables.

Basic Networking Questions

This quiz consists of some basic networking questions.