Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

A)  prepare C++ statements to do the following:
1.    Declare an array alpha of 15 components of the type int.
2.    Output the value of the tenth component of the array alpha.
3.   Set the value of the fifth component of the array alpha to 35.
4.   Set the value of the fourth component of the array alpha to three times the value of the eight component minus 57.
5.   Output alpha so that five components per line are printed.
Please see attachment for full problem.

A) prepare C++ statements to do the following:
Declare an array alpha of 15 components of the type int.
2. Output the value of the tenth component of the array alpha.
3. Set the value of the fifth component of the array alpha to 35.
4. Set the value of the fourth component of the array alpha to three
times the value of the eight component minus 57.
5. Output alpha so that five components per line are printed.
B) Suppose list is an array of five components of the type int. What
is stored in list after the following C++ code executes?
for (i = 0; i 

{
list[i] = 2 * i + 5;
if (i % 2 == 0)
list[i] = list[i] â?" 3;
}
C) Given the declaration:
char str1[15];
char str2[15] = â??Good dayâ?;
mark the following statements as valid or invalid. If a statement is
invalid, describe why.
1. str1 = str2;
2. if (str1 == str2)
cout 

3. if (strlen(str1) >= strlen(str2))
str1 = str2;
4. if (strcmp(str1, str2) 

cout  

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9122699

Have any Question?


Related Questions in Computer Engineering

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

In a random sample of 100 male students 80 reported that

In a random sample of 100 male students, 80 reported that they were in favour of writing announced tests, while in a sample of 50 female students 23 favoured writing announced tests. Let the male students be population 1 ...

Question what are some of the specifics of a dbms that must

Question : What are some of the specifics of a DBMS that must be taken into consideration when building a database design? The response must be typed, single spaced, must be in times new roman font (size 12) and must fol ...

Question classyou need to research the topic and discuss

Question: Class, You need to research the topic and discuss the topic in at 500 words with references. Then, reference will not count as a discussion. Question: What would be the impact of predictive modeling on healthca ...

What are some skills individuals who work in the field of

What are some skills individuals who work in the field of cyber security need to prevent hacks in to a company's computers?

Question suppose a new standard the iddd-643 standard is

Question Suppose a new standard, the IDDD-643 standard, is developed for storing numbers in a string of 16 bits. The first bit is used for the sign of the number (0 if positive and 1 if negative). The next 5 bits store t ...

Question this assignment consists of two 2 sections a

Question: This assignment consists of two (2) sections: a project introduction and a project plan. You must submit both sections as separate files for the completion of this assignment. Label each file name according to ...

In python why would one use a decision statement contained

In Python, Why would one use a decision statement contained inside the branch of another decision statement?

Part 1 prepare year 1 revenuesgo to the revenues tab and

Part 1: Prepare Year 1 Revenues Go to the Revenues tab and compute the total revenues for each customer and the total Cost of Goods Sold (COGS) for each client. Notice that there are two products. There is a quantity tal ...

Question recall the optimal page replacement algorithmthe

Question : Recall the optimal page replacement algorithm. The victim page chosen by the algorithm is the one that will not be used the longest period of time. Can this algorithm exhibit Belady's anomaly? Justify your ans ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As