public class DaysArray { public static void main(String[] args) { String days[] = {"sun","mon","tuw","wed","thu","fri","sat"}; System.out.printf("%3s%8s\n","Day","Index"); System.out.printf("===========\n"); int i = 0; while(i<days.length) { System.out.printf("%3s%8s\n",days[i],i); i++; } } }
In [19]: System.out.printf("%3s%85\n", "Day", "Index"); System.out.printf("===========\n"); for (int i = 0; i < days.length; i++) {...
A local franchise of a national chain of day-old pastry stores recorded the number of customers that came in to the store for five weeks this fall. The national franchisor states that the percentage of customers is distributed as follows: Sunday – 20%, Monday – 8%, Tuesday – 6%, Wednesday – 7%, Thursday – 12%, Friday – 22%, Saturday – 25%. The manager doesn’t trust the franchisor and wants to show his store has different percentages. Use a χ² Goodness-of-Fit...
A local franchise of a national chain of day-old pastry stores recorded the number of customers that came in to the store for five weeks this fall. These data are recorded in the attached file. The national franchisor states that the percentage of customers is distributed as follows: Sunday – 20%, Monday – 8%, Tuesday – 6%, Wednesday – 7%, Thursday – 12%, Friday – 22%, and Saturday – 25%. The manager doesn’t trust the franchisor and wants to show...
Given the following enumeration, what is the output from the printf(): enum day { sun, mon, tue, wed, thu, fri, sat}; enum day d; d = mon; prrintf("%d\n", d); a. mon b. 1 c. MON d. 0
I need help how to do the steps 9, 10, 11 A1 x Day A fx B C D E F G H I J K Afternoon Sales over $100 Shift Cups Sold Kids Sold Kids sold Cups sold (6 oz) (12 oz) 54 52 14 28 Hours Morning Afternoon Evening 1 Day 2 Sun 3 Sun 4 Mon 5 Mon 6 Tue 7 Tue 8 Wed 9 Wed | 10 Thu | 11 Thu 12 Fri 13 Fri 14...
Help with Python problem. ###################################### Q3 ############################### dowt = ('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat') # day-of-week-tuple, # year = 2020 cnt = 3 # 2020/1/1 is a Wednesday, so let us start a counting index of 3 for Wednesday, and keep adding one # m = 3 # this will be a variable to be looped through eventually. I use the convention of 0–11 for the twelve months # # As the cnt value changes, we want to...
c++ please :) First, ask the user to enter a year (4-digit) and what week day does this year starts with (String) For example, the year 2018 starts with the week day "Friday". In this case, the calendar should start from January 1 which is Friday, 2018 Your program should produce a formatted calendar for the specified year and there should be a blank line after each month. Moreover, the month and the year should be centered over each month....
Heavenly Chocolates manufactures and sells quality chocolate products at its plant and retail store located in Saratoga Springs, New York. Two years ago, the company developed a Web site and began selling its products over the Internet. Web site sales have exceeded the company’s expectations, and management is now considering strategies to increase sales even further. To learn more about the Web site customers, a sample of 50 Heavenly Chocolate transactions was selected from the previous month’s sales. Data showing...
Can someone fix my coding please it's a calendar some days are placed wrong. I just want the Main menu to display first and second option and four option to end the program properly. Please remove option number 3 Find the number of days between 2 selected dates and the code that belongs to this function. #include<stdio.h> void days(int,int,int,int,int,int); int month(int,int); int mon[12]={31,28,31,30,31,30,31,31,30,31,30,31}; #define TRUE 1 #define FALSE 0 int days_in_month[]={0,31,28,31,30,31,30,31,31,30,31,30,31}; char *months[]= { " ", "\n\n\nJanuary", "\n\n\nFebruary", "\n\n\nMarch", "\n\n\nApril",...
a) Declare and instantiate an array named scores of twenty-five elements of type int. (b)Write a statement that declares an array namedstreetAddress that contains exactly eighty elements of typechar. 2. In a single statement: declare, create and initialize an arraynamed a of ten elements of type int with the values of the elements (starting with the first) set to 10, 20,..., 100 respectively. 3. Declare an array reference variable, week, and initialize it to an array containing the strings "mon",...
Create a calendar for the year 2019, for a particular month (of your choosing ), highlight a particular date (also your choosing) with an asterisk. Make sure the calendar displays the week, the days of the week and the year. Make sure the MSU Programming Class appears in the title of the Calendar. I will choose May 1st for the month and date. The code below is what I will be using. Please show where I can go to in...