Questions
Write a class encapsulating the concept of a Student Employee, assuming that a student has the...

Write a class encapsulating the concept of a Student Employee, assuming that a student has the following attributes: last name, first name, id, array of hours worked weekly. Include a constructor, the accessors and mutators, and method toString. Also code the following methods: one returning the average weekly hours and a method to add the hours to the array of hoursWorked (this means creating a large array). Let this array store the weekly hours (not daily hours) worked for each student employee. Write a client class to create 2 student objects and test all your methods.

I've been working for a few days and I'm not sure why I can't figure it out.

Please show using only import.java.util.Scanner/ import java.io.*; Thank you.

In: Computer Science

1. Using Induction on the length of derivations, prove that the set of all Primitive Recursive...

1. Using Induction on the length of derivations, prove that the set of all Primitive Recursive Functions (PR) is a subset of all Partial Computable Functions (P).

2. Using the preceding problem, conclude that the set of all Primitive Recursive Functions (PR) is a subset of all Computable Functions (R).

In: Computer Science

1. Suppose you are implementing software to be used in a handheld device that checks whether...

1. Suppose you are implementing software to be used in a handheld device that checks whether event attendees are part of a group of people allowed access to a special session at the event. Guests can purchase access to the special session any time up to the instant the event begins, and the device receives updated records to ensure paying guests (only) are allowed in to the special session Would choosing a set data structure to manage the special session guests or a list be more efficient? Explain

In: Computer Science

using MIPs assembly, ask the user to enter two numbers. Then multiply the two numbers using...

using MIPs assembly, ask the user to enter two numbers. Then multiply the two numbers using bit shifting (not 'mul'). This should work multiplying 2 positive numbers, 2 negative numbers, and a positive/negative number.

Then output the result and ask user if he/she has more calculations to complete.

In: Computer Science

Using Clion (an app that could use C++) to do this question: Create a new project...

Using Clion (an app that could use C++) to do this question:
Create a new project called Lab05b. Keep the main file named main.
• Write a function readAndPrint, and power with parameters noted below in the Functions.h file.
//Your Last Name
#ifndef FUNCTIONS_H
#define FUNCTIONS_H
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
/*reads from a file
and prints every item to the screen*/
// file contains sets of
//int
//string
//Don't forget to use infile.ignore() between << and getline
//ifstream must be passed by reference
void readAndPrint(ifstream &infile);
//uses a for loop to return the base to the exponent
//e.g. 2^4 = 16
// this fuction should read data.txt file
long power(long base, long exponent);
#endif
• You should place the function prototypes in a file called Functions.h The function prototype has a semi-colon at the end.
• Then you should implement in a file called Functions.cpp
• Finally, declare the infile, and call the readAndPrint function. Then look at the power of 2^3 and 10 ^ 4
• Create a file named data.txt that has the following information.
1
Alpha
2
Beta
3
Gamma
• Your functions.cpp AND your lastnamefirstLab05b.cpp should #include “Functions.h”.
• Remember that you should not #include.cpp files!
• Implementation detail 4: compile and run with:
Run your code
Please take screenshots of Lab05b.cpp, Functions.h, and Functions.cpp.
Thanks for your help!

In: Computer Science

Respond to the following in a minimum of 175 words: Discuss the wireless spectrum and how...

Respond to the following in a minimum of 175 words:


Discuss the wireless spectrum and how it relates to a wireless network. What frequency ranges, or bands, are associated with wi-fi use? How does wi-fi transmission differ from data transmission over a physical network? How might that difference affect data security over a wi-fi network?


In: Computer Science

Two Systems 80 Km apart are communicating through a direct Metallic cable (note: signal speed is...

Two Systems 80 Km apart are communicating through a direct Metallic cable (note: signal speed is 2 x 10^8 m/s). The data is in the form of 60 KB packets with transmission rate 1M bps. Calculate the following:

  1. Data transmission time per packet.
  2. Propagation delay.
  3. bit duration.
  4. Bit length.
  5. Number of bits in the cable between the sender and receive

In: Computer Science

In this example you are allowed to use from the C standard library only functions for...

In this example you are allowed to use from the C standard library only functions for input and output (e.g. printf(), scanf())

Complete the following functions using C programming language:

  • intQ1_for()
  • intQ1_while()
  • intQ1_do()

To compute the sum of all numbers that are multiples of 4, between 30 and 1000, in three different ways: with a for loop, a while loop and a do-while loop, accordingly. After each loop print the value on the screen. Return the total sum at the end of each function

In: Computer Science

Task 1: HTML and CSS Create a website using HTML5 and CSS3 only. Website theme can...

Task 1: HTML and CSS

Create a website using HTML5 and CSS3 only. Website theme can be anything you want: a country, a town, a place, a hobby, people (yourself, your family...), pets, flowers, food, or anything that you find interesting or useful. It may be about real people/places/things or fictitious.

Part 1: Content (HTML)

After you decide the theme of your website, create HTML pages with the content you want to present. Remember to separate content from presentation. The content is placed in the HTML files, and the layout and style will be defined using CSS (see part 2). Your website must include (at least):

  • 3 html pages:
    • index.html: this is the landing page (must be named index.html). The landing page is the first page a visitor will see when visiting your website.
    • another html page (any name)
    • yet another html page (any name)
  • a typical layout using semantic tags (header, nav, footer, article...)
  • page titles for each html page (titles show on the title bar/tabs)
  • different size headings
  • images:
    • at least 5 images in one html page,
    • the other pages may have any number of images (or none).
    • make sure all image paths are relative (not absolute)
  • internal links:
    • links from index.html to the other html pages you created
    • links from all the other pages back to index.html
    • make sure all internal links are relative links (not absolute)
  • external links:
    • at least two links to external websites (pages that you did not create).
    • external links should open in a new tab/window.
  • a list (ordered or unordered)
  • a table (with some relevant data)
  • your copyright info at the footer (with the © symbol).
  • classes and id's as needed (for styling with css)

Do not forget to make your pages accessible. You should double-check your code to make sure you are not missing closing tags, etc. and test it using different browsers. Focus on making your pages syntactically and semantically correct.

Part 2: Style (CSS)

You'll create an external stylesheet (css) to style the html pages you created in part 1. Name this file main.css.

All html pages should link to the same main.css file. You must use a variety of selectors and properties presented in chapters 4 and 5, including:

  • font family, size, color, background color of text and headings, font color for links (make sure visited and unvisited links are displayed in different colors)
  • positioning elements
  • special effects or animations
  • a navigation menu

Part 3: An alternate style (CSS)

You'll create a different CSS file, with different style and layout rules, to make your HTML pages look completely different (without making any changes to the HTML files).

  • Name this css file alternate.css.
  • Do not create new html files. You may change the name of the css linked in the html <head> section back and forth (while testing).
  • Before submitting, make sure all html files link to main.css (we'll change it when testing).

In: Computer Science

Define a problem utilizing Stacks. Write the design, code and display output. please in c++ oop?

Define a problem utilizing Stacks. Write the design, code and display output. please in c++ oop?

In: Computer Science

Write the following program in Java. Ask the user to enter the number of rows and...

Write the following program in Java.

Ask the user to enter the number of rows and columns for a 2-D array. Create the
array and fill it with random integers using (int)(Math.random() * 20) (or whatever
number you choose). Then, provide the user with several menu choices.
1. See the entire array.
2. See a specific row.
3. See a specific column.
4. See a specific value.
5. Calculate the average of each row.
6. Calculate the total of each column.
7. Exit
If the user chooses option:
1 - output the entire array in chart format.
2 - ask the user for the specific row number and output the values from that row,
all columns, going across the screen.
3 - ask the user for the specific column number and output the values from that
column, all rows, going down the screen.
4 - ask the user for the specific row and column number and output the value at
that position (1 value only).
5 - output the information in chart format, including placing the average at the
end of each row.
6 - output the information in chart format, including placing the total below each
column.
7 - thank the user and exit the program
Any other option should produce an error message.
The program should continue until the user chooses option 7.

Please try to use basic coding(nothing too complicated so I can understand)

In: Computer Science

Unlike other engineering approaches software engineering process is NOT rigid. Justify why?

Unlike other engineering approaches software engineering process is NOT rigid. Justify why?

In: Computer Science

Write a Java program for a car dealership. The dealer has 10 cars in the showroom...

Write a Java program for a car dealership. The dealer has 10 cars in the showroom and space for 50 cars. Each car has a unique plate number, model, color, company, and a year of manufacture. Your program should have two classes: the "Car" class has the car information and the "info" method that displays the car information. The other class is an array class "CarArray" that has four methods:" display", "insert", "find", and the "delete" method. When the program is executed, the following menu should appear. The insert, search, and delete should ask the user to enter the plate number of the car. If there is more than one car of the same plate number, all of them should be deleted.

1- Diplay

2- Insert

3- Search

4- Delete

Enter your choice:

Enter the plate #:

Extra Points (10 points): Add "findByColor" and "findByModel" methods that should return an array of car with all the information.

In: Computer Science

To the TwoDArray class, add a method called transpose() that generates the transpose of a 2D...

To the TwoDArray class, add a method called transpose() that generates the transpose of a 2D array with the same number of rows and columns (i.e., a square matrix). Add appropriate code in main() of the TwoDArrayApp class to execute the transpose() method and use the display() method to print the transposed matrix.

/**
* TwoDArray.java
*/

public class TwoDArray
{
   private int a[][];
   private int nRows;

public TwoDArray(int maxRows, int maxCols)        //constructor
{
   a = new int[maxRows][maxCols];
   nRows = 0;
}
//******************************************************************
   public void insert (int[] row)
   {
       a[nRows] = row;
       nRows++;
   }
//******************************************************************
   public void display()
   {
       for (int i = 0; i < nRows; i++)
       {
           for (int j = 0; j < a[0].length; j++)
               System.out.format("%5d", a[i][j]);
           System.out.println(" ");
       }
   }
}

public class TwoDArrayApp{
  
public static void main(String[] args )
{
   int maxRows = 20;
   int maxCols = 20;
  
   TwoDArray arr = new TwoDArray(maxRows, maxCols);    
   int b[][] = {{1, 2, 3, 4}, {11, 22, 33, 44}, {2, 4, 6, 8},{100, 200, 300, 400}};
  
  
   arr.insert(b[0]); arr.insert(b[1]); arr.insert(b[2]); arr.insert(b[3]);
  

  
   System.out.println("The original matrix: ");
   arr.display();
  
   System.out.println("Column sum: ");
   arr.sumCols();  
  
   System.out.println(" ");
   System.out.println("\nThe matrix after being transposed: ");
   arr.transpose();
  
  
  

  
}
}

In: Computer Science

Write a Python program that computes the income tax for an individual. The program should ask...

Write a Python program that computes the income tax for an individual. The program should ask the user to enter the total taxable income for the year. The program then uses the tax bracket (as shown below) to calculate the tax amount. This is based on a progressive income tax system which is how income tax is calculated in the U.S. As a result, this for example means that only income above $500,001 is taxed at 37%. Income of lower levels are taxed at their given marginal rate. 10% on taxable income from $0 to $9,525, plus 12% on taxable income over $9,526 to $38,700, plus 22% on taxable income over $38,701 to $82,500, plus 24% on taxable income over $82,501 to $157,500, plus 32% on taxable income over $157,501 to $200,000, plus 35% on taxable income over $200,001 to $500,000, plus 37% on taxable income over $500,001 or more.

In: Computer Science