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: 88% (9 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.
-
Here and on page 84 are financial statements of Ogleby Company. OGLEBY COMPANY Income Statement For the Year Ended December 31, 2014 Net sales ..........$2,218,500 Cost of goods sold ..... 1,012,400...
-
Compute the lease payments for the forklift lease of Example 24.1 if the lease is (a) a fair market value lease, (b) a $1.00 out lease, or (c) a fixed price lease that allows the lessee to buy the...
-
1. Which process should VBB choose to produce?? 2. How much would VBP be willing to pay for the testing that is currently offered, for each batch?? 3. Would we be considered a perfect test, at twice...
-
All work must be shown on every facet of the solution. This includes a timeline with cashflows, timing and rates clearly laid out and formulas (in pure form, not in the calculator or excel form). A...
-
You are considering a 10-year investment project. At present, the expected cash flow each year is $10,000. Suppose, however, that each years cash flow is normally distributed with mean equal to last...
-
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...
-
An AR(2) process is described by the difference equation x(n) = 0.81x(n 2) + (n) Where (n) is a white noise process with variance 2 . (a) Determine the parameters of the MA(2), MA(4), and MA(8)...
-
Benjamin DeCosta, CFA has gathered selected year-end balance sheet information (all amounts in millions) for Palantir Technologies (PLTR): Total assets $11,050 Total liabilities $9,500 Preferred...
-
Data on cost objects and cost drivers must be: Question 9 options: Accurate and comprehensive. Comprehensive and efficient. Clean and consistent. Clean and understandable. Consistent and accurate.
-
If The next two questions relate to this information: The population of Washington state in 2012 was estimated to be 6.9 million, increased from the 2011 population estimate of 6.8 million people....
-
Enron and WorldCom in 2001 (Accounting Frauds) are good examples of opportunity cost. ii. Minimizing operational costs cannot be a corporate goal. ili. Maximizing firm value is typically the top...
-
could you provice a full explatioan regarding this discrepancy for fanduel? I used my 20 year old daughter debit card to deposit money - However, she doesn't have my account or wagers any bets. - She...
-
A beam of neutrons has the same de Broglie wavelength as a beam of photons. Is it possible that the energy of each photon is equal to the kinetic energy of each neutron? If so, at what de Broglie...
-
Continuation of Exercise 4-83. (a) What is the probability that the first major crack occurs between 12 and 15 miles of the start of inspection? (b) What is the probability that there are no major...
-
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] ...
-
Saved Blue Cross Eire Products is a specialty lubricants company. The Lake Plant produces a single product in three departments: Filtering, Blending, and Packaging. Additional materials are added in...
-
Direct labor-hours required to support estimated production Machine-hours required to support estimated production Fixed manufacturing overhead cost Variable manufacturing overhead cost per direct...
-
(Under the FIFO method, we assume any units that were not completed last period (beginning work in process) are finished before anything else is started. For these units, since they are already 60%...
Study smarter with the SolutionInn App