Use the sales array to answer. The array was declared using the int sales[5] = {10000, 12000,
Question:
Use the sales array to answer. The array was declared using the int sales[5] = {10000, 12000, 900, 500, 20000}; statement.
a. while (x <= 4)
x += 100;
//end while
b. while (x <= 4)
{
sales = sales + 100;
x += 1;
} //end while
c. while (sales < 5)
{
sales[x] += 100;
} //end while
d. while (x <= 4)
{
sales[x] += 100;
x += 1;
} //end while
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (6 reviews)
d...View the full answer
Answered By
Somshukla Chakraborty
I have a teaching experience of more than 4 years by now in diverse subjects like History,Geography,Political Science,Sociology,Business Enterprise,Economics,Environmental Management etc.I teach students from classes 9-12 and undergraduate students.I boards I handle are IB,IGCSE, state boards,ICSE, CBSE.I am passionate about teaching.Full satisfaction of the students is my main goal.
I have completed my graduation and master's in history from Jadavpur University Kolkata,India in 2012 and I have completed my B.Ed from the same University in 2013. I have taught in a reputed school of Kolkata (subjects-History,Geography,Civics,Political Science) from 2014-2016.I worked as a guest lecturer of history in a college of Kolkata for 2 years teaching students of 1st ,2nd and 3rd year. I taught Ancient and Modern Indian history there.I have taught in another school in Mohali,Punjab teaching students from classes 9-12.Presently I am working as an online tutor with concept tutors,Bangalore,India(Carve Niche Pvt.Ltd.) for the last 1year and also have been appointed as an online history tutor by Course Hero(California,U.S) and Vidyalai.com(Chennai,India).
4.00+
2+ Reviews
10+ Question Solved
Related Book For
Microsoft Visual C# An Introduction to Object-Oriented Programming
ISBN: 978-1337102100
7th edition
Authors: Joyce Farrell
Question Posted:
Students also viewed these Computer science questions
-
Consider the following problem. Maximize Z = -x1 + 4x2, subject to -3x1 + x2 6 x1 + 2x 4 and x2-3, (no lower bound constraint for x) Identify the optimal solution graphically
-
Using a Venn diagram, show that A C B if and only if A U B = B.
-
A 4 m x 5 m x 6 m room contains 120 kg of air. Determine (a) Density. (b) Specific volume. (c) Mole (d) Specific molar volume of air. Assume molar mass of air to be 29 kg/kmol.
-
Discuss documents that need to be included in recovery documentation?
-
Use Theorem 2 to find local extrema in Problems 5-24. f(x,y) = x In y + x2 - 4x -5x + 3
-
What type of budget pertains to cash receipts and disbursements? Explain.
-
The race track is a fascinating example of financial market dynamics at work. Let's go to the track and make a wager. Suppose that, from a field of 10 horses, we simply want to pick a winner. In the...
-
Neighborhood Supermarkets is preparing to go public, and you are asked to assist the firm by preparing its statement of cash flows for 2014. Neighborhood's balance sheets at December 31, 2013 and...
-
1. What the costs relevant to the aggregate production plan include ? 2. To receive funding in the budgeting process, accurate long-range planning increases the likelihood of receiving the requested...
-
Knowing that the tension is 850 N in cable AB and 1020 N in cable AC, determine the magnitude and direction of the resultant of the forces exerted at A by the two cables. G00 ann
-
Use the sales array to answer. The array was declared using the int sales[5] = {10000, 12000, 900, 500, 20000}; statement. Which of the following if clauses verifies that the array subscript stored...
-
Use the nums array to answer. The array was declared using the int nums[4] = {10, 5, 7, 2}; statement. The x and total variables are int variables and are initialized to 0. The avg variable is a...
-
Davis and Shipman founded a partnership under the name of Shipman & Davis Lumber Company. Four years later, the partnership was dissolved by written agreement. Notice of the dissolution was published...
-
A \(70 \mathrm{~kg}\) human sprinter can accelerate from rest to \(10 \mathrm{~m} / \mathrm{s}\) in \(3.0 \mathrm{~s}\). During the same time interval, a \(30 \mathrm{~kg}\) greyhound can accelerate...
-
Yang [2012] computes \(E|x-X|^{s}\) as \(|x|^{s}\) for \(|x| \geq 2000\). Compute the relative error in this approximation. That is, compute (true value approximate value)/(true value) for the Cauchy...
-
Fleas have remarkable jumping ability. A \(0.50 \mathrm{mg}\) flea, jump- \(\mathrm{BlO}\) ing straight up, would reach a height of \(40 \mathrm{~cm}\) if there were no air resistance. In reality,...
-
Explain the meaning of the statement "If regression model assumptions SR1-SR5 hold, then the least squares estimator \(b_{2}\) is unbiased." In particular, what exactly does "unbiased" mean? Why is...
-
A typical horse weighs \(5000 \mathrm{~N}\). The distance between the front and rear hooves and the distance from the rear hooves to the center of mass for a typical horse are shown in Figure P8.6....
-
Yanni, a single individual, reports the following information for the tax year. Salary .............................................$80,000 State income taxes .................................6,800...
-
Shreemaya Hotel in !adore was facing a problem of low demand for its rooms due to off season. The Managing Director (MD) of the hotel, Mrs. Sakina was very worried. She called upon the Marketing...
-
Which of the following is acceptable in a structured program? a. Placing a sequence within the true branch of a dual-alternative decision b. Placing a decision within a loop c. Placing a loop within...
-
In a selection structure, the structure-controlling condition is______________. a. Tested once at the beginning of the structure b. Tested once at the end of the structure c. Tested repeatedly until...
-
In a selection structure, the structure-controlling condition is______________. a. Tested once at the beginning of the structure b. Tested once at the end of the structure c. Tested repeatedly until...
-
How can bash shell scripting improve resource utilization and process management in Unix systems?
-
A solid sphere that is uniformly positively charged produces an electric field. Assume no other objects are around. What is the magnitude of the electric field a distance r from the center of the...
-
Why is potential difference important in x - ray production?
Study smarter with the SolutionInn App