IT Project/Programming

 Note – Subject to Change

Open project template to start

Complete the following

Structures for project 

 struct Employee {  

 string firstname; 

string lastname;

int   hours;

int   regHours;

int   otHours;

double regRate; 

double otRate;

double regPay;

double otPay; 

double totPay;

double ficaTax;

double SSMedTax;

double totDecutions; 

double netPay; 

 };  //Structure arrays 

Employee employees[MAX_EMPLOYEES]; 

 Write a program that will calculate the payroll for 3 employees. It will also total the payroll for the company.  

Write functions that will do the following

displayMenu – displays the follows 

 •Press 1 to input employees

•Press 2 to input hours

•Press 3 to calculate payroll

•Press 4 to calculate totals – Extra Credit

•Press 5 to print payroll

•Press X to exit 

 getSelection – gets menu selection and validates input with a switch statement. Use a do while until get valid input. If not valid does the following 

 •Displays error message

•Calls displayMenu

•Gets new input selection 

 processSelection – extra credit to process

inputEmployee that will input the information for 3 employees. Use a for loop

•User input

string firstname;

string lastname;

int empNum;

double regular rate

double ot rate (calculated) 

 inputHours   that will get the total hours worked for each employee.  

 Note Overtime hours will be calculated in the calcPayroll function for hours worked over MAX_REG_HOURS 

 initializeEmployees sets all fields to “” or 0

calcPayroll – Calculates the payroll by using reg hours worked and overtime hours worked. Overtime hours worked is any hours > MAX_REG_HOURS  and is done for you 

 •Calculated fields

otHours – calculated as hours over the maxreghours. If regHours = 48 then OT hours would be 8

regPay (regHours * regRate)

otPay (otHours * otRate)

 totalPay (regPay + otPay)

fica (total pay * fica pct)

socSec (total pay * ss med pct)

totDeductions (fica + socSec)

netPay (totalPay – totDeductions) 

 displayPayroll Displays all fields for each employee on a separate line. Format all money to 2 decimal places. Function will also print the payroll totals and averages 

SAVE AS TERMPROJECT-FD.CPP

Create a calculator in android studio

 Question: Create a calculator in android studio using Fragments. Again, you MUST show where you used fragments in the code. you have to use 2 fragments; one for the bottom and the other one for the bottom as specified in the picture attached.

Language used: Kotlin 

please provide screenshot of output that looks like the picture attached.

Packet Tracer Lab Activities 2

Must be familiar and proficient with Cisco Packet Tracer. 

The following attachment is a .pka file that contains the lab activity to be completed. Please do the lab to 100% completion. It involves troubleshooting IPv4 and static and default routes. Details for troubleshooting steps must include proper commands. For the action plan, list it in a separate word file.

The Cisco Network Build project is not a .pka file. It is a Word document file with instructions on how to build a specific network. This will be done in Packet Tracer from scratch. Please utilize this file to conduct the steps listed in the activity  in Packet Tracer and save the file. 

cyber security

Article related:    https://www.govtrack.us/congress/bills/115/hr3359

What are your thoughts on Cybersecurity and Infrastructure Security Agency Act? 

Describe the main elements of Cybersecurity and Infrastructure Security Agency Act as they apply to security.

Python Assign Code H/W

 

Start with the following Python code.  

alphabet = “abcdefghijklmnopqrstuvwxyz”   

test_dups = [“zzz”,”dog”,”bookkeeper”,”subdermatoglyphic”,”subdermatoglyphics”] 

test_miss = [“zzz”,”subdermatoglyphic”,”the quick brown fox jumps over the lazy dog”] 

# From Section 11.2 of: 

# Downey, A. (2015). Think Python: How to think like a computer scientist. Needham, Massachusetts: Green Tree Press. 

def histogram(s):
     d = dict()
     for c in s:
          if c not in d:
               d[c] = 1
          else:
               d[c] += 1
     return d 

Copy the code above into your program but write all the other code for this assignment yourself. Do not copy any code from another source. 

Part 1 

Write a function called has_duplicates that takes a string parameter and returns True if the string has any repeated characters. Otherwise, it should return False.  

Implement has_duplicates by creating a histogram using the histogram function above. Do not use any of the implementations of has_duplicates that are given in your textbook. Instead, your implementation should use the counts in the histogram to decide if there are any duplicates. 

Write a loop over the strings in the provided test_dups list. Print each string in the list and whether or not it has any duplicates based on the return value of has_duplicates for that string. For example, the output for “aaa” and “abc” would be the following. 

aaa has duplicates
abc has no duplicates 

Print a line like one of the above for each of the strings in test_dups. 

Part 2 

Write a function called missing_letters that takes a string parameter and returns a new string with all the letters of the alphabet that are not in the argument string. The letters in the returned string should be in alphabetical order. 

Your implementation should use a histogram from the histogram function. It should also use the global variable alphabet. It should use this global variable directly, not through an argument or a local copy. It should loop over the letters in alphabet to determine which are missing from the input parameter. 

The function missing_letters should combine the list of missing letters into a string and return that string. 

Write a loop over the strings in list test_miss and call missing_letters with each string. Print a line for each string listing the missing letters. For example, for the string “aaa”, the output should be the following. 

aaa is missing letters bcdefghijklmnopqrstuvwxyz 

If the string has all the letters in alphabet, the output should say it uses all the letters. For example, the output for the string alphabet itself would be the following. 

abcdefghijklmnopqrstuvwxyz uses all the letters 

Print a line like one of the above for each of the strings in test_miss. 

Submit your Python program. It should include the following. 

  • The provided code for alphabet, test_dups, test_miss, and histogram. 
  • Your implementation of the has_duplicates function. 
  • A loop that outputs duplicate information for each string in test_dups. 
  • Your implementation of the missing_letters function. 
  • A loop that outputs missing letters for each string in test_miss. 

Also submit the output from running your program. 

Your submission will be assessed using the following Aspects.

  1. Does the program include a function called has_duplicates that takes a string parameter and returns a boolean?
  2. Does the has_duplicates function call the histogram function? 
  3. Does the program include a loop over the strings in test_dups that calls has_duplicate on each string? 
  4. Does the program correctly identify whether each string in test_dups has duplicates? 
  5. Does the program include a function called missing_letters that takes a string parameter and returns a string? 
  6. Does the missing_letters function call the histogram function?
  7. Does the missing_letters function use the alphabet global variable directly?
  8. Does the program include a loop over the strings in test_miss that calls missing_letters on each string?
  9. Does the program correctly identify the missing letters for each string in test_miss, including each string that “uses all the letters”?

Networking and Communication

Assume you are a technical consultant who works with clients to find the best solutions for their networking and communications needs.

Your firm has exclusively served enterprise businesses but it is now branching out to government agencies.

Answer the following question(s):

  1. What are two challenges that you anticipate facing when working with government agencies, or that are simply unique to government agencies? (4 pt)
  2. How would you overcome those challenges? (4 pt)

Fully address the questions in this discussion; provide valid rationale for your choices, where applicable; and respond to at least two other students’ views (2 pt).

Submission Requirements
  • Citation Style: APA
Self-Assessment Checklist
  • I fully addressed the question(s) in the discussion instructions.
  • I included justification or rationale for my choices, where applicable.
  • I responded to at least two other students’ views.
  • I followed the submission guidelines.