Assignment 1write a program using vectors and iterators

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

ASSIGNMENT 1

  • Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles. The user should be able to view all DVD titles in his library, add and delete titles from the library, and exit the program.
  • Your program should offer a menu with choices.
  • After an addition of a title is made, the list is to be SORTED so it is in alphabetical order.
  • The program should loop after each choice and not exit unless a key to exit is pressed.

ASSIGMENT 2

  • Create a program that uses at least two functions that will be called from your main. This program is a number game program that asks for parts of your phone and after manipulating it mathematically, eventually outputs your entire phone number. The directions for the game are:

1- Enter the first 3 digits of your phone number( not area code-user input)

2- Multiply by 80

3- Add 1 to the total

4- Multiplay by 250

5- Add the last 4 digits of your phone number (user input)

6- Add the last 4 digits of your phone number again

7- Substract 250 from total

8- Divide the number by 2

9- Show final results

10- Remember to use cout statements after each math function so the user sees how the "trick" is progressing.

Reference no: EM13347585

Questions Cloud

Problem 1 create a simple shell basically your shell should : problem 1. create a simple shell. basically your shell should read the line from standard input parse the line with
Analytical exercisescenario abc company sells widgets in : analytical exercisescenario abc company sells widgets in three varieties red yellow and blue but has lost money for
Problem 1consider that the meaning of the bun instruction : problem 1.consider that the meaning of the bun instruction of the basic computer is changed to implement the relative
1 you are a commuter student at a local university : 1. you are a commuter student at a local university. because of the steep rise in gasoline prices your parents decide
Assignment 1write a program using vectors and iterators : assignment 1write a program using vectors and iterators that allows a user to maintain a personal list of dvd titles.
1why does rent control result in a shortage of rental : 1.why does rent control result in a shortage of rental units.2.how does price elasticity of demand affect how much of a
1 securityimplement security so that all users can view the : 1. security.implement security so that all users can view the information about the projects but only authenticated
Problem a compound cylinder is composed of a tube of 250mm : problem a compound cylinder is composed of a tube of 250mm internal diameter at 25mm wall thickness. it is shrunk on to
Joe has two children sydney age 5 and william age 2 that he : joe has two children sydney age 5 and william age 2 that he wants to provide for their education funding. currently

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that stores the number

Write a program that stores the following numbers in the array named miles : 15, 22, 16, 18, 27, 23, 20. Use a pointer to copy the data stored in miles to another array named dist and then display the values in the dist array.

  Define a class for a type called fraction

Define a class for a type called Fraction. This class is used to represent a ratio of two integers. Include mutator functions that allow the user to set the numerator and the denominator.

  Write a function named largest which will receive the array

Write a function named largest which will receive the array as input and return the variable LargestNumber.

  Write a program in which the user is prompted

Write a program in which the user is prompted for the number of values that they will be entering. The user then enters that number of integers into an array

  Our string class always deletes the old character

Our String class always deletes the old character buffer and reallocates a new character buffer on assignment or in the copy constructor. This need not be done if the new value is smaller than the current value

  Emulates the behavior of a bus

Write a program that emulates the behavior of a bus. The bus must have a schedule ( a finite number of times for it to stop) and a certain capacity (number of passengers). In this program the bus has two states: stopped and going.

  Const int num_years

How do you get this program to get both player input and then display results(As described on bottom) #include  const int NUM_YEARS=15;//The number of years const int NAME_SIZE=32;//The max size of the player name string

  Creates a bus class

write a program that creates a bus class. create a constructor that initializes the number of passengers and number of seats. declare four objects. use the default copy constructor to initialize two of the objects.

  Program that generates 50,000 random integers from 1 to 6

Program that generates 50,000 random integers from 1 to 6 (inclusive). Count the number of times that each number occurs and output the totals

  Which of the following is a true statement

Which of the following is a true statement?

  Display your name in the title bar

Display your name in the title bar of the browser, declare the DOCTYPE for HTML5, and create a comment listing the lab number, the author, and the date.

  Write a program that calculatesand displays the distance

Distance per Tank of GasA car with a 20-gallon gas tank averages 21.5 miles per gallon when driven in townand 26.8 miles per gallon when driven on the highway.

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