USING JAVA (netbeans)
In your main, ask the user for an int. Do this by first printing a request for the int, then creating an int x, and using the Scanner to read an int from the user and put it in x, like this:
int x = scan.nextInt();
☑ Next read in two doubles d1 and d2 from the user. This will look a lot like what you did for the int, but the scanner reads doubles using
scan.nextDouble();
☑ Next read in a string s from the user. Scanner reads strings using
scan.next();
Part B
☑ if x is below 12, double it, otherwise halve it; either way print the result.
☑ if s is "Hello" print "Hi there!" otherwise print "No hello? RUDE!"
☑ if d1 and d2 are the same, print "same" otherwise print whichever of d1 or d2 is higher, with the word "MAX:" in front of it
In: Computer Science
In linux , Using a simple text editor, create a text file with the following name "Test" and content:
GNU GENERAL PUBLIC LICENSE
The GNU General Public License is a free, copy left
license for the GNU General
Public License is intended to guarantee your freedom to GNU General
Public License
for most of our software; it applies …
2-Write the command to create the text file.
3-Print the file permissions.
4-Create a directory named "361"
5-Copy file "Test" to the directory "361"
6-Rename the file to "GNU"
7-Print the last 5 lines.
8-Change the file owner to "Reem"
9-Add Sticky bit.
10-Make a search of "General" word
Display the total number of characters in the file.
In: Computer Science
1. Write a python program to create a list of integers using random function. Use map function to process the list on the expression: 3x2+4x+5 and store the mapped elements in another list. Now use filter to do sum of all the elements in another list.
2. Write a function that takes n as input and creates a list of n lists such that ith list contains first 10 multiples of i.
3. Write a function that takes a number as input parameter and returns the corresponding text in word. For example, on input 458, the function should return ‘Four Five Eight’. Use dictionary for mapping digits to their string representation.
4. Write a program to create two sets of integer type using random function. Perform following operations on these two sets:
a) Union
b) Intersection
c) Difference
d) Symmetric difference
In: Computer Science
A group of your friends from college are planning to start a clothing line company. They are in the process of writing their vision statement, mission statement, and values statement. They come to you for examples of companies’ statements you feel they could model theirs from.
You offer to give them advice. Write a professional 1-page (300-350 word) email addressing the following areas:
In: Operations Management
In this activity, you will begin to build your network list of contacts by deciding on a method to organize your growing network. You will begin to build your network list of contacts. Instructions: • First, decide on a method to organize your growing network list. You can use whatever medium that works best for you (excel spreadsheet, word document, etc.). • Build your own networking template and share it in this career lab. You may want to organize by categories (i.e. family, friends, community) and choose to include specific contact information (i.e. Email, phone, address, affiliation, etc.). • In addition, on your new template, include at least three (3) contact examples to show how you would manage your network. **To protect the privacy of your network, please refrain from using real names and information.
In: Psychology
Write a program that will read in from input file one line at a time until end of file and output the number of words in the line and the number of occurrences of each letter. Define a word to be any string of letters that is delimited at each end by either whitespace, a period, a comma or the beginning or end of the line. You can assume that the input consists entirely of letters, whitespaces, commas and periods. When outputting the number of letters that occur in a line, be sure to count upper and lowercase versions of a letter as the same letter. Output the letters in alphabetical order and list only those letters that do occur in the input line. For example, the input line:-I say HI should produce output similar to the following:-
3 words
1 a
1 h
2 i
1 s
1 y
Note: in addition to the above, output the result to file named “result.txt”
In: Computer Science
This week you will utilize various variable and functions to develop the first functionality for the Employee Management System Project. For this assignment, write a Python script to allow users to enter the following string values: employeeName, employeeSSN*, employeePhone, employeeEmail, and employeeSalary.
*(employeeSSN = Employee Social Security Number. For example, 123121234)
Once you have entered your values, you should display it in the following format:
---------------------------- Mike Smith -----------------------------
SSN: 123123123
Phone: (111)222-3333
Email: mike@ g m a i l. com
Salary: $6000
----------------------------------------------------------------------------
Once you have completed Functionality 1, you must provide the following in a Word document:
In: Computer Science
1. Write a method called isPalindrome that accepts a string as a parameter and returns true if the string is a palindrome otherwise returns false. This method uses a stack and a Queue to test whether the given string parameter is a palindrome [ that is, whether the characters read the same both forward and backward. For example “race car”, and “Are we not drawn onward, to new era.” are Palindromes] They are palindrome sentences, not just a word. 2. If a string is a palindrome, do not print it out, just print a message that the given string is a Palindrome. If a string is not a palindrome, print the letters of the string in reverse order. 3. Your application prompts the user for the input string. 4. You must use a stack and a queue to do this. (You have to figure out how both can be used.) Any solution that does not use a stack and a queue for the palindrome checking and reversing the letters of the words of the sentence will receive a grade of 0.
In: Computer Science
The topic for the paper I need assistance on is the long term effects of the coronavirus on business and society.
A large number of businesses have closed, unemployment claims have risen to an all-time high, the US stock markets have tumbled in a manner not seen since the great depression, and all this is happening just a few months after we saw the economy achieve a series of all-time low unemployment records for different groups along with all-time high stock market averages.
With all these things in mind, my assignment is to select an industry that is of interest to you and then write a short essay on the changes that you believe will take place in that industry, its firms, the operating procedures of firms and possibly also in available jobs and job requirements. I was thinking small restaurant business industry,
I need assistance with this 500-word essay. Thank you!
In: Operations Management
Please post a screenshot of excel file.
Application assignment: using Excel
Descriptive Statistics of Quantitative Data (measured on Ratio scale).
Use this file for submission, but use Excel to do your work and copy and paste in the appropriate places identified in this word file.
Note: The following Excel functions in answering Questions 1 and 2 below.
AVERAGE , AVEDEV, COUNT, CORREL, MIN, MAX, MDIAN, MODE, STDEV , STDEVP, STDEV.P, and STDEV.S
Q4.
Use the data for U and reuse Data Analysis descriptive Option to calculate the descriptive statistics of U.
Insert your answer here:
Descriptive for the U values:
Insert your comparison answer here:
In: Computer Science