Homework #2-Xiaoyu Liu Maria Anguiano's current salary is $65,000 per year, and she is planning to retire 25 years from now. She anticipates that her annual salary will increase by $3,000 each year. (That is, in the first year she will earn $65,000, in the second year $68,000, in the third year $71,000, and so forth.) She plans to deposit 5% of her yearly salary into a retirement fund that earns 7% interest compounded daily. What will be the amount accumulated at the time of her retirement? Assume 365 days in a 4. year. The effective annual interest rate is %. (Round to four decimal places.) The amount accumulated at the time of Maria Anguiano's retirement is $ (Round to the nearest dollar.)
Q: Using asymptotic definitions prove the following: 1) n = theta(n2) [ Hope you understood what I mea...
A: Given: 1) n = theta(n2) 2) n3 = omega(n2) 3) n = omega(logn)
Q: How Many? Code in C language
A: ALGORITHM:- 1. Take the input for the n. 2. Take n elements input in the array. 3. Take the value of...
Q: What exactly is SSH? How do we use SSH to connect to a distant server?
A: INTRODUCTION: We need to answer the what is SSH and how SSH connect to distant server.
Q: Describe in detail the following FIVE(5) stages of hacking. i. Gaining access ii. Escalating p...
A: Hacking is basically the task of fetching the personal data of other people in inappropriate ways. I...
Q: Determine a database's and a data warehouse's principal purposes. Explain why both of these data man...
A: Introduction: A data warehouse is a unique sort of data management system intended to facilitate and...
Q: With regard to the following JavaScript program, function main() { function sub1() var x = 10; f...
A: answer is
Q: Which website is the most secure? a. http://educationisfun.com b. www.educationisfun.com c. https:/...
A: Here in this question we have given four website and we have asked that which one is secure.
Q: PCA & MDS How can one show that the principal coordinates X̂MDS = IPxN ΛMDS1/2 UT are centered?
A: Exemplary Torgerson's metric MDS is really finished by changing distances into similitudes and perfo...
Q: SELECT * FROM students WHERE City!='Muscat';
A: This two queries are converted into relational algebra as follows.
Q: I am learning c++ right now, and I am confused about the rand() command. Please explain this to me, ...
A: The rand() function is used to generate random numbers and returns a pseudo random number. It is the...
Q: int foo1(int n) { int i, sum = 0; if (n==1) { return 1; } for(i=1; i<=n; i*=3) { sum += i; %3D }
A: Big Oh notations explains the worst-case running time of an algorithm,in simple words. It is the upp...
Q: This is very confusing for me; we cant use import statements; Please create code for me with the f...
A: Given :- MCS Roast Being tired of the challenging assignments given by the MCS Professors, students ...
Q: Using the java language create a program that takes a value as in input from the keyboard and output...
A: Given :- Using the java language create a program that takes a value as in input from the keyboard ...
Q: What are the difficulties in putting mobile technology into practise? How much money will I save if ...
A: Introduction: Mobile technology is technology that follows the user wherever he or she goes. It is m...
Q: Questions A: How to determine FD’s hold in a relation? How to deduce all FD’s from a given set of FD...
A: Introduction: Let's say we have a relation R and a set of functional dependencies that hold in R, an...
Q: CAN WE TALK ABOUT BLOCKCHAIN TECHNOLOGY?
A: Intro What is BLOCKCHAIN:⦁ As its name suggests, its a chain of blocks or a growing list of records ...
Q: Define a function below called make_list_from_args, which takes three numerical arguments. Complete ...
A: Note:- You have not mention the language of the program, So I am doing your question in Python. Your...
Q: Explain in detail what penetration testing is and state the primary outcome from it. Briefly describ...
A: A penetration test, also known as a pen test, is an intelligence gathering and vulnerability assessm...
Q: Some content producers have set up their own networks to distribute their material. Describe the Goo...
A: The network of Google: The Google network is a word used to describe regions where AdWords adverts a...
Q: Could blockchain technology negatively affect communities?
A: Introduction: Personal choice is increasing individual liberty as a result of blockchain technology....
Q: Write a program to convert length in miles, yards, feet and inches to a Metric System length in kilo...
A: Python: Functions are subprograms that compute a value or perform a task. Functions decrease the num...
Q: 3. Write a program called alice_words.py that creates a text file named alice_words.txt containing a...
A: "alice_words.py"that creates a text file named "alice_words.txt" containing an alphabet...
Q: simplify the following Booleon function s Boolean oalgebra using Fi = ĀB Č t BcD + + AB C %3D
A:
Q: Write two fragment of code in C++ using while and do..while loop respectively that repeatedly prompt...
A: Your C++ program is given below as you required with an output.
Q: Define the control of input/output (I/O) devices.
A: Introduction: A system must first accept a request from an external source before processing it and ...
Q: The first step in defining a Task Analysis is the same of what activity in the seven stages of actio...
A: Q1 - answer) a) Forming the goal Q2 - answer) c) Shouting
Q: Explain how inline style sheets overrule the HTML document's style.
A: What is a Style Sheet: A Style Sheet is a collection of style rules that advises a browser on how to...
Q: What is the meaning of passing by reference
A: The functions can be invoked in two ways and are as follows: pass by value pass by reference
Q: calculate the unit roots of those data using R studio. Corn Soybeans 107.3439992 212.1854389...
A: Given The answer is given below.
Q: a) Generate 10,000 random samples of sample size 40 from this population: Use the R command sample (...
A: Algorithm: Start Set n=40 Store a sequence of values from 1-50 in x Declare an empty list named sam...
Q: A trigger's execution might result in the execution of another action. The depth of nesting in most ...
A: A trigger's execution might result in the execution of another action. The depth of nesting in most...
Q: What exactly is Android Pie?
A: Introduction: Before being bought by Google in 2005, Android, Inc., a software firm based in Silicon...
Q: tly is a Compiler?
A: given - What exactly is a Compiler?
Q: Define the Physical Data Model and the Logical Data Model ? What isthe relationship between the two...
A: Introduction: You may use the logical model to describe business information and build business rule...
Q: ing al
A: What exactly is a class?A class is a template definition of the methods and variables in a specific ...
Q: Consider a hash table of size 11 with hash function h(x) = x mod 11. Draw the tablethat results afte...
A:
Q: Using the scenario, produce Design Documentation for Plug-Ins Electronics. Your database design docu...
A: An ER diagram contains entities and attributes. It is used to visually denote the working of a certa...
Q: 3. Write a program called alice_words.py that creates a text file named alice_words.txt containing a...
A: we have provided required code in Python
Q: What portion of the service manual provides information about what each system component does and wh...
A: Knowledge can be included in a user manual: This support handbook may include the things like a spec...
Q: hout internet ?
A: given - How does censorship grow and thrives in a place without internet ?
Q: Write a program that removes all non alpha characters from the given input. Ex: If the innut is:
A: Note: Code works perfectly. I have attached a screenshot of the source code and output for your refe...
Q: a. Using a writing speed of 700 Mbits/s, how long would it take to store a 40 GB raw video file on a...
A: Data compression rate, also known as compression strength, is the rate of related reduction of data ...
Q: compare the utility of a data model to the classic strength prediction technique
A: Introduction: To address the issue, we must discuss the use of a data model in the context of the st...
Q: a) Write the C++ statements for following tasks: Declare a struct name GameRecord The members are ga...
A: The question is to write C++ code for the given problem.
Q: In the 8-puzzle game, assume that the start state is: 2 6. 4 7 8 An agent is to be designed to solve...
A: 1) The environment is fully observable.Need to understand each and every step which we make in this ...
Q: Call method "calculateUpperSectionCategory"
A: When method call is executed, control jumps to method definition and executes statements within it. ...
Q: The Linux operating system is a very popular server OS. A network administrator has to protect the l...
A: the code is an given below :
Q: = 0 for value in y: if len(value) > x:
A: Given Enter a list of at least three elements for y such that the value of x is 2 when the loop comp...
Q: Why should the organization embrace Agile Methodology?
A: Step 1) Agile methodology : The term agile means the ability of response to changes from requiremen...
Q: at exactly is seek ti
A: Below the exactly is seek time
4.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images
- Bus Loading Problem. You are in charge of filling busses with passengers at a bus terminal. Each bus has space for ten (10) passengers. Four (4) of those spaces can hold only wheelchair passengers, and the other six (6) can hold only non-wheelchair passengers. Busses and both types of passengers arrive at random. As busses arrive, you are to fill them up with passengers. Once a bus is full (containing 6 non-wheelchair, and 4 wheelchair passengers), it is allowed to leave the terminal, along with its passengers. You are responsible only for loading the passengers on the bus and having the bus depart. You do not need to worry about what happens to the busses or passengers after they leave. Each bus process has available to it the functions ArriveAtTerminal(), OpenDoors(), CloseDoors(), and DepartTerminal(). Each passenger process has available to it the functions ArriveAtTerminal() and GetOnBus(). Executing GetOnBus() loads the passenger on the bus, and the function returns when the…Correct answer will be upvoted else Multiple Downvoted. Computer science. You are playing another PC game in which you need to battle beasts. In a prison you are attempting to clear, you met three beasts; the first of them has a wellbeing focuses, the second has b wellbeing focuses, and the third has c. To kill the beasts, you can utilize a gun that, when discharged, bargains 1 harm to the chose beast. Each 7-th (I. e. shots with numbers 7, 14, 21 and so on) gun fired is upgraded and bargains 1 harm to all beasts, not only one of them. In case some beast's present measure of wellbeing focuses is 0, it can't be designated by an ordinary shot and doesn't get harm from an upgraded shot. You need to pass the prison delightfully, I. e., kill every one of the beasts with a similar improved shot (I. e. after some upgraded shot, the wellbeing points of every one of the beasts should become equivalent to 0 interestingly). Each shot should hit a beast, I. e. each shot arrangements harm to…Texas Hold em poker game 2 to 8 human or computer players Each player has a name and stack of chips Computer players have a difficulty setting: easy, medium, hard Summary of each hand:o Dealer collects ante from appropriate players, shuffles the deck, and deals eachplayer a hand of 2 cards from the deck.o A betting round occurs, followed by dealing 3 shared cards from the deck.o As shared cards are dealt, more betting rounds occur, where each player can fold,check, or raise.o At the end of a round, if more than one player is remaining, players' hands arecompared, and the best hand wins the pot of all chips bet so far. What classes are in this system? What are their responsibilities? Which classes collaborate? Create the Use Cases for this systemCreate a Use Case diagram for this system Draw a class diagram for this system. Include relationships between classes (generalization andassociational).
- The game of Pig is a simple two-player dice game in which the first player to reach 100 or more points wins. Players take turns. On each turn, a player rolls a single six-sided die: • If the player rolls a 1, then the player gets no new points and it becomes the other player's turn. • If the player rolls 2 through 6, then he or she can either o ROLL AGAIN or o HOLD: At this point, the sum of all rolls for that turn is added to the player's overall total score and it becomes the other player's turn. Write a Java program that plays the game of Pig, where one player is a human and the other is the computer. When it is the human's turn, the program should show the score of both players and the previous roll. Allow the human to input whether to roll again or hold. The computer program should play according to the following rules: Keep rolling when it is the computer's turn until it has accumulated 20 or more points, then hold. • If the computer wins or rolls a 1, then the turn ends…Q3: Superheroes Supervillains are tired of Toronto condo rental prices, so they are leaving Toronto for Mississauga. Luckily, we have valiant superheroes that can deal with them. The superhero () has a name , an intelligence score , and a strength score .ni-th0 = gin[x] + s[x] Detective Zingaro has asked for your help. For each of the supervillains, tell him the name of the superhero that should deal with that supervillain. Note: A superhero can be assigned to multiple supervillains (or none at all). Note: whenever there are multiple superheroes that satisfy the given requirements for a supervillain, report the one whose name is lexicographically smallest (i.e. the one that’s the smallest according to Python’s ordering of strings). It’s guaranteed that superheroes have distinct names. Hint: Tuples of multiple elements may be helpful here. In python, you can compare two tuples and . If and are different, the result is the same as comparing and . If and are equal, the result is the same…Interest on a credit card’s unpaid balance is calculated using the average daily balance. Suppose that netBalance is the balance shown in the bill, payment is the payment made, d1 is the number of days in the billing cycle, and d2 is the number of days payment is made before billing cycle. Then, the average daily balance is: averageDailyBalance =netBalance x d1-payment x d2d1 If the interest rate per month is, say, 0.0152, then the interest on the unpaid balance is: Interest= averageDailyBalance * 0.0152 Write a program using c++ compiler that accepts as inputnetBalance, payment, d1,d2, and interest rate per month. The program outputs the interest. Format your output to two decimal places.
- Python Knapsack Problem: imagine you are carrying a knapsack with capacity to hold a total of weight C. You are selecting among n items with values A={a_1, a_2, ... , a_n} and associated weights W={w_1, w_2, ... , w_n}. Here the weights and values are all positive. You wish to maximize the total value of the items you select not exceeding the given weight capacity, example, maximize sum_{a in A} such that sum_{w in W} <= C. Note that you can only select your items once. Reformulate this as a bottom-up dynamic programming problem as follows. Define K_{i,j} as the highest possible value sum considering items 1 through i and total weight capacity j (j <= C). What is the base case i.e. K_{0,j} for all j and K_{i,0} for all i. What is the loop statement?When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making periodic payments over a certain period of time. Of course, the lending company will charge interest on the loan. Every periodic payment consists of the interest on the loan and the payment toward the principal amount. To be specific, suppose that you borrow $1,000 at an interest rate of 7.2% per year and the payments are monthly. Suppose that your monthly payment is $25. Now, the interest is 7.2% per year and the payments are monthly, so the interest rate per month is 7.2/12 = 0.6%. The first months interest on $1,000 is 1000 0.006 = 6. Because the payment is $25 and the interest for the first month is $6, the payment toward the principal amount is 25 6 = 19. This means after making the first payment, the loan amount is 1,000 19 = 981. For the second payment, the interest is calculated on $981. So the interest for the second month is 981 0.006 = 5.886, that is, approximately $5.89. This implies that the payment toward the principal is 25 5.89 = 19.11 and the remaining balance after the second payment is 981 19.11 = 961.89. This process is repeated until the loan is paid. Write a program that accepts as input the loan amount, the interest rate per year, and the monthly payment. (Enter the interest rate as a percentage. For example, if the interest rate is 7.2% per year, then enter 7.2.) The program then outputs the number of months it would take to repay the loan. (Note that if the monthly payment is less than the first months interest, then after each payment, the loan amount will increase. In this case, the program must warn the borrower that the monthly payment is too low, and with this monthly payment, the loan amount could not be repaid.)Transcribed Image Text 7-a) Danish works as a constructor. Like all constructors, he is also a beer fan. He likes beer so much that has K cups of beer daily. However, having more than K cups doesn't suit him, because the excess beer won't allow him to sleep at night. Danish's working day is divided into N periods. For every period, he knows how many kilobytes of weight he can lift. During each of the periods, Danish can either have or not to have one bottle of beer. If he is having a bottle of beer in some period, the amount of work in this period drops to zero. But he also gets a productivity boost, if he decides to skip beer during a period and the last bottle of beer, he had was no more than D periods ago, the amount of work during such a period is M times the usual.
- Quadratic Root Solver For a general quadratic equation y = ax? + bx + c, the roots can be classified into three categories depending upon the value of the discriminant which is given by b2 - 4ac First, if the discriminant is equal to 0, there is only one real root. Then, if the discriminant is a positive value, there are two roots which are real and unequal. The roots can be computed as follows: -b+ Vb? – 4ac 2a Further, if the discriminant is a negative value, then there are two imaginary roots. In this case, the roots are given by b ь? - 4ас 2a 2a Programming tasks: A text file, coeff.txt has the following information: coeff.txt 3 4 4 4 1 4 Each line represents the values of a, b and c, for a quadratic equation. Write a program that read these coefficient values, calculate the roots of each quadratic equation, and display the results. Your program should perform the following tasks: • Check if the file is successfully opened before reading • Use loop to read the file from main…Q4: Getting the GradeMichael is taking n courses this semester, numbered from 1 to n.Each of these courses has a final exam. Unfortunately, these examsare all held on the same day.Michael has d days left to study for the exams. In each of these days,he has exactly h hours of free time he can use to study (note thath might be greater than 24 as Michael lives in a different universe witha different time system).Moreover, for the i-th course Michael is taking,he has a learning rate l[i] indicating the number of marks he getson the exam per hour of studying for that course.Michael studies for his exams in 1 hour blocks; for example,he can't study for an exam for 40 minutes then switch to another one.Note that in Michael's universe, final exam grades aren'tcapped at 100. In fact, there's no upper limit on how high they can go.If Michael takes an exam without studying for it, he'll get a 0 on that exam.In order to qualify for a nice scholarship, Michael needsto get at least m marks on each…Can you help me with this code because i am struggling and I don't know what to do with this part: he Eight Puzzle consists of a 3 x 3 board of sliding tiles with a single empty space. For each configuration, the only possible moves are to swap the empty tile with one of its neighboring tiles. The goal state for the puzzle consists of tiles 1-3 in the top row, tiles 4-6 in the middle row, and tiles 7 and 8 in the bottom row, with the empty space in the lower-right corner. In this section, you will develop two solvers for a generalized version of the Eight Puzzle, in which the board can have any number of rows and columns. We have suggested an approach similar to the one used to create a Lights Out solver in Homework 2, and indeed, you may find that this pattern can be abstracted to cover a wide range of puzzles. If you wish to use the provided GUI for testing, described in more detail at the end of the section, then your implementation must adhere to the recommended interface. However,…