Make a simple checkbook balancer that would input a sequence of deposits (positive floating- point values) and issuances (negative floating-point values) terminated by a 0. It would output the transaction type, the amount and the running balance for each entry. Assume the initial balance of 0. Ensure that the issued check won't bounce! For example: Input Result 1000 Transaction: Deposit -500 0 1000 -500 -800 500 0 Amount entered: 1000.00 Remaining balance: 1000.00 Transaction: Issuance Amount entered: 500.00 Remaining balance: 500.00 Transaction: Deposit Amount entered: 1000.00 Remaining balance: 1000.00 Transaction: Issuance Amount entered: 500.00 Remaining balance: 500.00 Check will bounce! Transaction: Deposit Amount entered: 500.00 Remaining balance: 1000.00
Q: In the context of computer systems, what are the key differences between hardware and software?
A: Hardware and software are two essential components of computer systems. Hardware refers to the…
Q: Difference between launching attack on 32-bit and 64-bit Program Using gdb to conduct an…
A: Difference between launching attack on 32-bit and 64-bit Program
Q: Discussing iterative and non-iterative DNS queries, authoritative servers, root servers (if…
A: Domain Name System: The domain name system, often known as DNS, may be thought of as the Internet's…
Q: Question 29 Given the below snippet type the expected output. Hint: Read carefully public class Main…
A: For the given snippet, the output is in the below steps.
Q: Implement textbook (9/E) problem 7.28 in page 303. The problem statement is reproduced next: 7.28…
A: Java is a high-level, class-based, object-oriented programming language that is widely used for…
Q: Prove or disprove that if f₁ (n) = 2 (9₁ (n)) and f2 (n) = N(92 (n)), then f₁ (n) + f₂ (n) = N (min…
A: Let assume f1(n) = Ω(g1(n)) and f2(n)=Ω(g2(n)) f1(n) >= c1g1(n) and f2(n) >= c2g2(n)
Q: Database security, then? Two-way database security: how
A: Introduction: Database security refers to the measures taken to protect a database from unauthorized…
Q: What exactly do people mean when they talk about "hardware" and "software" in the context of this…
A: Hardware refers to the physical components of a computer system while software refers to the…
Q: How were Adele Goldstine, Klara von Neumann, Jean Jennings Bartik, and Grace Hopper important and…
A: The history of computing is rich with the contributions of many brilliant minds, including those of…
Q: def main(): monthlySales = getSales() printbonus=print_bonus(storeAmount,empAmount) #This…
A: Coded using Python 3.
Q: Turn on the Non-executable Stack Protection Operating systems used to allow executable stacks, but…
A: To make the stack non-executable, we will recompile the callshellcode.c program in the shellcode…
Q: Q3 DA= DB= Consider the sequential circuit shown and answer the following questions: a) Provide the…
A: A) By analyzing the circuit and applying Boolean algebra rules, the Boolean expressions for the D…
Q: Write a Tic Tac Toe game played by only AI and only with random picks. Detect tie or win. Write a…
A: To create a Tic Tac Toe game played by only AI, you can implement an AI algorithm to play against…
Q: Do the functions of hardware and software differ significantly?
A: This topic examines the distinction between two fundamental branches of computer science. I have…
Q: I'm confused by OS systems' multiple partitioning techniques
A: Partitioning is the process of dividing a physical storage device such as a hard drive or…
Q: Detail iterated and non-iterative DNS queries, authoritative and root DNS servers, and DNS records.
A: DNS (Domain Name System) is a distributed hierarchical system that translates human-readable domain…
Q: You will be moving out of your parents' home and will need your own cell phone. Find out what it…
A: In today's digital age, owning a cell phone has become an essential part of daily life. As we move…
Q: For 73, which of the following is true: ΣΣΣΣ 1 ΣΣΣΣ 1 > i=1 j=i+1 1 < i=1_j=2 Σ i=1 j=2 1
A: Here j is i+1 In Summation Constant value 1 is given So Always 1 will come So Second,Third,Fourth…
Q: Which of the following is a valid SQL command? O GRANT SELECT ON orders TO rthomas WITH ADMIN…
A: SQL & SQL Commands : The SQL commands in the question are related to the privilege management…
Q: Lets say we have an array of n items that we need to sort. Lets say that there is a sorting…
A: - We need to talk about the worst case time complexity in at least Ω(n2 / log n).
Q: FTP enables files to be downloaded or uploaded between computers. True False
A: The answer is discussed in the below step
Q: Is there a reason cybercrime is becoming more widespread and sophisticated?
A: Every sector is seeing a constant rise in cybercrime. Because these crimes take so long to resolve…
Q: Which command flushes the level 1 data cache from every VM entry in the VirtualBox?…
A: Correct Answer is " D " D. → --I1d-flush-on-vm-entry
Q: Apache OpenOffice is an example of a(n) ________ productivity suite. A) open source B) system C)…
A: The answer of this question is as follows.
Q: What is the government's official stance on the matter of cybercrime and how does it feel about it?
A: Introduction: Computer ethics should be part of the CIO's IS strategy. An IS strategy plans how…
Q: (b) Suppose that a machine prints a status message every minute. Each status message consists of one…
A: We can turn the historical status message stream into a supervised learning task to test the…
Q: Cybercrime fascinates and repulses people.
A: Explain the concept of cybercrime. Hacking into a system to steal something or alter data is an…
Q: OLAP use in descriptive analytics must be explained.
A: Answer: Introduction: Business data is organized and analyzed using a multidimensional approach by…
Q: C++ Transform this function into an iterative one using the transformation for tail-recursive…
A: The given function is a recursive in nature. It is tail recursion We shall either use a while loop…
Q: When did cybercrime become so common and complex?
A: Cybercrime has been around since the early days of computer networks, but it has become increasingly…
Q: a) Fill in the blanks. .data A: .word 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 i: .word 7 B:…
A: Introduction: a)Fill in the blanks..dataA: .word 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24i:…
Q: Which of the following state changes does the OS perform on a process?
A: There are two multiple choice questions given, 1. which of the following state changes is a process…
Q: Automata Theory: Draw a NFA that accepts the language denoted by the following regular…
A: Answer : Non - Deterministic Finite Automata (NFA) : 1) From the given problem we have to draw an…
Q: Write to code describes how to create the links dataset that represents the input graph. In this…
A: As any language is not mentioned to write the code im writing in python
Q: From iterated searches to root servers, authoritative servers, and records, the DNS is explained in…
A: The answer is given in the below step
Q: What exactly is data profiling, and how does it help to enhance the overall quality of the data that…
A: Introduction: Data profiling is the process of examining and analyzing data from various sources to…
Q: Write a Python code that reads a 6-digit number from input. Then take the three leftmost digits and…
A: 1) Below is python program that reads a 6-digit number from input. Then take the three leftmost…
Q: Graph H: DA a
A: To find whether the given graph is planar or not we can use kuratowski's theorem which states that a…
Q: How is "data mining" done? Data mining benefits for profit-seeking businesses? Accounting data…
A: Data mining: Data mining is the process of analyzing a large batch of information to discern trends…
Q: Exercise # 4: Write a program that generates a random word made of 4 consonants and 4 vowels. Each…
A: See the code in python to generate the word made of 4 consonants and 4 vowels
Q: How does research affect cybercrime?
A: Cybercrime is increasing because data and information are essential in the current climate.…
Q: Consider DHKE over GF(25) with P(x) = x5+x2+1 being an irreducible polynomial. The primitive element…
A: To compute the shared secret key using the Diffie-Hellman Key Exchange (DHKE) over GF(25), with…
Q: The issue is whether kind of program-level parallelism, control or data, works best with SIMD. What…
A: SIMD architecture: A single instruction is executed on multiple data elements in parallel. The data…
Q: Could you show me a SQL database and explain it?
A: Consider the following example of a SQL database that contains information about employees: CREATE…
Q: lease explain what jQuery-UI widget is in Interactive Web Applications. Please give a coding…
A: Introduction: Interactive web applications allow users to perform a wide range of tasks with ease…
Q: hexadecimal We usually write numbers in decimal form (or base 10), meaning numbers are composed…
A: Hexadecimal is a numbering system with base 16 used to represent large numbers with limited digits.…
Q: Write a query using the Production.Product table that lists a count of the products in each product…
A: Introduction : The Production.Product table is a commonly used table in a SQL database that contains…
Q: I have an emotion detection project in machine learning course, i need to do a live emotion…
A: Below is the complete solution with explanation in detail for the given question in Python…
Q: Canvas ← X COB Given the below snippet of code fill in the following answers. Hint: Type only what…
A:
Q: The activity of compiling information from a variety of sources is referred to as "data mining," and…
A: Introduction: Data mining is the process of analyzing and extracting valuable information from large…
Define loop step ba.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- Write the pseudocode for the following scenario: A manager at a 2nd hand car dealership wants to keep track of the amount (in Rands) of commission paid to the sales people. You must take the following into consideration: • There may be more than one salesperson (each salesperson has a unique employee code)– input the employee code. An employee code of zero (0) terminates the program. • The salesperson’s commission is based on their sales (in Rands) in the past month- input the sales for each salesperson. • Calculate the total car sales (in Rands). • Calculate a salesperson’s commission (in Rands). Commission is based on the following table: Total value of cars sold Percentage commission earned Less than or equal to R500 000 10% More than R500 000 15% • Calculate the total commission the manager must pay to all of the salespeople. • Display a report for the manager in the following format: Employee Code: 2 Sales: R400000 Commission: R40000 Employee Code: 4 Sales: R650000…Suppose you have a certain amount of money in a savings account that earns compound monthly interest, and you want to calculate the amount that you will have after a specific number of months. The formula is as follows: f = p * (1 + i)^t • f is the future value of the account after the specified time period. • p is the present value of the account (the account's current balance). • i is the monthly interest rate. • t is the number of months. Write a program that takes the account's present value (current balance), monthly interest rate, and the number of months that the money will be left in the account as three inputs from the user. The program should pass these values to a function that returns the future value of the account, after the specified number of months. The program should print the account's future value. Look carefully at the following sample run of the program. In particular, notice the wording of the messages and the placement of…A fish-finder is a device used by anglers to find fish in a lake. If the fish-finder finds a fish, it will sound an alarm. It uses depth readings to determine whether to sound an alarm. For our purposes, the fish-finder will decide that a fish is swimming past if:there are four consecutive depth readings which form a strictly increasing sequence (such as 3 4 7 9) (which we will call "Fish Rising"), orthere are four consecutive depth readings which form a strictly decreasing sequence (such as 9 6 5 2) (which we will call "Fish Diving"), orthere are four consecutive depth readings which are identical (which we will call "Constant Depth").All other readings will be considered random noise or debris, which we will call "No Fish."Create a Python program called "fishfinder_firstname_lastname" that takes 1 input of string of 4 numbers separated with comma. Your program must display "Fish Rising", "Fish Diving.", "Fish At Constant Depth" or "No Fish".Example:30,10,20,20 Must display No…
- C program using loops Make a simple checkbook balancer that would input a sequence of deposits (positive floating-point values) and issuances (negative floating-point values) terminated by a 0. It would output the transaction type, the amount and the running balance for each entry. Assume the initial balance of 0. Ensure that the issued check won’t bounce! For example: Input Result 1000 -500 0 Transaction: Deposit Amount entered: 1000.00 Remaining balance: 1000.00 Transaction: Issuance Amount entered: 500.00 Remaining balance: 500.00 1000 -500 -800 500 0 Transaction: Deposit Amount entered: 1000.00 Remaining balance: 1000.00 Transaction: Issuance Amount entered: 500.00 Remaining balance: 500.00 Check will bounce! Transaction: Deposit Amount entered: 500.00 Remaining balance: 1000.00Suppose you are a computer salesman and your income depend on the total sales and commissions earned for the computers that you sell. Commission rates vary depending on how many units you sold (see chart below). Your income equals to the total sales plus the commission where the commission equals to total sales times the commission rate. That is, commission = total sales * commission rate and income = total sales + commission. Total Sales Commission rate % Less than 200 sold 8% (totalsales < 200) Greater or equal to 200 sold 10% (totalsales >=200 & totalsales <400) Greater than to 400 sold 12% (if (totalsales >= 400) Use Multiway if, else if (use as many you need) and else correctly Review slides 3-CH-2 Slide 4 and 8 Write the code correctly as show in the chapter slides. Pay attention to the commission chart above: (3) input as examples shown 500, 250, 150 You can work with your team and submit your code and output in PDF. 1. Provide the user the commission rate list…The user must be able to enter the information for a number of bookings from the keyboard. Ask whether a booking must be made (Y or N). If a booking must be made, a random 3 digit flight number must be generated. The user must be asked to enter the type of seat, the price per seat and the number of seats to book. Example of input: Make a booking (Y or N)? :Y Type of seat (E or B): e Price per seat: 1200 Number of seats: 2 Make another booking (Y or N)? :y Type of seat (E or B): b Price per seat: 3400 Number of seats: 2 Make another booking (Y or N)? :y Type of seat (E or B): e Price per seat: 1400 Number of seats: 3 Make another booking (Y or N)? :y Type of seat (E or B): e Price per seat: 1300 Number of seats: 2 Make another booking (Y or N)? :y Type of seat (E or B): b Price per seat: 4500 Number of seats: 2 Make another booking (Y or N)? :n
- Suppose you have a certain amount of money in a savings account that earns compoundmonthly interest, and you want to calculate the amount that you will have after a specificnumber of months. The formula is as follows: F=P×(1+i)tF=P×(1+i)t The terms in the formula are: • F is the future value of the account after the specified time period.• P is the present value of the account.• i is the monthly interest rate.• t is the number of months.• F is the future value of the account after the specified time period.• P is the present value of the account.• i is the monthly interest rate.• t is the number of months. $$ Write a program that prompts the user to enter the account’s present value, monthly interest rate, and the number of months that the money will be left in the account. The program should pass these values to a function that returns the future value of the account, after the specified number of months. The program should display the account’s future value.Write a program that takes balance of a user's account as input.it should then ask the user how much amount he wants to withdraw from his account.the program should take this amount as input and deduct from the balance.similarly,it should ask the user how much he want a to deposit in his account.it should take this amount as input and add to the balance.the program shall display the new balance after amount has been withdrawn and depositedWhen you borrow money to buy a house, a car, or for some other purposes, then you typically repay it by making periodic payments. Suppose that the loan amount is L, r is the interest rate per year, m is the number of payments in a year, and the loan is for t years. Suppose that i = (r / m) and r is in decimal. Then the periodic payment is: You can also calculate the unpaid loan balance after making certain payments. For example, the unpaid balance after making k payments is: where R is the periodic payment. (Note that if the payments are monthly, then m = 12.) Instructions Write a program that prompts the user to input the values of L, r, m, t, and k. The program then outputs the appropriate values. Your program must contain at least two functions, with appropriate parameters, to calculate the periodic payments and the unpaid balance after certain payments. Make the program menu driven and use a loop so that the user can repeat the program for different values. Example of…
- Python code for this scenario: There is a line of tourist trying to book a room for their vacation. The rates for each room is available below. The guest are allowed to book any room for any duration. Rate per day: A - Junior Suite (1500) B - Deluxe Suite (3600) C - Executive Suite (7800) Input: Number of guests: Name of guests: Letter of their room choice and the number of room: Duration of stay: Customer payment: Process: - The accommodation should be inputted as a string. If the value is not applicable, just ignore that item. - The duration of their stay will be arranged in ascending order to know who will check out soon Output: Guest names in ascending order based on the duration of their stay. Calculate your total sales and the total change. Example: Book now! Rate per day: A - Junior Suite (1500) B - Deluxe Suite (3600) C - Executive Suite (7800) Number of guests: 3 Name of guests: Moon Rose Sky Letter of their room choice and the number of room: A3 B2 C1 Duration of…In Python, Write a program that continuously asks for a non-negative score until the user enters -1. IF the user enters a valid score ask for the possible score for that assignment, we will not assume all scores will have the same maximum value. We will assume that no one will receive a score of 0 on any assignment IF anything it is actually turned in, meaning a score of 0 indicates that the score was not turned it. It’s still the score for the assignment, but this fact will be used later in the assignment. Once all of the scores have been entered display the following information: • Total number of scores entered. • Total points for the student. • Total number of possible points • Class percentage, with 2 decimal place. • Letter grade using the 90, 80, 70, 60 grading scale. • If we believe the student has dropped. We will assume this is true if ALL of the entered scores are 0 (indicating that nothing was turned it). • If all of the scores were turned in or if the student is missing at…You are working as a teaching assistant at a local university, you gave your students a mathematics exam. The test result appears in as shown in table (1) below. The head of the department asked to write the code that accomplishes the following three tasks using Matlab: Table (1): show the test result for a mathematics exam Number of 1 2 3 4 5 8 9. student Grades 35 50 70 63 66 90 30 27 89 aUniversity 1. Draw the flowchart for the previously requested tasks and the two that follow. 2. The number of students who got greater than or equal to 50. 3. If the mark is greater than or equal to 50, then the output is “pass" otherwise the output is "fail" 4. The number of even marks and the number of odd marks.