Member Methods are: • To calculate and find Dearness Allowance (DA) - (DA - 30% of basic salary), • To calculate and find House Rent Allowance (HRA) (35% of basic salary in case the basic salary is > 400, otherwise it is 30% of basic salary), • To calculate and find Gross_salary (Basic + DA + HRA),
Q: Solve the following runtime recurrence using master theorem.
A: See below steps for master theorem.
Q: 1. Generic code for N number of Employees (bor 2. Marks Distribution of the functions.
A: Solution:-- 1)As the given question is expecting the solution to be provided in the programming…
Q: body of method unique specialcgars
A: the code is below:
Q: will be set whenever there is a borrow from higher nibble to lower nibble.
A: A flag is a flipflop. Based upon the value of result from arithmetic or logical operation, the value…
Q: C# Write a recursive method called Power(base, exponent) that, when called, returns base exponent…
A: Question given: Calculate Power of Long type values using recursion function. Generate 5 random…
Q: You develop a Python application for your company. A list named employees contains 200 employee…
A: Slicing in python can be done using : (colon) operator.
Q: I have problem in java 2 code: lease.setApartmentNumber(sc.nextLine()); melt:String cannot be…
A: Scanner class is used to accept input from user nextLine() will return the input in string format…
Q: Fix the errors in the procedure below. def BMIImperial(height, weight, bmiList, Category): i=0…
A: Given program contain indentation errors. This can be eliminated by correctly indent the line of…
Q: Whoever must play, cannot play def subtract_square(queries): Two players play a game of "Subtract a…
A:
Q: GetContestantNumber - This method gets and returns a valid number of contestants and is called twice…
A: Actually, given information: GetContestantNumber - This method gets and returns a valid number of…
Q: What’s the difference between comparison done by equals method and == operator?
A: Task :- Differentiate between equal and comparison operator.
Q: Write the CSEStudent class with the required methods to give the following outputs as shown.Hints:…
A: GPA has to printed upto 2 decimal and this can be done by specifying precision which printing
Q: Requirements: Use Java Programming only. Show screenshots of your work. this is the third time I…
A: This is multiple type question and according to the guidelines only first question has been…
Q: / create the following functions: GetInteger - returns an integer DONE GetDouble - returns a double…
A: #include <iostream> using namespace std; // function to check integer bool CheckInteger(int n)…
Q: To designate a method as a unit test in JUnit you must precede the method with the @Unit annotation.…
A: False
Q: e are the rules of N x N Tic-Tac-Toe game: • Players take turns placing characters into empty…
A: Here,Step to build Tic-Tac-Toe game using java: Import packages Initialize User Interface Adding…
Q: Provide the missing statement. class CAR { public: int year; string make; CAR () ( year-2011; make -…
A: - We have to fill in the missing object in the code.
Q: Here's the result of the swimming team tryout : Carl (passed), Quentin (failed), John Y. (passed),…
A: The program is written in Python. Check the program screenshot for the correct indentation. Please…
Q: Write an activity that takes the list of hours and then returns the total weekly wage. Listing hours…
A: Write an activity that takes the list of hours and then returns the total weekly wage. Listing hours…
Q: The method overloading process can change the method: Select one: O a. header only O b. header and…
A: We are asked that during method overloading process, what value can be change by method overloading?
Q: This is only for python, code the progam. This program should record products and see how much…
A: 1) Below is program to record products and see how much money is spent on each. Add missing method…
Q: fix the code below to do a reverse number, you can add max 2 lines of code and also change max 2…
A: The modified Java code is given below: public class Main {public static void main(String[] args)…
Q: using Java: Assign courseStudent's name with Smith, age with 20, and ID with 9999. Use the printAll…
A: class PersonData {private int ageYears;private String lastName; public void setName(String userName)…
Q: Debug the section of code that follows. Check the code carefully for all 10 errors and list the…
A: ERRORS : 1) Line 3: There is no datatype named integer, rather it is called int 2) Line 4: There is…
Q: Given numRows and numColumns, print a list of all seats in a theater. Rows are numbered, columns…
A: #include <stdio.h> int main(void){ int numRows; int numcoloumns; int currentRow;…
Q: ude batsman char name[20]; foo(struct batsman *t) strcpy(t->name, "rahul"); return t->name; ain()…
A: Here batsman is a structure with p as it's structure variable. Also foo is a function which returns…
Q: def COURSE H ine COURSE_H s Course { rate: tring code; nt section; nt maxStudents; nt numStudents;…
A: I have completed the code below:
Q: Complete the Car class by creating an attribute purchase_price (type int) and the method…
A: The complete code is given below with output .
Q: Q1 #include int arrC[10] = {0}; int bSearch(int arr[], int l, int h, int key);…
A: The Flowchart for the algorithm: Handwritten on image.
Q: Call method "calculateUpperSectionCategory"
A: When method call is executed, control jumps to method definition and executes statements within it.…
Q: Assign courseStudent's name with Smith, age with 20, and ID with 9999. Use the printAll() member…
A: To assign courseStudent's name with Smith, age with 20, and ID with 9999, you need to initialize…
Q: . The following statement reates an anonymous type:
A: Anonymous type Anonymous types allow encapsulating a set of values in an object without defining a…
Q: 6. A certain game keeps track of the maximum and minimum scores obtained so far. If num represents…
A: The given scenario is to update the value of "num" by the minimum and maximum scores. The variable…
Q: There should be an explanation of the GetConsoleTitle function.
A: We need to define the term:- GetConsoleTitle function:- This is used to retrieve the title of the…
Q: Implement the below application which identifies and displays the first na First Name
A: code is below:
Q: ASSIGNMENTS: Question 1: Given: enum cropType {WHEAT, CORN, RYE, BARLEY, OATS}; сгopТуре crop:…
A: a is true static_cast<int>(WHEAT) is 0
Q: Mario owns a pizzeria. Mario makes all of his pizzas from 10 different ingredients, using 3…
A: This program is written in Python. Please correct the indentation as per the screenshot, if it's…
Q: A car database of the sale website contains 10 cars with the car brands (1= Ferrari, 2 = Lamborghini…
A: Hello Student. Greetings from my side. Hope you are doing great. I will try my best to answer your…
Q: To write an application that uses recursion to solve a problem. Details: Create a class called Power…
A: Given: To write an application that uses recursion to solve a problem. Details: Create a class…
Q: Create valid names for functions that do the following: a) Find the average of a set of numbers. b)…
A: Rules are for naming a function where any function name is a combination of uppercase, lowercase and…
Q: class Student { public: 10101010 101012 0101100 Student() {}; Student(int ID, string name, string…
A: Stack is a kind of container adapter with LIFO (Last In First Out) operation, where a new element is…
Q: Ensure that the input values representing fractions are stored with denominators that are positive…
A: Given: Ensure that the input values representing fractions are stored with denominators that are…
Q: >>> seqs = readFastaFile('mystery1.fa') >>> len(seqs) 27 >>> long_seqs = [] >>> for seq in seqs: ...…
A: Special Methods: read fasta file __len__(seqs) create empty list or array running for loop…
Q: Q2) write a java code to calculate the average for 3 student (each student has 5 subjects) and…
A: The marks for the students are in the range 0 to 50, with 50 being the highest marks. The Java…
Q: need main method that connects to a second method with user input and prints like the example below.…
A: A Java program takes enter values from the command line and prints a string of characters as output.…
Q: Given the following declaration: int j; int sum = 0; double expenses[15] [8]; Which of the following…
A: Answer: NONE OF THE OPTION WILL correctly finds the sum of the sixth column of expenses. the correct…
Q: Main Program: The main program will read in and print three integer values, representing SAT scores.…
A: Dear Student, I am assuming programming language as Java as language is not provided.
Q: Write a program which prompts the user for the values of the individual fields within a struct…
A: Program #include <iostream>using namespace std;struct employee { char name[50]; int age;//…
Member Methods are:
• To calculate and find Dearness Allowance (DA) - (DA - 30% of basic salary),
• To calculate and find House Rent Allowance (HRA) (35% of basic salary in case the basic salary is > 400, otherwise it is 30% of basic salary),
• To calculate and find Gross_salary (Basic + DA + HRA),
Step by step
Solved in 2 steps with 1 images
- The issue is that the tasks asks for the member_id no_of_books_bought amount_spent all to be returned. it also askes them to go by different names as in isMemberID, getBooksPurchase, getTotalAmountSpent, purchaseBook. It also has to has to reset the corresponding member variables to 0Some rows of the STUGRADE table of a school are shown below: STU_CODE CLS_CODE GRADE YEAR 291 111 3.1 2010 938 101B 2.3 2011 931 M101 3.3 2040 291 M101 3.4 2018 190 111 2.0 2021 931 321 3.9 2003 Suppose that STU_CODE is the student code (foreign key) and CLS_CODE is the class code (foreign key). Which of the following computes the average for each year of the student with code 931? a. SELECT AVG(GRADE) FROM STUGRADE WHERE STU_CODE = 931 GROUP BY YEAR b. SELECT AVG(GRADE) FROM STUGRADE WHERE STU_CODE = 931. c. SELECT AVG(GRADE) FROM STUGRADE GROUP BY STU_CODE = 931 d. SELECT AVG(GRADE) FROM STUGRADE WHERE STU_CODE = 931 GROUP BY AVG(GRADE)library contains books, periodicals, and DVDs (no items of other types are available and a given item belongs to only a single category). All these items can be used by the user of the library. Some of the items (books, periodicals, and DVDs) are only reference items, and others can be borrowed by the users. There are two types of users; registered users and temporary users. While registered users can borrow up to 100 items, the temporary users can borrow only 2 items at a time. In the initial work of the EER modeling, your teammates have identified Item, User, and ItemCopy as entities. Which of the following statements are correct about a possible EER model for this set of requirements? The specialization/generalization hierarchy for items that involve borrowing items and reference items has an optional participation constraint. The specialization/generalization hierarchy for items that involve the books, periodicals, and DVDs has a mandatory participation constraint. The user…
- 5. calculate_new_balance Given a starting balance (a number), and a list of transaction tuples, calculate the final balance for an account. Transaction tuples are of the shape ("description", amount, "withdrawal") , or ("description", amount, "deposit"). The last entry in the tuple will be either "withdrawal" or "deposit". Every withdrawal decreases the balance of the account by the specified amount, and every deposit increases the balance. The return value is the new account balance, as a number. (which could be negative) Sample calls should look like: >>> calculate_new_balance(100, [("payday", 20, "deposit"), ("new shoes", 50, "withdrawal"), ("illicit winnings", 200, "deposit")]) 270 >>> calculate_new_balance (100, []) 100a <-- classified as 33 | 7 218 | a = True b = False 93 Verilen Confusion iviatrix için TP degeri nedir? (What is the TP value for the given confusion matrix?) A) 33 B) 7 C) 93 D) 218 E) 126calculate_new_balance Given a starting balance (a number), and a list of transaction tuples, calculate the final balance for an account. Transaction tuples are of the shape ("description", amount, "withdrawal") , or ("description", amount, "deposit"). The last entry in the tuple will be either "withdrawal" or "deposit". Every withdrawal decreases the balance of the account by the specified amount, and every deposit increases the balance. The return value is the new account balance, as a number. (which could be negative) Sample calls should look like: >>> calculate_new_balance(100, [("payday", 20, "deposit"), ("new shoes", 50, "withdrawal"), ("illicit winnings", 200, "deposit")])270>>> calculate_new_balance(100, [])100
- Question 8 Find the score (mean accuracy) of your knn classifier using x_test and y_test. This function should return a float between 0 and 1 [ ]: def answer_eight(): # YOUR CODE HERE raise NotImplementedError() [ ]:In java create an application to manage your data base information the database is already created in mysql tables, the tables are fill, So the user can use your database application user friendly Retrieve all data: Given a table name, retrieve all data from the table and present it to the user. Average: Given a table name and a column name, return the average of the column. Here the assumption is that the column type will be numeric (e.g., cost column). Insert: Given a table name, your program should show the column names of that table and ask the users to input new data to the table. In case of errors, your program should directly show the MySQL errors to the users. Assumption 1: Users will enter data according to the database constraints. Assumption 2: Users will input one record at a time. Delete: Given a table name, your program should show the column names of that table and ask the users to input data that they want to delete. Assumption 1: Users will enter data according to the…All do. Else report.
- 8. Pizza Mario owns a pizzeria. Mario makes all of his pizzas from 10 different ingredients, using 3 ingredients on each pizza. Mario's cousin Luigi owns a pizzeria as well. Luigi makes all his pizzas from 9 ingredients, using 4 ingredients on each pizza. Mario and Luigi have made a bet: Mario believes that customers can order a larger selection of pizzas in his pizzeria than they can order in Luigi's pizzeria. Use functions for this assignment. Implement a factorial() function yourself (do not use the one from the math module) • When choosing k items from n possible items, the number of possibilities can be obtained using the following formula: () n! k!(n-k)! Make a function called choose with two parameters n and k, that implements the above formula. • Write a program that calculates the number of pizzas Mario and Luigi can make. The outcome should look like this: Mario can make 120 pizzas. Luigi can make 126 pizzas. Luigi has won the bet.Complete the assignment. Compute allProblem: Read your name, distance to college, cgpa and allowance. Find new allowance based on the following conditions: If your cgpa is more than 3.5 and distance is more than or equal to 50 You get double the allowance. If your cgpa is more than 3.0 and distance is more than or equal to 50 You get 1.5 times of allowance Otherwise No change is allowance. Print your name, cgpa, distance to college and new allowance.