Write a c++ program for arrays

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

Attached is a C++ program four of us did many years ago.I have a much better understanding of C++ than Matlab, but in this program their are many arrays I think in the form of for example j[]=[3 5 6], etc. First, I am terrible at arrays and through this program, which another guy took care of the arrays part since he did a previous robot arm movement program before this program was made did the array parts.

First, please help me...An array is nothing more than a row vector or like in MAtlab right, which stores a set of numbers to be used elsewhere right?

Second, now some are in form j[] and some in form j[10], what is difference?

Next, look at the fprint statements on the 3rd page of the program attached. What does thefprintf(stdprn,I%d,....do and what is going on with that code compared to the rest of the code, then fprintf(stdprn, S5/nN...etc. Explain all this please!

Fouth, in the same routine on 3rd page for example, for int (j=0; j<6, j++) I know this for loop takes all 10 values from each array and outputs them somehow - explain how, and also in the code routine you have arrays b5 - h5, the the for loop using the variable j. OK, in programming or this program how does the for loop know to execute each array b5 - h5 and its elements if the variable j in the for loop does not have any connection with the arrays? In other words I do not see how hte code works, or is it just the fact as the code executes from the fisrt line to the last the code is in order. Bare with me. As the arrays b5 - h5 etc are listed in the code, or its order, the next statement of the for loop is basically just execusted for the arrayss. In other words C++ looks above the for loop code and says, oh, everything above me needs to be outputted until my for loop according to the boundaries set( j=0; j<6, j++) , then go to the next line of code beneath me and keep running the program till the end, etc? Is this logic correct?

Attachment:- cplusplus1.doc

Reference no: EM13938264

Questions Cloud

What are the different types of anemias : What are the different types of anemias? Compare the causes, symptoms, diagnostic tests, and treatments of different types of anemia in a table. State and explain which type of anemia you think is the most difficult to treat.
Calculate profit as a percent of sales in the prior year : Calculate profit as a percent of sales for the new level of sales and explain why the percent is greater than the one calculated in part a.
Compute one years straight-line depreciation expense : Compute one year's straight-line depreciation expense on the renovated refrigeration unit. Compute one year's straight-line depreciation expense on the refrigeration unit before the addition and renovations.
Difference between sympathomimetic and sympatholytic drugs : Why can the sympathetic division produce simultaneous effects throughout the body, but parasympathetic effects typically are localized to specific organs?
Write a c++ program for arrays : Next, look at the fprint statements on the 3rd page of the program attached. What does thefprintf(stdprn,I%d,....do and what is going on with that code compared to the rest of the code, then fprintf(stdprn, S5/nN...etc. Explain all this please!
Career paths in the hospitality industry : There are many possible career paths in the hospitality industry. How does your current employment prepare you for the future? How do your personal, professional, and educational experiences correlate; how is this correlation part of your career p..
Case and support this with relevant resources : Identify and explain how the codes and guidelines were used to support the inquiry findings. Consider a range of legal, ethical and professional issues inherent in the case and support this with relevant resources.
What would be the incremental benefit of obtaining : What would be the incremental benefit of obtaining 15 additional labor hours?
Blending process between two miscible liquids : Tests on a small scale tank 0.3 m in diameter show that a blending process between two miscible liquids (both aqueous with properties the same as water) is complete after 1 minute when using an impeller speed of 250 revolutions per minute. It is d..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Problem related to calculating average in program

Here's the program i must do: 3 evaluators will evaluate 4 parameters ( just name them parameter1, parameter2 ...) the program must ask the evaluators to input those parameters but as letters (N=1,M=2,S=3,B=4,E=5) then I have to do the average for..

  You have in your program an arraylist which includes

you have in your program an arraylist that contains employee salaries double type in arbitrary order. you need to

  Project

Unit 3 Individual Project SSCI210 – 1304B – 01 A typical individual who commits who commits hate crimes whether it is against or aimed at the Gay/lesbian community , the persons of color or the Jewish community, ( I mention these three because they a..

  Write a program using one while loop

Write a program using one while loop that will read in a sequence of integers guaranteed to be within the inclusive range of 0 through 99,999 from the user

  Write a declaration for s structure named car

Write a declaration for s structure named cars. The fields in the record should include make, model, year and cost. Include a constructor to initialize the value in the structure.

  Write c program that prompts for variable number of integers

Write a C program that prompts for a variable number of integers, adds them up, averages them, and prints out the average.

  An application that instantiates five librarybook object

Write an application that instantiates five LibraryBook objects

  Store user input - write c++ program

Write C++ program to provide the following functionality - Ask users to enter 10 integer numbers.

  What output will be produced if the exception is thrown

What output will be produced if the exception is thrown with the constructor with parameters with the following actual parameter?

  Once the user enters a 0

Once the user enters a 0 you will exit the loop, close the file and execute the code as previously designed until you have displayed all of the scores and the average handicap.

  Whitewater high school has contracted

Whitewater High School has contracted you to write a program that will read a file of student names and test scores in the formation FIRST NAME LAST NAME: SCORE1 SCORE2 SCORE3, where each of the scores is an integer

  Write a c++ program to check a number is even or odd

Write a C++ program to check whether a number entered by user is even or odd.

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