A company creates two new websites, Site X and Site Y, for selling bicycles. Various programs are
Question:
A company creates two new websites, Site X and Site Y, for selling bicycles.
Various programs are to be written to process the sales data.
These programs will use data about daily sales made from Site X (using variable SalesX) and Site Y (using variable SalesY).
a) Name the data structure to be used in a program for SalesX.
b) The programmer writes a program from the following pseudocode design.
i) Trace the execution of this pseudocode by copying and completing this trace table.
ii) Describe, in detail, what this algorithm does.
Transcribed Image Text:
Data for the first 28 days is shown below. SalesDate SalesX SalesY 1 03/06/2015 1 04/06/2015 1 3 05/06/2015 4 06/06/2015 5 07/06/2015 6 08/06/2015 4 4 09/06/2015 5 9. 8. 10/06/2015 11 9 11/06/2015 4 28 01/07/2015 14 8 2. 00 3. 4.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 90% (10 reviews)
a The data structure to be used in a program for SalesX can be an array list or any other ...View the full answer
Answered By
James Warinda
Hi! I’m James Otieno and I'm an experienced professional online tutor with countless hours of success in tutoring many subjects in different disciplines. Specifically, I have handled general management and general business as a tutor in Chegg, Help in Homework and Trans tutor accounts.
I believe that my experience has made me the perfect tutor for students of all ages, so I'm confident I can help you too with finding the solution to your problems. In addition, my approach is compatible with most educational methods and philosophies which means it will be easy for you to find a way in which we can work on things together. In addition, my long experience in the educational field has allowed me to develop a unique approach that is both productive and enjoyable.
I have tutored in course hero for quite some time and was among the top tutors awarded having high helpful rates and reviews. In addition, I have also been lucky enough to be nominated a finalist for the 2nd annual course hero award and the best tutor of the month in may 2022.
I will make sure that any student of yours will have an amazing time at learning with me, because I really care about helping people achieve their goals so if you don't have any worries or concerns whatsoever you should place your trust on me and let me help you get every single thing that you're looking for and more.
In my experience, I have observed that students tend to reach their potential in academics very easily when they are tutored by someone who is extremely dedicated to their academic career not just as a businessman but as a human being in general.
I have successfully tutored many students from different grades and from all sorts of backgrounds, so I'm confident I can help anyone find the solution to their problems and achieve
0.00
0 Reviews
10+ Question Solved
Related Book For
Cambridge International AS & A Level Computer Science
ISBN: 9781510457591
1st Edition
Authors: David Watson, Helen Williams
Question Posted:
Students also viewed these Computer science questions
-
Describe approaches used by Dell within their site design and promotion to deliver relevant offers for different types of online customers.
-
The following pseudocode algorithm has an error. The program is supposed to ask the user for the length and width of a rectangular room, and then display the room's area. The program must multiply...
-
In statistics, you learn about Type I and Type II errors. A Type I error occurs when a statistical test rejects a hypothesis when the hypothesis is actually true. A Type II error occurs when a test...
-
An object is placed on the principal axis of a concave mirror of focal length 10 cm at a distance of 80 cm from the pole. Find the position and the nature of the image.
-
The point estimate for the population mean of an x distribution is , computed from a random sample of the x distribution.
-
Which of the following organizations are likely to use business research? Why? How? a. Manufacturer of breakfast cereals b. Manufacturer of nuts, bolts, and other fasteners c. The Federal Trade...
-
4. Revenue information for Mahoney Corporation is as follows: Consolidated revenue (from the income statement) $400,000 Intersegment sales and transfers 80,000 Combined revenues of all industry...
-
A conventional multiloop control scheme consisting of two PI controllers is to be used to control the product compositions xD and xB of the distillation column shown in Fig. The manipulated variables...
-
In 2022, Fischer Corporation changed its method of inventory pricing from LIFO to FIFO. Net income computed on a LIFO as compared to a FIFO basis for the four years involved is: (ignore income...
-
The Security & Trust Bank employs 4 tellers to serve its customers. Customers arrive according to a Poisson process at a mean rate of 2 per minute. However, business is growing and management...
-
A 1D array, Product, of type STRING is used to store information about a range of products in a shop. There are 100 elements in the array. Each element stores one data item. The format of each data...
-
A computer holds binary floating-point numbers in twos complement form with the binary point immediately after the left-most bit. A 24-bit word is used as follows: a) Three words are held in...
-
The trial balance of Zoop Co. shown below does not balance. Each of the listed accounts has a normal balance per the general ledger. An examination of the ledger and journal reveals the following...
-
Hardwick Corporation manufactures fine furniture for residential and industrial use. The demand for the company's products has increased tremendously in the past three years. As a result, the company...
-
Problem 3: Use the product rule to find the following derivatives. Leave your answer in the form f'(x)g(x)+ f (x) g' (r). That is, do not simplify. (a) s(t)=t3 cos (t) (b) F(y): = (12-1) (v + 5 y)...
-
Do an internet search of two or three organizations in your field of study (Human Resources). Review the organization or business and its hiring practices using some of the questions from the...
-
4. A process was set to meet the design specifications of USL = 26 and LSL = 18. The standard deviation of the process was found to be 1.2. The process mean was set to 22.5. a) Calculate the process...
-
Evaluate the broad environment, e.g., political, social, legal, in which the industry of OCSIP is located. How does this affect the industry?
-
[This is a variation of E 9-3, modified to focus on the lower of cost or market.] Tatum Company has four products in its inventory. Information about the December 31, 2021, inventory is as follows:...
-
Let X be a random variable taking on values a1, a2, . . . , pr with probabilities p1, p2, . . . , pr and with E(X) = μ. Define the spread of X as follows: This, like the standard deviation, is a...
-
Write a Java method that takes an array of float values and determines if all the numbers are different from each other (that is, they are distinct).
-
Write a short Java program that outputs all possible strings formed by using the characters 'c', 'a', 't', 'd', 'o', and 'g' exactly once.
-
Write a short Java program that takes two arrays a and b of length n storing int values, and returns the dot product of a and b. That is, it returns an array c of length n such that c[i] = a[i] ...
-
A project will generate annual cash flows of $237,600 for each of the next three years, and a cash flow of $274,800 during the fourth year. The initial cost of the project is $749,600. What is the...
-
You want to invest annual amounts over the next 15 years. If your goal is to have $15,000 at the end of that time and if you can earn 8 percent on your invested funds, how much do you need to invest...
-
please explain thoroughly how to do in excel 1. Find the number of units to ship from each factory to each customer that minimizes total cost
Study smarter with the SolutionInn App