Calculate income tax for the given income by following the below rules: Total Income Rate (in %) First 10,000 AZN 0 Next 10,000 AZN 10 The remaining 20 Expected Output: For example, suppose the total income of the user is 45000 AZN. In this case income tax payable is: 10000*0% +10000*10% + 25000*20% = 6000 AZN.
Q: 12. What is the result of the flowing code? And tell why. var x = 0; var i = 0; while (i <5){ x +=…
A: According to the Question below the Solution: Output: The while loop run i value start from 0 and…
Q: Describe the role that LSI chips play in the contemporary computer.
A: An Integrated circuit or the IC Chip is a very small flat piece of any semiconductor material, which…
Q: The dissemination of software was revolutionised by microcomputers. Who is to blame for this shift?
A: Given: The personal computer revolution is also known as the microcomputer revolution. What impact…
Q: What kinds of comments are provided by JavaScript? Take examples.
A: In the programming, the comments are used to understand the program logic and make the code easy to…
Q: 1 package package1; 2 3 public class Operation { 40 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22…
A: As per guidelines we are supposed to answer only one question. Kindly repost other questions a…
Q: A hierarchical form has three options for transaction boundaries.
A: Hierarchical form has three option: A form hierarchy flattens the data stream based on parent-child…
Q: Then, come up with a plan for addressing the weaknesses in your current passwords.
A: According to the question, cybercriminals use various hacking techniques to attempt to access your…
Q: The study of computers In concurrency control, what are the potential costs and benefits?
A: Given: Problems may emerge if both transactions use the same data at the same time and one user's…
Q: n information technology, what is an ESI, and why is it so important?
A: Given: What is an ESI, and why is it important in the field of IT? Answer: Electronically stored…
Q: Create a Java class with a method to calculate the factorial of a number.
A: The program is written in java. Please check the source code and output in the following steps.
Q: Where may computer science and other study disciplines intersect? What are their steps?
A: In the subject of artificial intelligence, there are chances to find similarities between computer…
Q: The Impact of Information Technology on Our Daily Lives and Society. Make an argument for both sides…
A: Information Technology: Information technology's effects on our daily lives and society. Present…
Q: Explore wearable computing, such as the Apple Watch and Android Wear, and discuss how these devices…
A: Wearable Technology: Wearable computing and artificial intelligence refer to computer-powered…
Q: Suppose that we have an ordered tile of 30,000 records Stored on a disk. and are with block size…
A:
Q: Where are the possible points of intersection between computer science and other fields of study?…
A: Here are some of the points:
Q: Is it possible to explain how a DBA's workload may be reduced by combining each of the eight cost…
A: A database management system (DBMS) is software that stores and retrieves user data while taking…
Q: Describe the different types of possible prototypes 2. Elaborate on the role of prototype in…
A: NOTE :- Below i explain the answer in my own words by which you understand it well. Prototyping…
Q: rehend two-factor authentication. How does it affect password sec
A: Introduction: Below the describe How does it affect password security with compare two-factor…
Q: A/ find code optimization method to this code and then find type to this code 1-…
A: Here is the optimised code:
Q: Part A Write a program to create a file named hw9.txt if the file does not exist (If the file…
A: ANSWER:-
Q: Use technology and information resources to investigate information systems problems.
A: Information system problems: Inadequate planning Toolset selection Work together with technology…
Q: The type of monitoring display that better matches the operator’s mental model is
A: Both orientation as well as movement correspond to the operator's model. Analog display has an…
Q: Which of the following statements is NOT true about the Turing Machines? O a. For every DFA, we can…
A: We need to find the correct option regarding Turing Machine.
Q: Do smaller screens have an impact on how interfaces are designed and how many people use smartphones…
A: The link that establishes communication between a person using a device and the computer is the user…
Q: researching the reasons why computers are so useful. Which four qualities of computers in the modern…
A: A computer is a piece of electrical: Equipment that has the capabilities of storing, retrieving, and…
Q: What's the difference between interrupt-driven and non-interrupt-driven operating systems?
A: Interrupt-driven and Non-Interrupt-driven: Interrupt driven The notation I/O represents an alternate…
Q: which is transmitted over the channel. Let T(w) denote the received word.
A: The answer is
Q: List a few of the drawbacks of traditional file management methods.
A: Limitations of the file-processing system include the following: The programme is data-dependent: .…
Q: There is something wrong in the following program. Fix the error and write the correct codes…
A: The switch statement or switch case is a multi-way branch statement.
Q: EXAMPLE 8.4 For the analog transfer function 2 Ha(s) = (s + 1) (s+3) determine H(z) if (a) T = 1 s…
A: givenanalog transfer function is H(s)= 2(s+1) (s+3) H(z) is determined using impulse invariant…
Q: + + + + + = 30 =18 = 2 + =??
A: Program: apple = 30/3#apple+apple+apple = 30# 3*apple = 30# apple = 30/3print("cost of one apple :…
Q: The study of computers Give an explanation of the term "ACID transaction."
A: ACID transaction: ACID refers to the four essential characteristics of a transaction in transaction…
Q: Q 6) Arrange the steps of following logic in proper sequence such that it performs Selection Sort in…
A: Selection sort algorithm is given by:- Step 1 − Set MIN to location 0 Step 2 − Search the minimum…
Q: Why is it necessary to load device drivers if the BIOS already has the code necessary for hardware…
A: Traditional x86 BIOS issues (introduction) At launch, the BIOS only contains code that allows the…
Q: Create a program that can classify a non-zero number if it is positive or negative. It also…
A: Source code: #include <iostream>using namespace std; int main(){ int num;…
Q: There are several definitions of IT, but what is it exactly?
A: Information technology in the fields of Computer and software engineering plays an important role.…
Q: What sets a maskable interrupt different from a nonmaskable interrupt and how is this distinction…
A: Maskable interrupt: A hardware interrupt that may be deactivated or ignored by CPU instructions is…
Q: How can you tell whether an application is interfering with a device's output? The stability and…
A: Application is interfering: Interference is used in optical testing to assess surface quality, such…
Q: Q 6) Arrange the steps of following logic in proper sequence such that it performs Selection Sort in…
A: Selection Sort in an array A with N elements of arrangesteps given below:
Q: Provide an explanation of how information systems are used to meet business needs.
A: BISYS: It streamlines decision-making and information delivery, allowing for faster, better choices.…
Q: find the no. of F-D'S 2-attributes? in F-closure (F+) for a relation with
A: No of f.d's in fcloser(f+) for a relation: given we have find it for 2 attributes so take…
Q: Give the result of the following code: quotaThis Month = 7 quotaLastMonth = quotaThisMonth + 1 if…
A: Code: quotaThisMonth = 7#base valuequotaLastMonth = quotaThisMonth + 1#printing the output based on…
Q: Assume for a moment that you are a developer of software and that you have created a system that…
A: Given: Software engineers' targeted 2021 career objectives are: Master a subject, technique, or…
Q: When an interrupt occurs, the CPU immediately suspends the current process and deals with the issue.…
A: If an issue happens, that causes process instances to be terminated. You can take several actions.
Q: What is the largest negative number a 1 byte (i.e. 8 bit) “signed” integer can hold
A: The range of 0 to 255 is being designated to 1-byte unsigned integer. The range is from -128 to 127…
Q: A research study on the importance of networking in information technology's development?
A: Information technology (IT): Information technology (IT) aids organizations by allowing them to run…
Q: In information technology, what is an ESI, and why is it so important?
A: information technology: Information technology (IT) is the creation, processing, storage, security,…
Q: The following loop displays ? for (int i = 1; i 5) { break; }…
A: Code: import java.util.*;public class Main { public static void main(String[] args) { for (int…
Q: Description: Write a method that return the average of an array with the following header: public…
A: Step-1: StartStep-2: Declare an array of size 5 and take input array element from userStep-3: Call…
Q: Distinguish between the origins and development of ICT in relation to different fields and…
A: Schools utilise ICT to communicate, generate, save, and manage data: (6) In some contexts, ICT has…
Control structures
Control structures are block of statements that analyze the value of variables and determine the flow of execution based on those values. When a program is running, the CPU executes the code line by line. After sometime, the program reaches the point where it has to make a decision on whether it has to go to another part of the code or repeat execution of certain part of the code. These results affect the flow of the program's code and these are called control structures.
Switch Statement
The switch statement is a key feature that is used by the programmers a lot in the world of programming and coding, as well as in information technology in general. The switch statement is a selection control mechanism that allows the variable value to change the order of the individual statements in the software execution via search.
Step by step
Solved in 2 steps with 1 images
- use visual basic Depreciation to a Salvage Value of 0 . For tax purposes an item may be depreciated over a period of several years, n . With the straight-line method of depreciation , each year the item dpreciates by 1/nth of it original value. with the double-declining-balance method of depreciation, each year the item depreciate by 2/nths of its value at the beginning of that year.(In the final year it is depreciated by its value at the beginning of the year. ) Write a program that performs the following tasks:(a) Request a description of the item, the year of purchase, the cost of the item, the number of years to be depreciated (estimated life), and the method of depreciation. The method of depreciation should be chosen by clicking on one of two buttons.(b) Display a year- by-year description of the depreciation. See Fig. 6.15 .Problem: An online grocery store sells items on a web page. A user adds items to a basket and he clicks on the submit button when he completes. The store sells food and electronic items. The electronic items require VAT payment of 15 percentage of their prices. There are packed and lose food. The lose food is measured in weights. User specifies the weight amount or the quantity in his selection of items depending on its type. The price is computed as the product of the price per item or the price per weight and the weight or quantity are given by the user. Write an application that reads a user basket list and produces the bill receipt. Check the given samples of input/output in the figures below. The bill receipt contains the list of item details in decreasing order according to the price computed for each item. Use the selection sort' to sort the items in the list and do not use java given sort method. Selection sort is an algorithm used to arrange elements in a list. It selects the…The company « Super discounted used cars inc.» pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary. Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. Write an algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salary.
- The company « Super discounted used cars inc.» pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary. Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salary. Each input must be validated.and make trace memory screenLast Name Dev Hours Review Date Rating Salary Bonus Brody 6 1/5/2018 2 $ 19,840 Alex 8 4/1/2018 5 $ 26,700 Ashley 1 7/1/2018 4 $ 33,200 1. Use the logical if function to pay a bonus. You determine the rules for the bonus. List the rules and your steps. For example, you may use the employee rating to align with a specific bonus percentage such as 2% for a 2 rating, 5% for a 5 rating, etc.Installation of a Shopee Billboard Max. score: 100 You are installing a billboard and want it to be at the maximum height. The billboard will have two steel supports, one on each side. The height of each steel bracket must be equal. You have a number of rebar rods that can be welded together. For example, if the bars are of length 1, 2, and 3, they can be welded together to form a length of 6 brackets. Return the maximum possible installation height of the billboard. Return 0 if the billboard cannot be installed.
- If num_cards is: 36, output 'Short deck'. • 48, output 'Pinochle'. 52, output 'Standard'. Otherwise, output 'Other deck size'. Click here for examples 1 num_cards 2 = int(input()) 3 if num_cards 36: 4 print ('Short deck') 5 elif num_cards 48: == 6 print ('Pinochle') 7 elif num_cards == 8 print ('Standard') 9 else: 52: 10 print ('Other deck size') 11A serendipity bookseller has a book club that awards points to its customers based on the number of books purchased each month. The points are awarded as follows: If a customer purchases 0 books, he or she earns 0 points. If a customer purchases 1 books, he or she earns 5 points. If a customer purchases 2 books, he or she earns 15 points. If a customer purchases 3 books, he or she earns 30 points. If a customer purchases 4 or more books, he or she earns 60 points. W rite a program that asks the user to enter the number of books that he or she has purchased this month and then displays the number of points awarded. using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms; namespace Chapter_4_Problem_6___Seth{public partial class bookClubPoints : Form{public bookClubPoints(){InitializeComponent();}}} C# please code with this contextQuestion Using Java programming language write a program to manage a hotel with 24 rooms;10 rooms are Executive, with price Gh ₵ 2500.00 per night,7 rooms are Chalets, with amounts Gh ₵ 1500.00 per night7 rooms are Ordinary, with amount Gh ₵ 500.00 per night The program should allow customers to book for rooms for a number of nights, and update the number of empty rooms available for each category when a customer has paid fully and has checked-in; also update the number of empty rooms available when customer checks-out.Customers should make bookings with their first names, telephone number A customer should be prompted to know if a room is booked (meaning a another customer has booked it but has not paid fully, or has not checked-in) A customer should be prompted to know if a room is occupied (meaning a booked room has been fully paid for, or the customer has checked-in) A customer should be prompted to know if a room is available (meaning a room has neither been booked nor…
- A company decided to give bonus of 15% to employee if they work more than or equal to 5 years. Ask user for their salary and year of service and print the net bonus amount together with their previous salary. The user need to enter following details: • their current salary ● their year of service The user will see the following details: • Their previous salary • Their new salary with bonus If the user works less than 5 years, they are going to see "No bonus for you" in their screen together with their regular salary.Serendipity Booksellers has a book club that awards points to its customers based on the number of books purchased each month. The points are awareded as follows: If a customer purchases 0 books, he or she earns 0 points. If a customer purchases 1 book, he or she earns 5 points. If a customer purchases 2 books, he or she earns 15 points. If a customer purchases 3 books, he or she earns 30 points. If a customer purchases 4 or more books, he or she earns 60 points. Creat an application in C# that lets the user enter the number of books that he or she has purchased this month and displays the number of points awarded.Question: Party budget planning Prompt the user to enter their current budget and the number of people who need to share a meal. You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3 Calculate and print out all the options of meals where the budget is used entirely(where possible) and each person has an equal number of items to eat. They may eat different things, but everyone gets the same number of food items, e.g. 2 tacos or 1 empanada and 1 taco or 2 empanadas. Hints: Here are some things that might help you in your solution. If total items purchased does not equally divide by the number of diners, then abandon that combination. It may help to calculate the max number of empanadas that the budget can buy and also the max number of tacos that the budget could buy. These can be thought of as upper bounds in your loops. In your solution, keep track of items per person Also, keep track of total number of viable solutions, as that might help you…