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 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 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:
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
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:
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:
Your program must:
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 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 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 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 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
In: Computer Science
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 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
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:
Required Resources
Submission Requirements
In: Computer Science
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
In: Computer Science
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