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.
-
Bangi Chemicals Ltd make chemicals for the defence industry. They had no subsidiary companies but in mid 2X10, they acquired 60 per cent of the share capital of an American company for 6m paid partly...
-
Kate Miller owns a dance studio in Los Angeles, California. Students can buy access to the dance classes by paying a monthly fee. Unfortunately, many of Kates students are struggling actors and...
-
Munch N Crunch Snack Company is considering two possible investments: a delivery truck or a bagging machine. The delivery truck would cost $ 43,056 and could be used to deliver an additional 95,000...
-
Find an IPO valuation, you can have local(Philippine Stocks) or international company. If the IPO is past IPO include in your report the price after the IPO, did it rise or fall and the reason why....
-
Your clients Matthew & Ruth have come to see you for some advice on purchasing a condominium in Toronto. Matthew & Ruth are at present renting a house for $1800 per month in Kitchener and...
-
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...
-
Richard Grassgreen was executive vice president and then president and chief operating officer of Kinder-Care, Inc., the largest proprietary provider of child care in the country. The company was...
-
An ornamental pond is 0 . 8 m deep and has a surface area of 1 0 0 m 2 . If the sunlight falling on the pond transfers energy to the surface of the pond at an average rate of 2 0 0 watts / m 2 , find...
-
1. As an administrator of the Contoso Corporation, you are responsible for configuring the users' mobile computers. You want to ensure that when a computer system accesses a public network-such as...
-
Homeowner contracted with Builder to build an addition onto her home for $25,000. Homeowner paid builder $10,000 of the cost up front. Partway through construction, Builder received a much more...
-
Jeremy and Rene recently graduated college and started a business to market an app that Rene developed. Both enjoy student debt to repay. Jeremy owns a ten-year-old Honda Civic, and Rene uses Sound...
-
Develope an essay on this question: How is the concept of resilience developed in novel and two other texts from the course? I have chosen Medicine Walk, Oedipus Rex and I Found The House My...
-
The following data were taken from the balance sheet of Nilo Company at the end of two recent fiscal years: a. Determine for each year (1) the working capital, (2) the current ratio, and (3) the...
-
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] ...
-
LL Incorporated's currently outstanding 10% coupon bonds have a yield to maturity of 14%. LL believes it could issue new bonds at par that would provide a similar yield to maturity. If its marginal...
-
8 . You purchase a home for $ 6 9 , 7 5 0 at 6 . 5 % for 3 0 years. The property taxes are $ 2 , 4 5 0 per year, and the hazard insurance premium is $ 2 5 6 semiannually. Find the monthly PITI...
-
In Pennsylvania, the number of teacher strikes for the last 14 years are shown. 3 7 7 7 8 8 9 9 10 14 14 15 18 40d. Construct a stem and leaf plot for the data. Stem Leaf 0 Correct Correct Correct 4...
Study smarter with the SolutionInn App