In: Computer Science
3. Problem 3: How much time has elapsed? Unix time is commonly used to track the amount of time that has passed in computer systems. The Unix time is stored as the number of seconds that have passed since 00:00:00 UTC January 1, 1970. However, the number of seconds by itself is not directly meaningful to most users, but luckily for us the number of seconds elapsed provides sufficient information to infer what we may need to display to an end user. Write a method, convertSeconds, which takes as input a non-negative number of seconds and returns a string of the form: ’h hours, m minutes, s seconds’ but where if ’h’, ’m’, or ’s’ is 1 for the number of hours, minutes, or seconds, then the singular form of the word should be used (hour, minute, or second). Note that English uses the plural when talking about 0 items, so it should be ”0 minutes”. As always if a constraint is broken print an error message and in this case return the empty string (””). .java = TimeConversion.java Examples (a) convertSeconds(7325) returns ”2 hours, 2 minutes, 5 seconds” (b) convertSeconds(1) returns ”0 hours, 0 minutes, 1 second”
In: Computer Science
1. If a processor addresses a maximum of (2 to the power of 20) bytes of memory, then, what is the maximum number of 16-bit words that can be stored in this memory?
2. Convert the following base 12 number "A1B" to decimal. Assume it is unsigned.
3. If a certain processor has a system frequency of 100 MHz, what is the clock period?
4. Write the code to implement the expression
A = (B + C) * (D + E)
On 3, 2, 1, and 0 address machines. In accordance with programming language practice, computing the expression should not change the value of its operands.
5. Compare the number of memory accesses for data needed to compute the expression by the four machines of question 3. A = (B + C) * (D + E)
6. What must an Instruction specify?
7. Instructions can be devided into 3 classes:
8. What is the meaning of the following RTN statement:
(OP:=12) R[ra] <-----R[rb]+R[rc]:
9. Describe the following RTN statements:
a. IR <31..0>
b. OP<4..>:=IR<31..27>
10. What decimal value does the binary word 1010 1111 0101 0100 have when it represents an:
a. Unsigned integer
b. 2's compliment
In: Computer Science
Should a counselor remain value-objective about controversial issues presented by a client (such as abortion, suicide, adultery, drug use, domestic violence, child abuse, etc.)? Some counselors might argue that they should not express their values or criticize their clients for these behaviors, while others would say that expressing moral judgment is appropriate. Consider the information above and chapter 3 of the textbook. Write a 1,000-1,250-word paper addressing the following: Analyze the ethical implications of a counselor expressing their values to a client. Identify actions a counselor might take when confronted with clients they find difficult to treat due to differences in values/beliefs regarding one or more of the following issues: abortion, suicide, adultery, drug use, domestic violence, child abuse Identify factors that might lead a counselor to consider referring a client with any controversial issues to another counselor. Describe steps a counselor should take if referral is not an option. Be sure to use the ACA and NAADAC codes of ethics as guidelines when constructing your paper. Include three additional scholarly resources in your paper.
My question is.... How do I begin this paper? Could someone help me get started. Thanks
In: Psychology
2. Implement a drawing card game:using python
2.1 Build a class Card() that contains 2 variables: rank and suits
(10 points)
2.2 Build a Deck that contains 52 cards with ranks and suits.
(20 points)
2.3 Two players will take turn to draw two cards from a shuffle
decks. (30 points)
You must implement a function call
playerTurn(deck) to handle a player turn.
playerTurn(deck) should
include these features:
2.3.1 Draw 2 cards from the Deck created in 2.2 2.3.2 Display ranks and suits of these cards
2.3.3 Return the sum of ranks of these cards. Notice that: ‘J’ = 11, ‘Q’ = 12, ‘K’ = 13, and ‘A’ = 1
2.4 The sum results will be compared between 2 players and who gets the larger in total will win that round. Notice that the game needs to keep track total number of player’s win round. (10 points)
2.5 Players have option to repeat as many times as they want. If the users choose ‘Y’, they will continue to draw from the original deck. (The deck will not be shuffled or added during the whole game. In other word, a card cannot be drawn twice during a game). (10 points)
In: Computer Science
Complete this programming problem in this assignment by using Microsoft Visual Studio Suite. Compile your solutions for each problem solved in a Word or Google document which includes (a) the pseudocode, (b) the C# codes and (c) the execution result (screen capture just the answer part using Snipping Tool, avoiding non-related or blank spaces). Notice for readability, that the (a) & (b) are in text mode and the (c) is in image mode. Use proper titles and wording in the results, such as Console.WriteLine("The total change to be made is {0:C}.", change); so that the results could be easily understood by a third party reader.
Question: Write a C# program to compute the profit made for
selling goldfish flakes online. The wholesale cost for a case of
24-boxes is $118. The price for sale with shipping charge is $9.59
per box. Shipping cost is $1.35 per box. The onlinelisting charge
is 12% of the customer payment. The payment processing cost is 4%
of the payment. Compute and display the following figures for
selling 25 cases of the products: the total wholesale cost for 25
cases; the total revenue for 25 cases of 24 boxes per case, the
total listing cost, the total payment processing cost, and the
total profit made.
In: Computer Science
The first assignment involves writing a Python program to
compute the weekly pay for a salesman. Your program should prompt
the user for the number of hours worked for that week and the
weekly sales. Your program should compute the total pay as the sum
of the pay based on the number of hours worked times the hourly
rate plus the commission. You should choose a value for the hourly
pay. The commission should be computed as a percentage of the
weekly sales. You should choose a value for the percentage. Your
program should output the pay based on the hours worked, the
commission and the total pay for the week.
Your program should include the pseudocode, used to come up with
the program statements, in the comments. Document the values you
chose for the hourly rate and commission percentage in your
comments as well.
You are to submit your Python program as a text file (.txt) file.
In addition, you are also to submit a test report in a Word
document or a .pdf file. 15% of your grade will be based on whether
the comments in your program include the pseudocode and define the
values of your constants, 70% on whether your program executes
correctly on all test cases and 15% on the completeness of your
test report.
In: Computer Science
A) DDL
For Company DB Schema, Answer the below questions:
Emp (Empno, Ename, Job, Hiredate, Sal, Comm, Deptno)
Dept (Deptno, Dname, loc)
1. Retrieve the data of all employees.
2. Retrieve the data of all Salemanemployees.
3. Retrieve the name and Salary of all employees.
4. Retrieve the name and salary of Salemanemployees.
5. Retrieve the name and salary of all employees with Salary more than 2000.
6. Retrieve the Name and Salary of all employees who work in department no 20.
7. Retrieve the name and Job of all employees with Salary more than 2000 and hiredate after 01-01-1981.
8. Retrieve the Job and Salary of all employees with Name = FORD or MARTIN.
9. Retrieve the Name and Number of all Departments.
10. Retrieve the Employee Name and Department number for all employees.
11. Retrieve the Employee Name and Department name for all employees.
12. Retrieve the Employee Name and who works in Department name = RESEARCH.
13. Retrieve the Employee names who workin one of these Departments: RESEARCHand SALES.
14. Retrieve the Employee name who works in department located in NEW YORK.
please write in computer word not on paper
In: Computer Science
Choose an existing web site that you think can be improved or you have experienced problems with and explore the site thoroughly.
In: Computer Science
Identify a situation in your current job or a previous one in which a sales message is or was needed. Using suggestions from this chapter, write an appropriate sales message that promotes a product or service. Use actual names, information, and examples. If you have no work experience, imagine a business you would like to start, such as data processing, pet grooming, car detailing, cleaning, tutoring, specialty knitting, balloon decorating, delivery service, child or elder care, gardening, or lawn care.
Your Task. Write a sales letter or an e-mail marketing message selling your product or service to be distributed to your prospective customers. Be sure to tell them how to respond. You don’t need to know HTML or have a Constant Contact account to craft a concise and eye-catching online sales message. Try designing it in Microsoft Word and saving it as a Web page (go to the File tab and select Save as; then in the Save as type line, select Web page). Consider adding graphics or photos—either your own or samples borrowed from the Internet. As long as you use them for this assignment and don’t publish them online, you are not violating copyright laws.
In: Operations Management