Display the menu and then execute the users choice

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

Please design, write the code in C++ and create the requisite submission files for the following problem:

A menu-driven program that offers the user 5 options as follows:

Menu:

1. Display array

2. Add up all elements in the array and display that number.

3. Add 1 to each element in the array.

4. Swap the values in row one with the values in row three.

5. Exit

In main(), declare and initialize a 2-dimensional array that contains 5 x 5 elements. Initialize the elements to:

2,8,6,16,10

-1, -2, -3, -4, -5

9,6,9,20,27

49, 63, 89, 12, 17

-900, -800, 800, 600, 200

Display the menu and then execute the user's choice. Keep displaying the menu (and executing the user's choice) until the user chooses Option 5. (See pseudocode in this lesson for design help.)

Execute the chosen menu option by passing the array to a specific function which will do the work (in other words, there will be 4 array processing functions and one exit function).

No global variables, although global constants are fine. Remember, you must pass the array to the functions and not do the work in main().

Properly document your code with header blocks for each function and internal comments.

Reference no: EM132095136

Questions Cloud

Develop a gantt chart on any thing you have worked on : Please develop a Gantt Chart on any thing you have worked on that has tasks ( at least 5) and a time line (at least 6 months).
How could a french news stream see an issue different : How could a French news stream see an issue different from NBC? Explain that. Take a chance, make a guess.
Define and explain java mathematical operators : Define and explain Java Mathematical Operators (Addition, Subtraction, Multiplication, Division, Modulus).
Professional recommendation that summarizes and captures : A successful answer must be a professional recommendation that summarizes and captures all the information provided. Although there is not a specific page count
Display the menu and then execute the users choice : Display the menu and then execute the user's choice. Keep displaying the menu (and executing the user's choice) until the user chooses Option 5.
Write a loop to do the above summation more efficiently : Write a line of code on the blank line that will create a loop that will end when y is greater than 100.
Discuss the likelihood of stonyfield : Discuss the likelihood of Stonyfield having a strong influence on Danone's sustainability practices over the long term.
Write a program that will ask the user to input the names : Write a program that will ask the user to input the names of cities they would like to visit.
Terms of document design : Review the following documents and discuss which version is more effective in terms of document design, and why.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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