If the entry in A1 is greater than 12,000; B1 gives the result in dividing the number entered in A1 by 4000; and returns 500 otherwise
Q: What concurrency mechanisms are available in eCos?
A:
Q: a system with memory mapping done on a page basis and sume that the necessary page table is always…
A: Introduction: Consider a system with memory mapping done on a page basis and using a single level…
Q: A number is Zygodrome if it can be partitioned into clusters of repeating digits with a length…
A: function isZygodrome(num) { let chars = num.toString().split(''); let uniques = new Set(chars); let…
Q: In order to determine the length in concatenating the strings entered in cells A1 and B1, the…
A: According to the information given:- We have to choose the correct option to satisfy the statement.
Q: If a memory reference takes 200 ns, how long does a paged memory reference take? Now we add an MMU…
A: a. A paged memory reference requires two memory accesses in memory referencing: one to obtain the…
Q: Create a function that takes a list of functions and sorts them in ascending order based on how many…
A: Coded using JavaScript language.
Q: We need to use synchronous TDM and combine 20 digital sources, each of 100 Kbps. Each output slot…
A: Given information: The total number of digital sources is twenty. Each frame output slot has one bit…
Q: Compare and contrast a circuit-switched network and a packet- switched network.
A:
Q: What does the term “boundary testing” mean? If your program was doing calculations and took in…
A: What is Boundary Testing? Boundary testing also known as boundary value analysis. In boundary value…
Q: Create a function that returns an Earned Run Average (ERA). An ERA is calculated by multiplying 9 by…
A: In this problem, we need to design the code in the java Script programming language. Input - Two…
Q: Mr. Cook is the manager of Code cinemas and after a long break the theatres are open to the public…
A: Program plan: Implement a loop that runs the program for a specified number of test cases. Get the…
Q: • Make sure that function names must be similar as asked. 1. You have to write functions for the…
A: Required: write a program to generate n random numbers in between a range of 100 to 200 in an array.…
Q: Explain the following control structures available in ABAP.
A: Control structures arrange the statements within a processing block. These specify statement blocks…
Q: Suppose a computer sends a packet at the network layer to another computer somewhere in the…
A: The answer is given below.
Q: How are OSI and ISO related to each other?
A:
Q: Java - It is preferable to use an edge list for small graph problems because of the simplified…
A: According to the information given:- We have to define the mentioned statement is true or not.
Q: What is data intelligence
A: Answer the above question are as follows
Q: Explain the Pros and Cons of layer design?
A: Layered model is the most generic model and is considered a standard model for computer networks It…
Q: NEED HELP PYTHON CODING: Create a program to calculate the following. Store the solution in a…
A: Introduction Python has a straightforward syntax that resembles that of English. Python's syntax…
Q: Write a program that prints out true or false depending on comparisons that you make. Make sure that…
A: All types of operators are used in the code + - * / % > >= == <= < != The complete…
Q: What is printed by the function foo5()? class Point: def __init__(self, x, y): self.x = x self.y = y…
A: In this problem we need to show the what will be the output of the above code. Need to call the…
Q: LENGTH, WRITESTR, READSTR and CONCAT
A: String function: Most programming languages has build-in string function to process strings. Some of…
Q: The cook must participate in the presence before each class, i.e. call out the names of the students…
A: Step-1: StartStep-2: Declare variable testCase and take input from userStep-3: Start a loop till…
Q: List and briefly define three file allocation methods.
A:
Q: Suppose the implementation of an instruction set architecture uses three classes of instructions,…
A: Introduction Assume that the implementation of an instruction set architecture uses the A, B, and C…
Q: Consider a system with memory mapping done on a page basis and using a single level page table.…
A:
Q: ND B, then C. Given: The if-then statement's reverse isalso correct. If A is True, B is True, wh
A: SUMMARYWhen you have a tentative and you are inferring the contrapositive, you always switch" and"…
Q: Create a function that takes an array. This array can have all kinds of items, even other arrays.…
A: function flattenArray(array) { let newArray = []; if (!array) return [];…
Q: ur are required to Explain a spike in n -m?...
A: Introduction: A single point that deviates significantly from the preceding and following values is…
Q: e a Program to demonstrate the calculation of threshold value for a given parking arrangement
A: It is defined as a general-purpose programming language and is widely used nowadays for competitive…
Q: Given the following grammar in BNF: →=→X | Y | Z →% |→? | → ( ) | a) Change the grammer rules so…
A: a) first answer in below image : -
Q: A DMA module is transferring characters to main memory from an external device transmitting at 9600…
A: Given: DMA transfer speed = 9600 bpsCPU fetching speed= 1 million instruction per second To find:…
Q: What are the five drivers of social media engagement described in the
A: Engagement is characterised as the archive of previous and ongoing consumer interactions with a…
Q: Problem 2. An electricity board charges the following rates mentioned in the table for the use of…
A: As per the given question, we need to calculate the monthly bill of a user based on the selected…
Q: Create a function using currying that will add a car maker name as a property to the carLot object…
A: In this problem, we need to design the code in the java Script programming language. Input -…
Q: What are the two types of links between a Bluetooth primary and a Bluetooth secondary?
A: The following are the two varieties of links that may be established between Bluetooth primary and…
Q: Assume a Dictionary structure has been defined that associates letter grades to their respective…
A: 1) Since programming language is not defined I have written program statement in python 2) Below…
Q: I'm trying to make a certain IP a static IP. How do I go about doing this? For example, the IP im…
A: The question has been answered in step2
Q: Explain why transient synchronous communication has inherent scalability problems, and how these…
A: Transient Communication: Transient communication A communication server will delete a message as…
Q: List and briefly define three file allocation methods.
A: The answer to the question is given below:
Q: In Sammon mapping, if the mapping is linear, namely, g(x|W) = WTx, how can W that minimizes the…
A: The question has been answered in step2
Q: Determine the necessary and sufficient conditions for the existence of an Eulerian walk from S to T…
A: A connected graph is Eulerian if and only if every node has even degree. We know that if (u,v) is a…
Q: The message received at the receiver end is 1011011. Assuming even parity from left to right, state…
A: The answer for the above mentioned question is given in the below steps for your reference.
Q: What is a pull request? Discuss.
A: Here is the explanation regarding the pull request.
Q: Java
A: Answer in Step 2
Q: In a two-class, two-action problem, if the loss function is A11 A12 = 10, and A21 = 1, write the…
A:
Q: In Sammon mapping, if the mapping is linear, namely, g(x|W) = WTx, how can W that minimizes the…
A:
Q: 1. Take an integer as input: this is the total count of items to store in the list. 2. Loop for…
A: It can be easily implemented using Python. Kindly check the well defined code with comments and…
Q: List three different techniques in serial transmission and explain the differences.
A: Introduction: Data bits are sent serially across a single channel, one after the other.What is a…
Q: We need to transmit 100 digitized voice channels using a pass-band channel of 20 KHz. What should be…
A: Answer is in next step.
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.
If the entry in A1 is greater than 12,000; B1 gives the result in dividing the number entered in A1 by 4000; and returns 500 otherwise.
A: =IF(A1>12000,A1/4000:500)
Step by step
Solved in 2 steps with 2 images
- 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 screenA 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.Given: int num1, num2, newNum;double x, y;Which of the following assignments are valid? If an assignment is not valid,state the reason.a. num1 = 35;b. newNum = num1 – num2;c. num1 = 5; num2 = 2 + num1; num1 = num2 / 3;d. num1 * num2 = newNum;e. x = 12 * num1 - 15.3;f. num1 * 2 = newNum + num2;g. x / y = x * y;h. num2 = num1 % 2.0;i. newNum = static_cast<int> (x) % 5;j. x = x + y - 5;k. newNum = num1 + static_cast<int> (4.6 / 2);
- The company discounted used cars 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 salaryA 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 contextProgramming Language: Java Direction: Write a program to determine the number of PASSED and FAILED out of 15 inputted names with the corresponding grade. Restrict the inputted grade for each name in the range of 50 to 100, in which 75 is the passing grade. If the inputted grade is not on the range, the program will remind the user of a message for the accepted range for the grade and allows the user to re-enter a grade. NOTE: MUST ADD COMMENTS
- Question 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…Question 3 Give the result of the following code: quotaThisMonth = 7 quotaLastMonth= quotaThisMonth + 1 if (quota This Month > quota LastMonth) or \ (quotaLastMonth >= 8): print("Yes") quotaLastMonth = quotaLastMonth +1 else: print("No") quotaThis Month = quotaThis Month Blank 1 Blank 1 Add your answerInterest on a credit card’s unpaid balance is calculated using the average daily balance. Suppose that netBalanceis the balance shown in the bill, paymentis the payment made, d1is the number of days in the billing cycle, and d2is the number of days payment is made before the billing cycle. Then the average daily balance is: averageDailyBalance = (netBalance * d1 –payment * d2) / d1 if the interest rate per month is say, 0.0152, then the interest on the unpaid balanceis: interest = averageDailyBalance * 0.0152 Design a program that accepts as input netBalance, payment, d1, d2, and interest rate per month. The program outputs the interest charged. Format your output to two decimal places. C++
- 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 * d1 – payment * d2) / d1 If the interest rate per month is, say, 0.0152, then the interest on the unpaid balance is: interest = averageDailyBalance * 0.0152 Instructions Write a program that accepts as input netBalance, d1, payment, d2, and interest rate per month (interestRate). The program outputs the interest. Format your output to two decimal places. Input: 100 30 50 7 9.7 Output: 856.83 Test case 2: Input: 255.76 31 55 3 12.3 output: 3080.38Interest 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 * d1 – payment * d2) / d1 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 that accepts as input netBalance, d1, payment, d2, and interest rate per month (interestRate). The program outputs the interest. Format your output to two decimal places.Coral Help Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. Thus, the 405 services the 5, and the 290 services the 90. Given a highway number, indicate whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also indicate if the (primary) highway runs north/south or east/west. Ex: If the input is: 90 the output is: The 90 is primary, going east/west. Ex: If the input is: 290 the output is: The 290 is auxiliary, serving the 90, going east/west. Ex: If the input is: 0 or any number not between 1 and 999, the output is: 0 is not a valid interstate highway number.