Questions
Question 2 a) What is your view on importance of project budgeting? AP (7 marks) b)...

Question 2 a) What is your view on importance of project budgeting? AP b) Provide a case study example of the content of your project charter. AN c) Examine the major components of project closure with significance on project delivery.

In: Computer Science

I am working on making a simple gradebook. How it works is it asks user for...

I am working on making a simple gradebook. How it works is it asks user for name and grade. It does this for multiple instances until the person types quit to end the program. The code I have here works. My question is how do I print the output in alphabetical order?

Output from the input I put into my program:

David 98

Annabelle 87

Josh 91

Ben 95

What I want my code to do (in alphabetical order):

Annabelle87

Ben 95

David 98

Josh 91

Here is my code for the program:

grades = {}


def set_grade(name, grade):
grades[name] = grade


def print_grades_names():
for i in grades.keys():
print('{} {}'.format(i, str(grades[i])))

while True:
name = input("Enter a name (or 'quit' to stop): ")
if name == 'quit':
break
grade = input("Enter a grade: ")
set_grade(name, grade)


(print_grades_names())

In: Computer Science

This code has to be in java (I code in eclipse). Also these instructions have to...

This code has to be in java (I code in eclipse). Also these instructions have to be followed exactly because if not my output won't match the expected out ( this will be uploaded on zybooks).

Write a program that asks the user for their age in days. The program will compute the person's age in years (you can assume that all years have 365 days) and then prints one of the following messages:

  1. If the user is 1 year old or younger, print: "You are an infant"
  2. If the user is over 1 year old and 3 years old or younger, print: "You are a toddler"
  3. If the user is over 3 years old and 12 years old or younger, print: "You are a child"
  4. If the user is over 12 years old and 19 years old or younger, print: "You are a teenager"
  5. If the user is over 19 years old and 21 years old or younger, print: "You are a young adult"
  6. If the user is over 21 years old and 50 years old or younger, print: "You are an adult"
  7. If the user is over 50 years old but 65 years old or younger, print: "You are middle aged"
  8. If the user is over 65 years, print: "You are a senior citizen"

For example:

    If the user entered: 350, your program would output: You are an infant
    If the user entered: 800, your program would output: You are a toddler
    If the user entered, 1825, your program would output: You are a child
    If the user entered, 5475, your program would output: You are a teenager
    If the user entered, 7300, your program would output: You are a young adult
    If the user entered, 10950, your program would output: You are an adult
    If the user entered, 23725, your program would output: You are middle aged
    If the user entered, 25550, your program would output: You are a senior citizen
  

Your prompt to the user to enter the number of days must be:

    Enter an age in number of days:
  

Please note that your class should be named AgeLabel.

In: Computer Science

ONLY USE VISUAL STUDIO (NO JAVA CODING) VISUAL STUDIO -> C# -> CONSOLE APPLICATION In this...

ONLY USE VISUAL STUDIO (NO JAVA CODING)

VISUAL STUDIO -> C# -> CONSOLE APPLICATION

  1. In this part of the assignment, you are required to create a C# Console Application project. The project name should be A3<FirstName><LastName>P2. For example, a student with first name John and Last name Smith would name the project A1JohnSmithP2.

Write a C# (console) program to calculate the number of shipping labels that can be printed on a sheet of paper.

This program will use a menu that includes the following options:

  1. Enter/Update paper size
  2. Enter/Update label size
  3. Generate report
  4. Exit

The first menu option will ask the user to enter the width and height of the paper.

The second menu option will ask the user for the width and height of the label.

The third menu option will calculate the number of whole labels that can fit on the sheet and the report the following:

  1. Paper Size
  2. Label Size
  3. Number of Labels
  4. Total Paper Area (Square inches)
  5. Area used by labels (Square Inches)
  6. Amount of unused paper (Percentage of Total Paper Area)

Your program must:

  1. Have at least 3 methods other than the main method
  2. Handle any potential errors using try/catch statements. The error message output should display at least 3 different types of error (or status) messages, depending on what the user has done incorrectly. Your program should be able to catch all possible errors, it should not crash.
  3. Verify that the user has entered valid data for the paper and label dimensions before the report can be generated.

Print a welcome message including a program description and your name before the menu is displayed

In: Computer Science

1COMP1410 - Lab Exercises #3 (Due at the end of the lab period or beginning of...

1COMP1410 - Lab Exercises #3 (Due at the end of the lab period or beginning of the next) Start Date: Oct. 1st, 2019

Objectives: Practice dealing with 2D arrays.

Create a two dimensional array (e.g. int A2D[M][N];) of size MxNto store integer values. Use #define M 4and N 3to start. (Using symbolic constants instead of hard coding the array sizes improves scalability). Create an interactive menu within main() for this program (call it Lab3.c) with choices to fill the array with random numbers, search the array, right shift the array, print the array and quit.

Your program must code and document the following functions:

printArray2D()to print the array in a table format (use formatting codes to achieve this).

populateRandom2D()to populate the array with pseudo-random numbers between minand max numbers entered by the user.

linearSearch2D()to search the array for a value.

rightShift2D()to right shift the array. RIGHT shift means move every element one position to the RIGHT; the last element becomes the first one, and the last element in each row moves down to become the first element in the next row.

Each one of the functions above accepts a 2D array as a parameter, along with any additional parameters that you may find necessary. The return types of the functions are also your choice. Do NOT use global (i.e. file scope) variables in this program.

Sample Interaction

Lab3 ------

1 - Fill the array

2 - Search the array

3 - Right shift the array

0 - QUIT

Please enter a selection: 1

Enter min number in the array: 2

Enter max number in the array: 20

4 17 10

9 8 19

11 18 8

5 19 7

Lab3 ------

1 - Fill the array

2 - Search the array

3 - Right shift the array

0 - QUIT

Please enter a selection: 2

Please enter a value to search for: 19

Value 19 was found at (2,3).

Value 19 was found at (4,2).

Lab3 ------

1 - Fill the array

2 - Search the array

3 - Right shift the array

0 - QUIT

Please enter a selection: 2

Please enter a value to search for: 21

Value 21 was not found.

Lab3 ------

1 - Fill the array

2 - Search the array

3 - Right shift the array

0 - QUIT

Please enter a selection: 3

7 4 17

10 9 8

19 11 18

8 5 19

Lab3 ------

1 - Fill the array

2 - Search the array

3 - Right shift the array

0 - QUIT

Please enter a selection: 0

Goodbye!

In: Computer Science

2. What is the cause of thrashing? 3. How does the system detect thrashing? 4. Once...

2. What is the cause of thrashing? 3. How does the system detect thrashing? 4. Once it detects thrashing, what can the system do to eliminate this problem?

In: Computer Science

For C++ Assume that word is a variable of type string that has been assigned a...

For C++

Assume that word is a variable of type string that has been assigned a value. Assume furthermore that this value always contains the letters "dr" followed by at least two other letters. For example: "undramatic", "dreck", "android", "no-drip".

Assume that there is another variable declared, drWord, also of type string. Write the statements needed so that the 4-character substring word of the value of word starting with "dr" is assigned to drWord. So, if the value of word were "George slew the dragon" your code would assign the value "drag" to drWord.

In: Computer Science

State whether each of the following are true or false. 1.1 A TPS uses simple procedures...

State whether each of the following are true or false.

1.1 A TPS uses simple procedures to record and store day-to-day transactions.

1.2       contemporary information systems are interfacing with customers and suppliers using electronic commerce technology, CRM, and SCM over the internet.

1.3 processes represent the data acquired from an information system.

1.4 All stakeholders of an information system share the same perspective of the system.

1.5 An executive information system (EIS) is a highly interactive IT system that allows you to first view highly summarized information and then choose how you would like to see greater detail, which may alert you to potential problems or opportunities.

1.6 The CIO is responsible for overseeing an organization’s information resource.

1.7 ESS/ EIS is normally developed to assist the operation level decision making.

1.8 Software quality assurance lays considerable stress on getting the design right prior to coding.

1.9 EDI allows computer-to-computer exchange of standardized documents between two organizations and lowers transaction costs.

1.10 Information systems must interface effectively and efficiently with other information systems, both within the business and increasingly with other businesses’ information systems.

In: Computer Science

Consider the problem statement for an "Online Auction System" to be developed: New users can register...

Consider the problem statement for an "Online Auction System" to be developed: New users can register to the system through an online process. By registering a user agrees to abide by different pre-defined terms and conditions as specified by the system. Any registered user can access the different features of the system authorized to him / her, after he authenticates himself through the login screen. An authenticated user can put items in the system for auction. Authenticated users can place bid for an item. Once auction is over, the item will be sold to the user placing the maximum bid. Payments are to be made by third party payment services, which, of course, is guaranteed to be secure. The user selling the item will be responsible for its shipping. If the seller thinks he's getting a good price, he can, however, sell the item at any point of time to the maximum bidder available. Read the Requirement Specifications thoroughly and answer the following questions:
i. Identify the ambiguous, inconsistent and incomplete statements
ii. Identify different function requirements to be obtained from a system
iii. Identify the possible non-functional requirements that could be identified from the requirements specifications.

In: Computer Science

I am having trouble writing these queries in MYSQL. Using the schema listed below, please write...

I am having trouble writing these queries in MYSQL. Using the schema listed below, please write the following queries in MYSQL:

1) Find the Content and the Reviewer Name for each comment, about “ACADEMY DINOSAUR” only if the same reviewer has commented about “ACE GOLDFINGER” too.

2) Retrieve the title of all the Movies in Japanese without any comment, ordered alphabetically.

3) Find all the movie titles where an actor called “TOM” or an actor called “BEN" acted, where there was another actor called “MARY” acting too.

Schema:

Consider a movie relational database schema description provided below which is used to manage a movie database, where:

A movie can have 0 or more actors

A movie can have 1 or more categories

A movie has 1 and only one language

Rating is one of these values: 'G','PG','PG-13','R','NC-17'

People can comment about the movies on a webpage, and the comments are stored in the comments table. The reviewer_name is introduced by the person on each comment, so we don't have a table with “reviewers”. A reviewer can create any number of comments about a movie. The comments will have a score about the movie with values from 0 to 100.

Note, the last update fields are going to be stored as a “timestamp”.

IMPORTANT: 2 entries in the same relation can have the same lastupdate, so, for example, 2 movies can have the same lastupdate value.

The relations are:

ACTOR (actor_id, first_name, last_name, last_update)

LANGUAGE (language_id, name, last_update)

CATEGORY (category_id, name, last_update)

FILM (film_id, title, description, release_year, language_id, length, rating, last_update)

FILM_ACTOR(actor_id, film_id, last_update)

FILM_CATEGORY (film_id, category_id, last_update)

COMMENTS (review_id, film_id, reviewer_name, comment, score, last_update)

In: Computer Science

I have a decimal fraction: 76.234567x10^-14 I need to convert this number to binary. I know...

I have a decimal fraction: 76.234567x10^-14

I need to convert this number to binary. I know you can multiply the number by 2 constantly to get the binary number, but that will take forever to do, even converting it to hex with x16 takes a long time, is there any easier way to convert this?

Show all steps and work please.

In: Computer Science

Assign 07 - Linux Forensics Learning Objectives and Outcomes Research information about Linux forensic investigations and...

Assign 07 - Linux Forensics

Learning Objectives and Outcomes

  • Research information about Linux forensic investigations and appropriate tools.
  • Identify and describe three Web sites that provide highly relevant information to Linux forensic investigations.

Assignment Requirements

You are an experienced digital forensics specialist for DigiFirm Investigation Company. DigiFirm is involved in an investigation of a large corporation accused of unauthorized access of a competitor’s database to obtain customer information. The DigiFirm team will be responsible for the forensic investigation of the seized computers that are running Linux.

Chris, your team leader, has asked you to research information and tools that the team can use during the investigations.

For this assignment:

  1. Research Web sites that provide information or tools for Linux forensic investigations.
  2. Write a report that describes three of the most promising Web sites in detail and discusses why these resources might be helpful in a forensic examination.

Required Resources

  • Course textbook
  • Internet

Submission Requirements

  • Format: Microsoft Word
  • Font: Arial, size 12, double-space
  • Citation Style: Follow your school’s preferred style guide
  • Length: 1–2 pages

In: Computer Science

Python: I want to make the following code to prompt the user if want to run...

Python: I want to make the following code to prompt the user if want to run the software again. I am new to python, so i do not know if it works like c++. If can explain that would be much appreciated

base = float(input("Enter base of the triagle: "))

Triangle_Right = float(input("Enter right side of the triagle: "))

Triangle_Left = float(input("Enter left side of the triagle: "))

height = float(input("Enter the height of the triangle: "))

perimiter = base + Triangle_Right + Triangle_Left

area = (base*height)/2

print("The perimiter is =", perimiter)

print("The area is =", area)


In: Computer Science

        What are the goals to design a software? What is software elegance? List four (4)...

  1.         What are the goals to design a software? What is software elegance? List four (4) software elegance criteria and simple explain them.                                                          

In: Computer Science

Modify the method so that the item with the highest key is not only returned by...

Modify the method so that the item with the highest key is not only returned by the method but is also removed from the array.

Call the method removeMax().

// highArray.java
// demonstrates array class with high-level interface
// to run this program: C>java HighArrayApp
////////////////////////////////////////////////////////////////
class HighArray {
    private long[] a; // ref to array a
    private int nElems; // number of data items

    //-----------------------------------------------------------
    public HighArray(int max) // constructor
    {
        a = new long[max]; // create the array
        nElems = 0; // no items yet
    }

    //-----------------------------------------------------------
    public boolean find(long searchKey) { // find specified value
        int j;
        for (j = 0; j < nElems; j++) // for each element,
            if (a[j] == searchKey) // found item?
                break; // exit loop before end
        if (j == nElems) // gone to end?
            return false; // yes, can't find it
        else
            return true; // no, found it
    } // end find()

    //-----------------------------------------------------------
    public void insert(long value) // put element into array
    {
        a[nElems] = value; // insert it
        nElems++; // increment size
    }

    //-----------------------------------------------------------
    public boolean delete(long value) {
        int j;
        for (j = 0; j < nElems; j++) // look for it
            if (value == a[j])
                break;
        if (j == nElems) // can't find it
            return false;
        else // found it
        {
            for (int k = j; k < nElems; k++) // move higher ones down
                a[k] = a[k + 1];
            nElems--; // decrement size
            return true;
        }
    } // end delete()

    //-----------------------------------------------------------
    public void display() // displays array contents
    {
        for (int j = 0; j < nElems; j++) // for each element,
            System.out.print(a[j] + " "); // display it
        System.out.println("");
    }

    public long getMax() {
        if (nElems == 0) {
            return -1;
        } else {
            long max = a[0];
            for (int i = 0; i < nElems; i++) {
                if (a[i] > max) {
                    max = a[i];
                }
            }
            return max;
        }
    }
//-----------------------------------------------------------
} // end class HighArray

////////////////////////////////////////////////////////////////
class HighArrayApp {
    public static void main(String[] args) {
        int maxSize = 100; // array size
        HighArray arr; // reference to array
        arr = new HighArray(maxSize); // create the array
        arr.insert(77); // insert 10 items
        arr.insert(99);
        arr.insert(44);
        arr.insert(55);
        arr.insert(22);
        arr.insert(88);
        arr.insert(11);
        arr.insert(00);
        arr.insert(66);
        arr.insert(33);
        arr.display(); // display items
        int searchKey = 35; // search for item
        if (arr.find(searchKey))
            System.out.println("Found " + searchKey);
        else
            System.out.println("Can't find " + searchKey);
        arr.delete(00); // delete 3 items
        arr.delete(55);
        arr.delete(99);
        arr.display(); // display items again

        System.out.println("Max in array is " + arr.getMax());
    } // end main()
} // end class HighArrayApp

In: Computer Science