Visit the NetMotion Web site (www.netmotionwireless.com) and access and read other Mobility XE success stories. Discuss the patterns that can be observed in the benefits that Mobility XE users have realized via its deployment and use.

 Visit the NetMotion Web site (www.netmotionwireless.com) and access and read other Mobility XE success stories. Discuss the patterns that can be observed in the benefits that Mobility XE users have realized via its deployment and use. 

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Get Answer Over WhatsApp Order Paper Now

About the Call of Entrepreneur Movie

Hi,

Need to see the video and finish the assignment. For each question we need to response at least 3 to 4 lines.

 https://www.youtube.com/watch?v=iloKOBrXm60

PFA documents for questions. 

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Get Answer Over WhatsApp Order Paper Now

Assignment

In Chapter 2, please review Figure 2-1: Key roles for a successful analytics project. Select a data analytics of your choice and discuss how the following roles add value to this initiative: Business User, Project Sponsor, Project Manager, Business Intelligence Analyst, Database Administrator, and Data Engineer. Again, please note that you will discuss specific activities that each of these roles may perform on a data analytics project that you select.

Requirements:

– Typed in a word document.

– Please write in APA Style and include at least three (3) reputable sources.

– The complete paper should be between 350-to-500-words.

Find the attached picture of Figure 2-1.

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Get Answer Over WhatsApp Order Paper Now

Case Study

Case Study

Due: Sunday, End of Module by 11:55 p.m. EST

Case Study 14.3 The Navy Scraps Development of Its Showpiece Warship—Until the Next Bad Idea, Page 500.

Questions:

  1. The U.S. Department of Defense has a long history of sponsoring projects that have questionable usefulness. If you were assigned as a member of a project review team for a defense project, what criteria would you insist such a project has in order to be supported? In other words, what are the bare essentials needed to support such a project?
  2. Why, in your opinion, is there such a long history of defense projects overshooting their budgets or failing some critical performance metrics? (Consider other project cases in this text, including the Expeditionary Fighting Vehicle discussed in Chapter 5.)
  3. “The mystery is not that the Zumwalt was canceled. The mystery is why it took so long for it to be canceled.” Do you agree with this assessment? Why or why not?
  4. Google “criticisms of the Littoral Combat Ship” and identify some of the problems that critics have listed. In light of these problems, why do you think the Navy has pressed ahead with the development of the LCS?

Writing Requirements

  • 5-7 pages in length  (excluding cover page, abstract, and reference list)
  • APA format, Use the APA template located in the Student Resource Center to complete the assignment.
  • Please use the Case Study Guide as a reference point for writing your case study.

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Get Answer Over WhatsApp Order Paper Now

Database Systems – Discussion

If you were designing a Web-based system to make airline reservations and to sell airline tickets, which DBMS Architecture would you choose from Section 2.5? Why? Why would the other architectures not be a good choice?

2.5.1 Centralized DBMSs Architecture

2.5.2 Basic Client/Server Architectures

2.5.3 Two-Tier Client/Server Architectures for DBMSs

2.5.4 Three-Tier and n-Tier Architectures for Web Applications

– 2 pages

– apa

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Get Answer Over WhatsApp Order Paper Now

CPT Answer for Software Analyst

 In the space below please provide a brief explanation of how the position for which you are applying for CPT approval directly relates to your program of study. If needed, please refer to the Graduate Course Catalog on https://www.ucumberlands.edu/academics/academic-catalog. Please be sure to write clearly and legibly! 

My Study of subject is MS Information Technology.

Subject:Data Mining, Cloud Computing , Operational Excellence, Business Intelligence, Organization Leader Ship and decision making.

It should be like something attached below.

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Get Answer Over WhatsApp Order Paper Now

using Microsoft SQL Server Management Studio 2012 (or later) or DataGrip

*******************************************************************************
*/

USE TV    — ensures correct database is active

GO
PRINT ‘|—‘ + REPLICATE(‘+—-‘,15) + ‘|’
PRINT ‘Read the questions below and insert your queries where prompted.  When  you are finished,
you should be able to run the file as a script to execute all answers sequentially (without errors!)’ + CHAR(10)
PRINT ‘Queries should be well-formatted.  SQL is not case-sensitive, but it is good form to
capitalize keywords and to capitalize table names as they appear in the database; you should also put
each projected column on its own line and use indentation for neatness.  Example:

  SELECT Name,
         CustomerID
  FROM   CUSTOMER
  WHERE  CustomerID < 106;

All SQL statements should end in a semicolon.  Whatever format you choose for your queries, make
sure that it is readable and consistent.’ + CHAR(10)
PRINT ‘Be sure to remove the double-dash comment indicator when you insert your code!’;
PRINT ‘|—‘ + REPLICATE(‘+—-‘,15) + ‘|’ + CHAR(10) + CHAR(10)
GO

GO
PRINT ‘CIS 275, Lab Week 2, Question 1  [3pts possible]:
What channel is SYFY?
———————
Write a SELECT statement that finds the channels named SYFYP and SYFYHDP in the CHANNEL table of the TV
database. Use a WHERE clause with an OR statement to return only these two channels.

Display only the ChannelNumber and DisplayName columns.

Hint: Correct results will look like this (note that DisplayName is 200 characters wide, so Ive edited a bit):

ChannelNumber DisplayName
————- ———–
59            SYFYP
1411          SYFYHDP
+ CHAR(10)

GO


— [Insert your code here]

GO
PRINT ‘CIS 275, Lab Week 2, Question 2  [3pts possible]:
What channel is OPB?
———————
Write a SELECT statement that finds all the channels with OPB in the display name.
Use a WHERE clause with LIKE and wildcards to find all matching channels.

Display only the ChannelNumber and DisplayName columns.

This time, use CONVERT to make the DisplayName be 10 characters wide. Use AS to give your column a name.

Display results in ascending order by ChannelNumber.

Hint: Correct results will look like this:

ChannelNumber ChannelName
————- ———–
10            KOPB
1010          KOPBDT
1165          KOPBDT2
1166          KOPBDT3
+ CHAR(10)

GO


— [Insert your code here]

GO
PRINT ‘CIS 275, Lab Week 2, Question 3  [3pts possible]:
What are the genres?
——————–
Produce a list of the distinct genres, sorted in alphabetical order by genre.

Display the genre with no more than 20 characters wide. Make sure your genre column has a column name.

Hint: Genre is a column in the SHOW table.

Hint 2: Use the DISTINCT keyword to get the distinct list.

Hint 3: Correct results will have 114 rows and will look like this:

Genre
——————–

Action
Action sports
Adults only
Adventure
Agriculture
Animals
Anthology
Art
Arts/crafts
Auction
Auto
Auto racing
Aviation
Baseball
Basketball

Weather
Western
Wrestling
+ CHAR(10)

GO


— [Insert your code here]

GO
PRINT ‘CIS 275, Lab Week 2, Question 4  [3pts possible]:
Best SF?
——–
Find the top rated family safe sci fi shows in the SHOW table. Include all shows where the Genre is sci fi, the
StarRating is 8 or over, and the Classification is either G, PG, or PG-13. Use IN with a set of values to match
the Classification.

Produce the following columns: Title, Description, StarRating, Classification. Title should be no more than 20
characters wide and Description should be no more than 50 characters wide. Classification should be no more
than 5 characters wide. Dont forget to give all columns names!

Order in descending order by star rating. For shows with the same star rating, order by title alphabetically (A-Z).

Hint: Use the results in the previous query to determine the correct spelling for the sci fi genre.

Hint 2: Correct results will have 24 rows and will look like this (I did a bit of minor editing because
of apostrophes):

Title                Description                                        StarRating  Classification
——————– ————————————————– ———– ————–
Avatar               On an alien planet, a former Marine (Sam Worthingt 10          PG-13
Gravity              The destruction of their shuttle leaves two astron 10          PG-13
Minority Report      A policeman (Tom Cruise) tries to establish his in 10          PG-13
Star Wars: The Force Thirty years after the defeat of the Galactic Empi 10          PG-13
The Day the Earth St Klaatu (Michael Rennie) and his guardian robot, Go 10          G
Dawn of the Planet o Human survivors of a plague threaten Caesars gro 8           PG-13
Fantastic Planet     The 39-foot-tall pastel Draags keep leashes on the 8           PG
Gattaca              An outcast (Ethan Hawke) takes part in a complicat 8           PG-13
Guardians of the Gal A space adventurer (Chris Pratt) becomes the quarr 8           PG-13
I Am Legend          After a man-made plague transforms Earths popula 8           PG-13
Independence Day     A fighter pilot (Will Smith), a computer whiz (Jef 8           PG-13
Interstellar         As mankinds time on Earth comes to an end, a gro 8           PG-13
Invasion of the Body San Francisco health inspectors (Donald Sutherland 8           PG
Midnight Special     The government and a group of religious extremists 8           PG-13
Pacific Rim          A washed-up ex-pilot (Charlie Hunnam) and an untes 8           PG-13
Rise of the Planet o A scientists (James Franco) quest to find a cur  8           PG-13
Serenity             Crew members (Nathan Fillion, Gina Torres, Alan Tu 8           PG-13
Solaris              A widowed psychologist (George Clooney) arrives at 8           PG-13
The Abyss            Oil-platform workers, including an estranged coupl 8           PG-13
The Fifth Element    A New York City cabdriver (Bruce Willis) tries to  8           PG-13
The Hunger Games     A resourceful teen (Jennifer Lawrence) takes her y 8           PG-13
The Hunger Games: Ca After their unprecedented victory in the 74th Hung 8           PG-13
Twilight Zone: The M Four tales include a bigot (Vic Morrow), oldsters  8           PG
Westworld            Androids go haywire with guests (Richard Benjamin, 8           PG
+ CHAR(10)

GO


— [Insert your code here]

GO
PRINT ‘CIS 275, Lab Week 2, Question 5  [3pts possible]:
HD Stations
———–
Select the DisplayName and SortOrder from the CHANNEL table for all TV channels where the SortOrder is
between 700 and 799 inclusive. Use the BETWEEN … AND … operator. Exclude all rows where the ExternalID
is NULL. Use “Channel Name” as the header for the name column and “Sort Order” for the sort order column.
Display results in ascending order by SortOrder.

Hint: The correct answer will have 93 rows and will look like this:

Channel Name Sort Order
———— ———–
KATUDT       702
KRCWDT       703
KPXGDT       705
KOINDT       706
DSCHDP       707
KGWDT        708
WGNAPHD      709
KOPBDT       710
VEL          711
KPTVDT       712
KPDXDT       713
FUSEHD       714

UPHD         797
AXSTV        798
NFLNRZD      799
+ CHAR(10)

GO


— [Insert your code here]

GO
PRINT ‘CIS 275, Lab Week 2, Question 6  [3pts possible]:
Daily Listing for SYFYHDP
————————-
Using the all_data view in the TV database, find all listings for shows on SYFYHDP that were
on any time on 9/12/2017. Do NOT include shows that end at 00:00:00 on 9/12/2017, or begin
at 00:00:00 on 9/13/2017. DO include shows that start before midnight on 9/12 but end after
midnight, or start before midnight on 9/12 and end after midnight on 9/13 (see results below
if that isnt clear).

Include the following columns:
Time – formatted exactly as HH:MM:SS – HH:MM:SS for start time – end time.
Title – Limit to 20 characters wide.
Length – formatted exactly as HH:MM:SS.
Description – Limit to 50 characters wide.

Display results in order by start time.

Hint: Visit this page for the section on Date and Time Styles:
https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql?view=sql-server-2017

Hint 2: To get the Length, subtract the start time from the end time and convert the
result using the appropriate date format.

Hint 3: You can concatenate string values in the SELECT clause by adding them together with +.

Hint 4: Correct results will have 19 rows and will look like this:

Time                Title                Length   Description
——————- ——————– ——– ————————————————–
23:00:00 – 01:00:00 Lake Placid          02:00:00 A New York paleontologist (Bridget Fonda) goes to
01:00:00 – 03:00:00 Jeepers Creepers     02:00:00 A cloaked figure (Jonathan Breck) terrorizes two s
03:00:00 – 04:00:00 The Twilight Zone    01:00:00 Mute: Parents raise their daughter (Ann Jillian) w
04:00:00 – 04:30:00 Paid Programming     00:30:00 Paid programming. (HDTV)
04:30:00 – 05:00:00 Paid Programming     00:30:00 Paid programming. (HDTV)
05:00:00 – 05:30:00 Paid Programming     00:30:00 Paid programming. (HDTV)
05:30:00 – 06:00:00 Paid Programming     00:30:00 Paid programming. (HDTV)
06:00:00 – 07:00:00 CSI: Crime Scene Inv 01:00:00 19 Down…: When the team discovers a connection b
07:00:00 – 08:00:00 CSI: Crime Scene Inv 01:00:00 One to Go: Grissom announces that he is leaving, w
08:00:00 – 09:00:00 CSI: Crime Scene Inv 01:00:00 The Grave Shift: Dr. Langstons first day on the
09:00:00 – 10:00:00 CSI: Crime Scene Inv 01:00:00 Disarmed & Dangerous: A specialized team of forens
10:00:00 – 11:00:00 CSI: Crime Scene Inv 01:00:00 Deep Fried & Minty Fresh: The team investigates a
11:00:00 – 12:00:00 CSI: Crime Scene Inv 01:00:00 Miscarriage of Justice: As Langston testifies at t
12:00:00 – 14:00:00 Seventh Son          02:00:00 A supernatural champion (Jeff Bridges) has little
14:00:00 – 17:00:00 Need for Speed       03:00:00 Determined to take down his treacherous rival (Dom
17:00:00 – 18:57:00 Lake Placid          01:57:00 A New York paleontologist (Bridget Fonda) goes to
18:57:00 – 21:00:00 Lake Placid 2        02:03:00 A sheriff, a big-game hunter and a wildlife office
21:00:00 – 22:00:00 Face Off: Game Face  01:00:00 Stone Cold Superheroes: The artists create plant-h
22:00:00 – 00:30:00 300                  02:30:00 Spartas King Leonidas (Gerard Butler) and his ba
+ CHAR(10)

GO


— [Insert your code here]

GO
PRINT ‘CIS 275, Lab Week 2, Question 7  [3pts possible]:
What is on TV?
—————
Using the all_data view in the TV database, show the first 100 TV shows that start on 9/10/2017 at 8:00PM
(StartTime is 20:00:00).

Display results in order by ChannelNumber.

Show ONLY the DisplayName, ChannelNumber, StartTime, EndTime, and Title.

Use CONVERT to format the StartTime and EndTime hh:mi:ss without the day, month, or year.

Use CAST or CONVERT make DisplayName 10 characters wide, and Title 30 characters wide.

Make sure all columns have appropriate names (using AS where needed).

Hint: A DATETIME column can be matched against a string like 8/30/1962 13:00:00.

Hint 2: Correct results will have 100 rows, and look like this:

Channel Name Channel Number Start Time End Time Title
———— ————– ———- ——– ——————————
KATU         2              20:00:00   21:00:00 Celebrity Family Feud
KRCW         3              20:00:00   20:30:00 Two and a Half Men
KPXG         5              20:00:00   21:00:00 Law & Order: Criminal Intent
KOIN         6              20:00:00   21:00:00 Big Brother
DSCP         7              20:00:00   21:00:00 Alaska: The Last Frontier
WGNAP        9              20:00:00   21:00:00 Blue Bloods
KOPB         10             20:00:00   21:30:00 The Carpenters: Close to You (
KPTV         12             20:00:00   21:00:00 The Orville
KPDX         13             20:00:00   21:00:00 Rookie Blue
TELEP        15             20:00:00   00:00:00 Ad Channel
QVC          16             20:00:00   21:00:00 Todays Top Tech

MEXCAN       625            20:00:00   20:30:00 Liga Mexicana de Jaripeo Profe
MULTV        626            20:00:00   22:00:00 Poncho en Domingo
TEFEI        629            20:00:00   22:30:00 La Peña de Morfi
+ CHAR(10)

GO


— [Insert your code here]

GO
PRINT ‘CIS 275, Lab Week 2, Question 8  [3pts possible]:
Rick and Morty
————–
Show a distinct list of all Rick and Morty episodes in the SHOW table. Include the following columns:

Title – 20 wide.
Episode – 20 wide.
Series # – 10 wide.
Episode # – 3 wide.
Original Air Date – 12 wide, formatted as, for example, “Apr 01, 2017”.

Display results in order by episode number.

Correct results will look like this:

Title                Episode              Series #   Episode # Original Air Date
——————– ——————– ———- ——— —————–
Rick and Morty       The Rickshank Rickde EP01833673 301       Apr 01, 2017
Rick and Morty       Rickmancing the Ston EP01833673 302       Jul 30, 2017
Rick and Morty       Pickle Rick          EP01833673 303       Aug 06, 2017
Rick and Morty       Vindicators 3: The R EP01833673 304       Aug 13, 2017
Rick and Morty       The Whirly Dirly Con EP01833673 305       Aug 20, 2017
Rick and Morty       Rest and Ricklaxatio EP01833673 306       Aug 27, 2017
Rick and Morty       The Ricklantis Mixup EP01833673 307       Sep 10, 2017
+ CHAR(10)

GO


— [Insert your code here]

GO
PRINT ‘CIS 275, Lab Week 2, Question 9  [3pts possible]:
Couch Potato Achievement
————————
Produce a list of the 10 longest shows. Exclude sports-related genres and shows where the title
is “To Be Announced” or “SIGN OFF”. Format your results to look like this:

Channel Name Title                Episode              Date         Time                Length
———— ——————– ——————– ———— ——————- ——–
BBCAPH       Doctor Who           Deep Breath          Sep 08, 2017 04:30:00 – 12:30:00 08:00:00
BBCAPH       Doctor Who           Deep Breath          Sep 08, 2017 12:30:00 – 20:30:00 08:00:00
BBCAPH       Doctor Who           Deep Breath          Sep 08, 2017 20:30:00 – 04:30:00 08:00:00
CSPAN2       Public Affairs Event N/A                  Sep 08, 2017 21:00:00 – 05:00:00 08:00:00
CSPAN2       Book TV              N/A                  Sep 10, 2017 10:00:00 – 18:00:00 08:00:00
BBCAP        Doctor Who           Deep Breath          Sep 08, 2017 04:30:00 – 12:30:00 08:00:00
BBCAP        Doctor Who           Deep Breath          Sep 08, 2017 12:30:00 – 20:30:00 08:00:00
BBCAP        Doctor Who           Deep Breath          Sep 08, 2017 20:30:00 – 04:30:00 08:00:00
TVMRT        Beyond Today         N/A                  Sep 03, 2017 19:30:00 – 03:30:00 08:00:00
TVMRT        Beyond Today         N/A                  Sep 04, 2017 03:30:00 – 11:30:00 08:00:00

Hint: Use ISNULL to display NULL values in Episode as N/A, and restrict them to no more than 20
characters wide.
+ CHAR(10)

GO


— [Insert your code here]

GO
PRINT ‘CIS 275, Lab Week 2, Question 10  [3pts possible]:
Its a Good Life
—————–
Find all showings of The Twilight Zone episode “Its a Good Life.” Format your results exactly
as they appear below.

Hint: You can convert the same DATETIME twice, using two different format codes, and concatenate the
results together into a single string.

Correct output will look like this (only two columns):

Channel Name Time
———— ———————————
SYFYP        Sep 15, 2017: 06:00:00 – 06:30:00
SYFYHDP      Sep 15, 2017: 06:00:00 – 06:30:00
SYFYP        Sep 16, 2017: 05:00:00 – 05:30:00
SYFYHDP      Sep 16, 2017: 05:00:00 – 05:30:00
+ CHAR(10)

GO


— [Insert your code here]

GO
————————————————————————————-
— This is an anonymous program block. DO NOT CHANGE OR DELETE.
————————————————————————————-
BEGIN
   PRINT ‘|—‘ + REPLICATE(‘+—-‘,15) + ‘|’;
   PRINT ‘ End of CIS275 Lab Week 6’ + REPLICATE(‘ ‘,50) + CONVERT(CHAR(12),GETDATE(),101);
   PRINT ‘|—‘ + REPLICATE(‘+—-‘,15) + ‘|’;
END;

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Get Answer Over WhatsApp Order Paper Now

Create an Algorithm Using Pseudocode…

 

You work in the IT group of a department store and the latest analytics shows there is a bug that allows customers to go over their credit limit. The company’s president has asked you to develop a new algorithm to solve this problem. 

Create your algorithm using pseudocode that determines if a department store customer has exceeded their credit limit. Be sure you gather the following inputs from the user: 

  • Account number
  • Balance of the account
  • Total cost of all the products the customer is looking to purchase
  • Allowed credit limit 

After you gather the inputs, make sure your algorithm calculates if the user can purchase the products and provides a message to the user indicating if the purchase is approved or declined. 

Document your answers in a Microsoft® Word document. 

Review “Understanding Object-Oriented Programming” with Jungwoo Ryoo from Lynda.com® for additional guidance.

Submit your document.

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Get Answer Over WhatsApp Order Paper Now

for java assginmnent

  

Exercise 1 [10 points]: 

Write a static method named numUnique that accepts an array of integers as a parameter and returns the number of unique values in that array. The array may contain positive integers in no particular order, which means that the duplicates will not be grouped together. For example, if a variable called list stores the following values: 

int[] list = {7, 5, 22, 7, 23, 9, 1, 5, 2, 35, 6, 11, 12, 7, 9}; 

then the call of numUnique(list) should return 11 because this list has 11 unique values (1, 2, 5, 6, 7, 9, 11, 12, 22, 23, and 35). It is possible that the list might not have any duplicates. For example if the list contain this sequence of values: 

int[] list = {1, 2, 11, 17, 19, 20, 23, 24, 25, 26, 31, 34, 37, 40, 41}; Then a call to the method would return 15 because this list contains 15 different values. 

If passed an empty list, your method should return 0. 

Note: It might be beneficial to sort the array before you count the unique elements. To sort an integer array, you can use Arrays.sort() method. 

Exercise 2 [10 points]: 

In this exercise, you need to complete the following static methods and then use them. 

public class Password{ 

public static boolean passwordValidator(String pass1, String pass2){ 

// Your code goes here… 

public static String passwordGenerator(int length){ 

// Your code goes here 

• The method passwordValidator takes two alpha-numeric passwords and returns true only if all the following conditions are met: 

i) Length of the password must be between 8 and 32 characters. 

ii) Password should contain at least one upper case and one lower case alphabet. iii)  Password should contain at least two numbers

iv) Password should contain at least one special character from this list {!, ~, _, %, $, #}

v) Both the password strings must match. 

• The method passwordGenerator – generates and returns a random password that satisfy the above-mentioned criteria with a specified length. 

• Now, write a PasswordTester class – in which you should test these static methods. 

Here is an example test run: 

Enter a new password: test123 

Re-enter the same password: test123 

Password should contain at least 8 characters. 

Enter a new password: qwerty123 

Re-enter the same password: qwerty123 

Password must contain at least 1 capital letter character. 

Enter a new password: qwerTy123 

Re-enter the same password: qwerTy123 

Password must contain at least 1 special symbol. 

Enter a new password: qwerTy_1 

Re-enter the same password: qwerTy_1 

Password must contain at least 2 numbers. 

Enter a new password: qwerTy_12 

Re-enter the same password: qwerty_12 

Both passwords must match. 

Enter a new password: qwerTy_12 

Re-enter the same password: qwerTy_12 

Success! 

The test cases shown above are sample only. When you test your code, you should test it for all possible cases. If the user cannot select a valid password within 7 tries, then your program should suggest four random passwords (with different length) to the user that satisfies all rules for the password

Take snapshots of different test runs for your program and attach those snapshots during submission. 

Exercise 3 [10 Points]: 

DateUtil: Complete the following methods in a class called DateUtil: 

• boolean isLeapYear(int year): returns true if the given year is a leap year. A year is a leap year if it is divisible by 4 but not by 100, or it is divisible by 400. 

• boolean isValidDate(int year, int month, int day): returns true if the given year, month and day constitute a given date. Assume that year is between 1 and 9999, month is between 1 (Jan) to 12 (Dec) and day shall be between 1 and 28|29|30|31 depending on the month and whether it is a leap year. 

• int getDayOfWeek(int year, int month, int day): returns the day of the week, where 0 for SUN, 1 for MON, …, 6 for SAT, for the given date. Assume that the date is valid. 

• String toString(int year, int month, int day): prints the given date in the format “xxxday d mmm yyyy”, e.g., “Tuesday 14 Feb 2012”. Assume that the given date is valid. 

To find the day of the week (Reference: Wiki “Determination of the day of the week”): 

1. Based on the first two digit of the year, get the number from the following “century” table. 

  

1700- 

1800- 

1900- 

2000- 

2100- 

2200- 

2300- 

2400- 

 

4   

2   

6   

4   

2   

0   

6   

2. Take note that the entries 4, 2, 0, 6 repeat. 

3. Add to the last two digit of the year. 

4. Add to “the last two digit of the year divide by 4, truncate the fractional part”. 

5. Add to the number obtained from the following month table: 

6. Add to the day. 

7. The sum modulus 7 gives the day of the week, where 0 for SUN, 1 for MON, …, 6 for SAT. 

For example: 2012, Feb, 17 

(6 + 12 + 12/4 + 2 + 17) % 7 = 5 (Fri) 

The skeleton of the program is as follows: 

  

/* Utilities for Date   Manipulation */ public class DateUtil

// Month’s name – for printing public static String   strMonths[] 

= {“Jan”, “Feb”,   “Mar”, “Apr”, “May”, “Jun”, 

“Jul”, “Aug”,   “Sep”, “Oct”, “Nov”, “Dec”}; 

// Number of days in each month (for non-leap years) public static int   daysInMonths[] 

= {31, 28, 31, 30, 31,   30, 31, 31, 30, 31, 30, 31}; 

// Returns true if the given year is a leap year public static boolean   isLeapYear(int year) { …… } 

// Return true if the given   year, month, day is a valid date 

// year: 1-9999 

// month: 1(Jan)-12(Dec) 

// day: 1-28|29|30|31. The last   day depends on year and month public static boolean isValidDate(int year, int month, int day) {   …… } 

// Return the day of the week,   0:Sun, 1:Mon, …, 6:Sat public static int getDayOfWeek(int year, int month, int day) { ……   } 

// Return String “xxxday d   mmm yyyy” (e.g., Wednesday 29 Feb 2012) 

public static String printDate(int year, int month, int day) { …… } 

public static void main(String[] args) { 

System.out.println(isLeapYear(1900)); // false System.out.println(isLeapYear(2000)); // true 

System.out.println(isLeapYear(2011)); // false 

System.out.println(isLeapYear(2012)); // true 

System.out.println(isValidDate(2012, 2, 29)); // true 

System.out.println(isValidDate(2011, 2, 29)); // false 

System.out.println(isValidDate(2099, 12, 31)); // true 

System.out.println(isValidDate(2099, 12, 32)); // false 

System.out.println(getDayOfWeek(1982, 4, 24)); // 6:Sat 

System.out.println(getDayOfWeek(2000, 1, 1)); // 6:Sat 

System.out.println(getDayOfWeek(2054, 6, 19)); // 5:Fri System.out.println(getDayOfWeek(2012, 2, 17)); // 5:Fri 

System.out.println(toString(2012, 2, 14)); // Tuesday 14 Feb 2012 

You can compare the day obtained with the Java’s Calendar class as follows: 

// Construct a Calendar instance with the given year, month and day 

Calendar cal = new GregorianCalendar(year, month – 1, day); // month is 0-based 

// Get the day of the week number: 1 (Sunday) to 7 (Saturday) int dayNumber = cal.get(Calendar.DAY_OF_WEEK); 

String[] calendarDays = { “Sunday”, “Monday”, “Tuesday”, “Wednesday”, 

“Thursday”, “Friday”, “Saturday” }; 

// Print result 

System.out.println(“It is ” + calendarDays[dayNumber – 1]); 

Foot Note: 

The calendar we used today is known as Gregorian calendar, which came into effect in October 15, 1582 in some countries and later in other countries. It replaces the Julian calendar. 10 days were removed from the calendar, i.e., October 4, 1582 (Julian) was followed by October 15, 1582 (Gregorian). The only difference between the Gregorian and the Julian calendar is the “leap-year rule”. In Julian calendar, every four years is a leap year. In Gregorian calendar, a leap year is a year that is divisible by 4 but not divisible by 100, or it is divisible by 400, i.e., the Gregorian calendar omits century years which are not divisible by 400. Furthermore, Julian calendar considers the first day of the year as march 25th, instead of January 1st. 

This above algorithm work for Gregorian dates only. It is difficult to modify the above algorithm to handle preGregorian dates. A better algorithm is to find the number of days from a known date. 

Exercise 4 [15 Marks] 

Ø Address Book Entry. Your task is to create a class called “AddressBookEntry” that contains an address book entry. The following table describes the information that an address book entry has. 

a. Provide the necessary accessor/getter and mutator/setter methods for all the ivars. 

b. You should provide a constructor that will initialize ivars with the supplied values from the client. 

c. Also provide a “public String toString()” method that will return a string in the following format: 

“Name: ”+<name>+”\t\t Address: “+<address>+” \t\t Tel: “+ <tel> + “\t\tEmail:” + <email>; 

where <name>, <address>, <tel> and <email> should be replaced by the receiver’s current state or field’s values. 

  

Save this class in a separate file called “AddressBookEntry.java” and compile it. 

Ø AddressBook. Create another class called “AddressBook” in “AddressBook.java” and save it the same directory. The AddressBook class should contain 100 entries of the “AddressBookEntry” objects (use the class you created in the above exercise). You can use the “AddressBookEntry” class as long as both of the classes reside in the same folder. You should design and provide the following public interfaces for the address book class. In addition, please provide constructors as you think appropriate. 

a. Add entry – will add a new address book entry at the end of the address book, and returns “true” if the entry is successfully added, “false” otherwise. 

b. Delete entry – will delete an existing valid entry from the address book. The client should supply an index number to this method that will specify which entry from the address book the client wants to delete. This method returns “true” if the deletion is successful, and returns “false” otherwise. Notice that the index must be a valid entry value form the address book. 

c. View all entries – will display the non-empty entries of the address book with their sequence number on the screen. For example: 

1. Name: Alex Address: 123 abc St. Kamloops Tel: 123-234-2192  Email: [email protected] 

2. Name: Dan Address: 231 XYZ St. Kamloops Tel: 223-222-2234  Email: [email protected] … 

  

d. Update an entry – will update a specified non-empty entry. (One way to design this method is that the client would supply an index number to update that entry, for example, if the method is called “updateEntry”, then to update the first entry of the address book client may call the method as follows: 

updateEntry(1, “Poly”, “123 McGill Rd. Kamloops”, “123-435-7532”, [email protected]); 

Ø Finally create a test client called “AddressBookTestClient” in another separate file that will have the main method and test the functionality of the address book for all the method. Make sure you test it for all possible boundary conditions in many possible ways. 

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Get Answer Over WhatsApp Order Paper Now

Week 2 : Elements of a programming language

 

Assignment Instructions

 

You need to confirm the flowing:-

1) Installation

     To install Python, go to https://www.python.org/downloads/

     select version 3.x, and follow the instructions

2) I will not accept any code in Python interactive mode. To create a program in batch mode;

In IDLE

  1. Go to File ->New File-> A new editor for coding will open, write your code in the new window.
  2. Once you are done coding; hit F5, or go to run->Run  module
  3. If the file is not saved, it will prompt you to save the file.  Make sure you know where you saved the file.
  4. If the code has bugs, go back to the editor and fix the bugs, pay attention to the error message.
  5. The final code is the code you should submit.
  6. Write the following code

Part I Instructions:

# This is the flower box and it should be at the beginning of each assignment
# You must add comments to your code
# Program name     : Wk2P1_firstname_lastname.py
# Student Name     : Ymmas Azaba
# Course                : ENTD220
# Instructor           : My Instructor
# Date                   : Any Day# Copy Wrong        : This is my work

You are going to create the following:

A simple calculator to accept two numbers and print the addition, subtraction, multiplication and division of the two numbers.

You are required to store each input number in a separate variable.

Hints
      1) You should also store each calculation in a variable
      2) You will get an error if you divide by zero, you will address this problem next assignment

Sample output

This is my first programming assignment
Enter your First number  —> 25
Enter your Second number —> 14

The Result of 25+14=39.0
The Result of 25-14=11.0
The Result of 25*14=350.0
The Result of 25/14=1.78571428571
 

Thanks for using our calculator!
Submission Instructions:

Make sure that you save your code in a text file in this format. Check your file after the upload to see if they are readable. You can paste your code in the student submission text area.

W2P1_firstname_lastname.py

Part II Instructions:

# This is the flower box and it should at the beginning of each assignment
# You must add comments to your code
# Program name   : Wk2P2_firstname_lastname.py
# Student Name   : Ymmas Azaba
# Course              : ENTD220
# Instructor         : My Instructor
# Date                 : Any Day

# Copy Wrong      : This is my work
 

 You are going to enhance the prior assignment by doing the following:

1) Limit the input range from -100 to 100 for each input number
2) Prevent dividing by zero (Do not use try-except)

3) Instead of hard coding values from -100 to 100, let the user enter the range

Hints:

See sample output for messages.
Sample output

Enter your Lower range   —> -100
Enter your Higher range  —> 100
Enter your First number  —> 50
Enter your Second number —> 20

The Result of 50+20=70.0
The Result of 50-20=30.0
The Result of 50*20=1000.0
The Result of 50/20=2.5
 

Thanks for using our calculator!
====================================

Enter your Lower range   —> -50
Enter your Higher range  —> 50
Enter your First number  —> 20
Enter your Second number —> 0

The Result of 20.0+0.0=20.0
The Result of 20.0-0.0=20.0
The Result of 20.0*0.0=0.0
The Result of 20.0/0.0=You cannot divide by Zero
 

Thanks for using our calculator!

====================================

Enter your Lower range   —> 10
Enter your Higher range  —> 50
Enter your First number  —> 5
Enter your Second number —> 60
 

The input values are out side the input ranges
Please check the numbers and try again
Thanks for using our calculator

Submission Instructions:

Make sure that you save your code in a text file in this format; W2P2_firstname_lastname.py

Requirements

Points Available

Points Earned

Comments

Assignment details in a comment block

10

10

Using the input() function

Code comments

30

30

Using variables/if-then

Code comments

30

30

Using the print()function to produce the results (Part I, and Part II application is running)

30

30

Total

100

100

Needs help with similar assignment?

We are available 24x7 to deliver the best services and assignment ready within 3-4 hours? Order a custom-written, plagiarism-free paper

Get Answer Over WhatsApp Order Paper Now