Questions
Briefly answer the questions. 1. Assume you are an IT consultant for a company, and you...

Briefly answer the questions.

1. Assume you are an IT consultant for a company, and you have been asked to discuss the following items:

a) What is code? Why is it important?

b) What is an API? Can you provide some examples of how computers use APIs to make our life simpler?

c) Why are there so many programming languages?

d) How are computers and coding changing the workplace?

In: Computer Science

id manufacturer model displ year cyl trans drv cty hwy fl class 1 audi a4 1.8...

id manufacturer model displ year cyl trans drv cty hwy fl class
1 audi a4 1.8 1999 4 auto(l5) f 18 29 p compact
2 audi a4 1.8 1999 4 manual(m5) f 21 29 p compact
3 audi a4 2 2008 4 manual(m6) f 20 31 p compact
4 audi a4 2 2008 4 auto(av) f 21 30 p compact
5 audi a4 2.8 1999 6 auto(l5) f 16 26 p compact
6 audi a4 2.8 1999 6 manual(m5) f 18 26 p compact
7 audi a4 3.1 2008 6 auto(av) f 18 27 p compact
8 audi a4 quattro 1.8 1999 4 manual(m5) 4 18 26 p compact
9 audi a4 quattro 1.8 1999 4 auto(l5) 4 16 25 p compact
10 audi a4 quattro 2 2008 4 manual(m6) 4 20 28 p compact
11 audi a4 quattro 2 2008 4 auto(s6) 4 19 27 p compact
12 audi a4 quattro 2.8 1999 6 auto(l5) 4 15 25 p compact


Output file should contain the calculation output for: o Python code properly runs and calculates the average city mileage for all vehicles (avg_city) – 15 pts o Python code properly runs and calculates the average highway mileage for all vehicles (avg_hwy) – 15 pts o Python code properly runs and calculates the average highway mileage of all Ford vehicles (ford_hwy) – 20 pts o Python code properly runs and calculates the average city mileage of all SUV vehicles (suv_city) – 20 pts • Only iterate through mpg.csv once, minus 10 points for each loop through mpg.csv more than once

In: Computer Science

Bellman-Ford algorithm: Describe why the Bellman-Ford algorithm does not work when the given graph includes negative...

Bellman-Ford algorithm:

  • Describe why the Bellman-Ford algorithm does not work when the given graph includes negative cycles.

  • Describe how the Bellman-Ford algorithm detects the negative cycles. Provide an example graph with negative cycles and show how it can be detected.

In: Computer Science

Htmp (please   I need all answers) QUESTION 1 is a sketch or blueprint of a web...

Htmp (please   I need all answers)

QUESTION 1
is a sketch or blueprint of a web page that shows the structure (but not the detailed design) of basic page elements such as the logo, navigation, content, and footer.
O hierarchy
O wireframe
O drawing
O site map

QUESTION 2
of a color is darker than the original color and is created by mixing the color with black
O tint
O shade
O tone
O complement

QUESTION 3
A page layour technique that often uses a percentage value for width is called
O fixed
O hierarchical
O alignment
O fluid

Question 4

A (n)....
O analogous
O triadic
O monochromatic
Ocomplementary

......color schemne consists of shades, tints, or tones of the same color.

QUESTION 5
A(n)...... color scheme consists of three colors that are equidistant on the color wheel.
O tetradic
O triadic
O analogous
O complementary

QUESTION 6

Applying the design principle of. ....
O linearity
O proximity
O contrast
O alignment
........server to add visual interest and draw attention.

QUESTION 7

Consider ......when designing for display on a moble device.
O smal screen sice
O font size
O contrast
O All of these

QUESTION 8
Different browsers and even different browser versions will display your web page
O only if you buy the browser
O only if you use HTMLS
O in exactly the same way
O in different ways

QUESTION 9
Progressively enhancing a web page for different viewing contexts (such as smartphones and tablets) through the use of coding techniques is called
O fixed web design
O mobile web design
O optimization
O responsive web design

QUESTION 10

Select a good design recommendation for text hyperlinks.
O create the entire sentence as a hyperlink
O include the words "Click here" in your text
O use a key phrase as a hyperlink
O None of these

QUESTION 11
Select the besr description of "white space."

O empty screen area around blocks of text and images
O using the background color of white for a page O boch empty screen areä around blocks of text and images and using the background color of white for a page
O None of these

QUESTION 12
Select the group whose mission is to create guidelines and standards for web accessibility.

O Internet Society
O Web Accessibility Initiative
O International Webmasters Association
O None of these

QUESTION 13
Select the item below that does NOT belong in a consistent website design.
O a similar navigation area on each content page O a different background color on each page
O the same logo in the same location on each content page
O the same fonts on each content page

QUESTION 14

Select the items below that can help to appeal to the intended or target audience of a site.
O the amount of color used on the site
O the font size and styles used on the site
O the overall look and feel for the site
O All of these
QUESTION 15
Select the mos: commonly UIed site organication for commercial weos tes.
O random
O inear herarchical
O None of these

QUESTION 16

Select the Iost popular screen resolution from those listed beow.
O 1366 by 768
O 240 by 320
O 800 by 600
O 1024 by 768

QUESTION 17

Select the recommended design practice that applies to a website using images for main site navigation.
O provide alternative text for the images
O place text links at the bottom of the page
O both provide alternative text for the images and place text links at the bottom of the page
O No special considerations are needed.

QUESTION 18

Select the three most common methods of organizing websites.
O horizontal, vertical, and diagonal
O hierarchical, linear, and random
O accessible readable, maintainable None of these
QUESTION 19
Select the true statement below.
O Pacing white space around grephics and headings he pi them to stana Out
O There is no reed for a lot of navgation because webs te visitors can jurt Lse the back button
O Very smal tets good to use for webrite appea ng to the baby: boomer ano older maret
O Children like stes with dark colors

QUESTION 20
Select the true statement below.
O Animation should be used to appeal to all target audiences.
O Animation should be used only if it enhances your website.
O Animation should be used as much as possible to make your website exciting.
O None of the statements are true.

QUESTION 21

the concept of .....relates to providing a single resource that is configured for optimal display on multiple types of devices.
O hierarchical
O fluid layout
O One Web
O accessibility

QUESTION 22

The four principles of WCAG 2.0 are as follows: O contrast, repetition, alignment, proximiy
O XHTML CSS, HTML Notepad
O perceivable, operable, understandable, robust O linear, hierarchical, random, sequential

QUESTION 23

The main site navigation or a section offering navigation choices shoulo contain:
O as many hyperlinks as you need
O visually grouped sections of hyperlinks
O only four hyperlinks
O onny she nost importan pages

QUESTION 24
When applying the design principle of ....
O proximity
O repetition
O linearity
O alignment
......related items are grouped together.

QUESTION 25
Which of the following is NOT a web design recommended practice?
O design your site to be easy to navigate
O limit the use of animated items
O use frames whenever possible
O design your pages to load quickly

In: Computer Science

Complete the // TODO sections in the EasyRental class. Create a method that implements an iterative...

Complete the // TODO sections in the EasyRental class.

  1. Create a method that implements an iterative sort that sorts the vehicle rentals by color in ascending order (smallest to largest)
  2. Create a method to binary search for a vehicle based on a color, that should return the index where the vehicle was found or -1

You are comparing Strings in an object not integers.

Ex. If the input is:

brown red white blue black -1

the output is:

Enter the colors of the vehicles you would like to search for on the same line followed by a -1

There are no rentals in brown
There are 7 compact Jeep's in red
There are no rentals in white
There are 5 economy Fiat's in blue
There are 5 compact Scion's in black

Done

These are the given classes with code:

CarRentals.java

import java.util.Scanner;

public class CarRentals {

   public static void main(String[] args) {
       Scanner scrn = new Scanner(System.in);
       EasyRental ezRent = new EasyRental();
      
       // this section passes the make, the color, the size, and the number of vehicles in stock
       // to the addVehicle method which adds the data to an arrayList in the EasyRental class
       ezRent.addVehicle("Ford", "orange", "mid-size", 3);
       ezRent.addVehicle("Fiat", "blue", "economy", 5);
       ezRent.addVehicle("Toyota", "grey", "compact", 6);
       ezRent.addVehicle("Saab", "canary", "mid-size", 2);
       ezRent.addVehicle("Nissan", "silver", "economy", 1);
       ezRent.addVehicle("Jeep", "red", "compact", 7);
       ezRent.addVehicle("Honda", "indigo", "economy", 4);
       ezRent.addVehicle("Dodge", "tan", "mid-size", 1);
       ezRent.addVehicle("Chevy", "turquoise", "full-size", 2);
       ezRent.addVehicle("Scion", "black", "compact", 5);

       // sort the data based on color
       ezRent.sort();
          
       System.out.println("Enter the colors of the vehicles you would like to search for on the same line followed by a -1");
       String color = scrn.next();
       System.out.println();
       while(!color.equals("-1")) {
           int index = ezRent.binarySearch(color);
           if(index == -1) {
               System.out.println("There are no rentals in " + color);
           }
           else {
               System.out.println(ezRent.printVehicleInfo(index));
           }
           color = scrn.next();
       }
       System.out.println();
       System.out.println("Done");
   }

}

EasyRental.java

import java.util.ArrayList;

public class EasyRental {

   private ArrayList<Rentals> rents = new ArrayList<Rentals>();

   public void addVehicle(String make, String color, String size, int amount) {
       rents.add(new Rentals(make, color, size, amount));

   }

   public String printVehicleInfo(int index) {
       return rents.get(index).toString();
   }

   // TODO 1. create an iterative sort method that sorts the rentals by color


   // TODO 2. create a Binary Search method below to search for a vehicle by a
   // color, that should return the index where the vehicle was found or -1

   public void printVehicles() {
       for (Rentals r : rents) {
           System.out.println(r.toString());
       }
       System.out.println();
   }

}

Rentals.java

public class Rentals {
  
   private String make;
   private String color;
   private String size;
   private int count;
  
   public Rentals(String make, String color, String size, int count) {
       this.make = make;
       this.color = color;
       this.size = size;
       this.count = count;
   }
  
   public String getMake() {
       return make;
   }

   public void setMake(String make) {
       this.make = make;
   }

   public String getColor() {
       return color;
   }

   public void setColor(String color) {
       this.color = color;
   }

   public String getSize() {
       return size;
   }

   public void setSize(String size) {
       this.size = size;
   }

   public int getCount() {
       return count;
   }

   public void setCount(int count) {
       this.count = count;
   }


   public String toString() {
       return "There are " + count + " " + size + " " + make + "'s" + " in " + color ;
   }
  
}

In: Computer Science

Assume you are a member of a campus business club, such as the Society for the...

Assume you are a member of a campus business club, such as the Society for the Advancement of Management (SAM), the Finance Association (FA), or the Association of Information Technology Professionals (AITP). Your organization has managed its finances well, and therefore, it is able to fund monthly activities. However, membership dues are insufficient to cover extras. Question: Identify a need such as hardware or software purchase, a special one-time event that would benefit a great number of students, or officer training. Request one-time funding to cover what you would need by writing an unsolicited letter or memo proposal to your assistant dean, who oversees student business clubs. Identify your need or problem, show the benefits of your request, and justify your claims with evidence (10)

In: Computer Science

For a displacement addressing mode using the register R1, with R1 = 196,803,43210, and the displacement...

For a displacement addressing mode using the register R1, with R1 = 196,803,43210, and the displacement value is 12,39610, the datum to be accessed is at the address?

In: Computer Science

Suppose that two stacks of positive integers are needed for a project. Each stack is to...

Suppose that two stacks of positive integers are needed for a project. Each stack is to contain integers that are less than or equal to 500. One stack is to contain even integers; the other stack is to contain odd integers. Also, the total number of values in the combined stacks at any given time will not exceed 200. ▪ Design a way to implement both stacks in only one(pay attention!!!) 1-D array. ▪ Write a Python class definition(s) for the double stack representation designed previously. Include the following operations: ◦ isEmpty (for each stack) ◦ size (for each stack) ◦ push (insert an integer onto the correct stack depending on whether it is even or odd) ◦ pop (for each stack) ◦ top (for each stack) ▪ Fully test all the stack operations in a Python main program.Note two stacks together should only use one array.

In: Computer Science

QUESTION 13 ________ occurs when the supplier, rather than the retailer, manages the entire inventory process...

QUESTION 13

  1. ________ occurs when the supplier, rather than the retailer, manages the entire inventory process for a particular product or group of products.

    JIT

    The bullwhip effect

    Vertical integration

    VMI

QUESTION 14

  1. Distribution is a(n) ________ activity.

    downstream

    internal

    upstream

    irrelevant

QUESTION 15

  1. In the ________ component of SCM, supply chain managers create a responsive and flexible network for receiving defective, returned, or excess products back from their customers, as well as for supporting customers who have problems with delivered products.

    deliver

    make

    plan

    return

    source

QUESTION 16

  1. EDI decreases _________.

    customer service

    message length

    productivity

    security

In: Computer Science

You are provided with an array of Strings and a list of Strings. Sort the elements...

You are provided with an array of Strings and a list of Strings. Sort the elements (1) in natural order, (2) in reverse natural order and (3) by the length of each String. You can fill in the details by using the following stub file:

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Midterm01 {
    public static void main(String[] args) {
        String[] arrayOfCities = { "Atlanta", "Savannah", "New York", "Dallas", "Rio" };
        List<String> listOfCities = Arrays.asList("Atlanta", "Savannah", "New York", "Dallas", "Rio");

        System.out.print("\nSorting a String array in natural order...");
        // your work here

        System.out.print("\nSorting a String array in reverse natural order...");
        // your work here

        System.out.print("\nSorting a String array by length of the Strings...");
        // your work here

        System.out.print("\nSorting a String list in natural order...");
        // your work here

        System.out.print("\nSorting a String list in reverse natural order...");
        // your work here

        System.out.print("\nSorting a String list by length of Strings...");
        // your work here
    }
}

In: Computer Science

1. Given the following weighted intervals in form of (si, fi, vi) where si is the...

1. Given the following weighted intervals in form of (si, fi, vi) where si is the start time, fi is the finish time, and vi is weight, apply the DP algorithm you learn from lecture to compute the set of non-overlapping intervals that have the maximum total weight. (5, 12, 2) (7, 15, 4) (10, 16, 4) (8, 20, 7) (17, 25, 2) (21, 28, 1)

1) Show the dynamic programming table that computes the maximum total weight.

2) With above computed table, show the steps to determine the set of non-overlapping intervals that have the maximum total weight.

In: Computer Science

The binary number system uses just two digits (0 and 1) to represent any counting number....

The binary number system uses just two digits (0 and 1) to represent any counting number. Match each of the familiar 'base-10' numbers below with their 8-digit binary equivalents.

Group of answer choices

7

      [ Choose ]            00001111            01000001            00001101            00001000      

8

      [ Choose ]            00001111            01000001            00001101            00001000      

13

      [ Choose ]            00001111            01000001            00001101            00001000      

65

      [ Choose ]            00001111            01000001            00001101            00001000      

Flag this Question

Question 21 pts

One of the first standard coding systems for storing text characters as numbers in a digital computer was called...

Group of answer choices

Unicode

ASCII

UML

Wordpress

Flag this Question

Question 31 pts

To describe units of computing capacity we use Greek prefixes which represent multiples of 1,000. Order the following prefixes from smallest to largest.

  • Giga
  • Tera
  • Mega
  • Peta

Group of answer choices

Mega, Giga, Peta, Tera

Peta, Giga, Mega, Tera

Mega, Giga, Tera, Peta

Giga, Mega, Tera, Peta

Flag this Question

Question 41 pts

If a computer's Central Processing Unit (CPU) is operating at a rate of 4.2 GHz that means it is capable of completing how many processing cycles per unit of time?

Group of answer choices

4,200,000,000 / minute

4,200,000,000 / second

4,200,000 / second

4,200,000 / minute

Flag this Question

Question 51 pts

Suppose your internet connection is currently downloading a file at the steady rate of 16 Mbps. At this speed, how long will it take to download a file that is 6MB in size

Group of answer choices

3 seconds.

Not enough information is provided

96 seconds

18 seconds

Flag this Question

Question 61 pts

There are two major categories of data storage hardware. Primary storage is referred to as                            [ Select ]                       ["non-volatile", "random", "volatile"]         , meaning it                            [ Select ]                       ["loses", "retains"]         its value when the power goes off. Secondary storage is                            [ Select ]                       ["volatile", "writable", "non-volatile"]         , meaning it                            [ Select ]                       ["retains", "loses", "occasionally loses"]         its value when the power is off.

Flag this Question

Question 71 pts

Match each type of memory below with its proper category.

Group of answer choices

Random Access Memory (RAM)

      [ Choose ]            Secondary            Primary      

Magnetic Tape

      [ Choose ]            Secondary            Primary      

Digital Video Disk (DVD)

      [ Choose ]            Secondary            Primary      

Cache

      [ Choose ]            Secondary            Primary      

Flag this Question

Question 81 pts

True or False:

In a Client-Server network architecture, there are several small 'server' computers all focused on making their services (such as data storage, and processing capacity) available to one central 'client' computer.

Group of answer choices

True

False

Flag this Question

Question 91 pts

True or False:

When a file is sent across the internet, the data travels together as one single stream to minimize the chance that data will be lost in transit.

Group of answer choices

True

False

Flag this Question

Question 101 pts

If you r company is using a cloud service provider that manages the operating system you are using but not the applications or the data, then you are using a category of cloud service called...

Group of answer choices

Software as a service (SaaS)

Cloud storage

Platform as a Service (PaaS)

Infrastructure as a Service (IaaS)

In: Computer Science

An exceptions lab. Create a new class named EnterInfo Request user enter name and age Accept...

An exceptions lab.

  • Create a new class named EnterInfo
  • Request user enter name and age
  • Accept a string and an int
  • Use custom Exception to warn user when name is blank
  • Use custom Exception to warn user when age is invalid
    • 0 > age > 120
  • Use general Exception to warn user when age is not an int
  • Loop through until user enters all valid data

In: Computer Science

An exception with finally block lab. Create a new class named ReadArray Create simple array and...

An exception with finally block lab.

  • Create a new class named ReadArray
  • Create simple array and read an element using a try block
  • Catch any exception
  • Add a finally block and print a message that the operation if complete

In: Computer Science

C#: If the code is the only thing that you can provide without the pictures of...

C#: If the code is the only thing that you can provide without the pictures of the form, then that is fine as well.

Topics: hiding/showing controls, StatusStrip, custom event arguments, radio buttons

Students will create an application that uses a dialog to create a spaceship object to populate a ListView. This ListView will be able to display in either large or small icon mode using a menu option to switch between them. Selecting a spaceship in the ListView will give the user the ability to modify that object’s values and apply those changes.

You will be creating two forms, the main window with a ListView, MenuStrip, and StatusStrip, and a dialog window with some user input fields for making a spaceship object. The inputs needed for the spaceship are a TextBox for name, a numericUpDown for crew size, a checkbox for indicating active duty, and a set of 3 radio buttons for selecting the type of ship (Cruiser, Destroyer, or Freighter). There should be three buttons on this dialog: OK, Cancel, and Apply. OK and Cancel will always be visible, but the Apply button will only appear when attempting to modify an item from the ListView. The OK button will add a ListViewItem with the current input to the main window’s ListView, and the Cancel button will close the window without changing anything in the main window. The Apply button should use a custom EventHandler and custom event arguments to modify the selected item in the main window’s ListView to have the current input values in the dialog. The main window’s MenuStrip should have three separate menus: File, Ship, and View. Each of these menus will have the following options: File->Clear to clear the ListView, File->Exit to exit the application, Ship->New to open a dialog to make a new spaceship without the Apply button being visible, View->Large to make the ListView use LargeIcon mode, and View->Small to make the ListView use SmallIcon mode. The currently selected icon mode should have a checkmark displayed next to it. The StatusStrip should appear at the bottom of the window and have a single ToolStripStatusLabel showing the current number of items in the ListView. There should be unique images for each of the 3 ships with a large 32x32 and a small 16x16. Double-clicking an item in the ListView should bring up the spaceship dialog with the Apply button visible and the fields pre-populated with the selected item’s current values.

Follow these guidelines for this application:

User Input Dialog

  • Radio buttons are used for ship selection that function as radio buttons should (only one option selectable at a time).

  • Apply button should only be visible when opened by double clicking a ListViewItem.

  • A TextBox for name, NumericUpDown for crew size, and CheckBox for active duty are present for additional user input about the spaceship.

  • OK and Cancel buttons should always be present on this dialog.

ListView/Main Window

  • ListView exists, set to dock/fill the parent container, and can be toggled between LargeIcon and SmallIcon mode.

  • A StatusStrip is present at the bottom of the window that always displays the current Item count of the ListView.

  • Double clicking a ListViewItem brings up the spaceship dialog as does selecting the Ship->New MenuStrip option.

  • 3 Unique images are used in the ListView that correspond to the three ship types. Large(32x32) and Small(16x16) image lists are used for this purpose.

Events

  • When the Apply button is pressed, a custom EventArgs class is used with an EventHandler to pass the updated spaceship information to the main window. The updated spaceship fields are used to update the currently selected spaceship.

  • When the OK button is pressed, a new spaceship with the current input values is added to the ListView and the spaceship dialog is closed.

  • When the Cancel button is pressed, the spaceship dialog closes without affecting the main window’s controls.

In: Computer Science