Based on the statement below, what will be the result? Int age = 10; Select one: O a age stores only an integer value Ob age will have a value 10 O. None of the above O d.The statement is wrong. Based on the staterment below, what will be the result? Int salary = 10000; %3D Select one: O a age stores only an integer value O b. The statement is wrong. O C. age will have a value 10 O d. None of the above Based on the statement below, which of the list generates an error? Select one: O a y=x+, Ob. final int x=10, System.out printin("x is+ x)x++ int y =y + X,
Q: For which one of the following statement, x[1] = 1 does NOT cause an ERROR? O x="1,2,3" O All of…
A: Defined for the given statement,x[1]=1 does not cause error
Q: Consider the following code. Then choose the equivalent pseudocode? спр еах, var2 jbe L1 mov var3,10…
A: Hello student. Warm welcome from my side. Hope you are doing great. I will try my best to answer…
Q: Fyou expect to receive an "A+" in this course, which of the following declarations would be most…
A: According to the question below the solution.
Q: Select from the options to fill in the blanks with a correct statement. Options may be used more…
A: The program creates a fork using fork(). Whenever pid > 0 the process is parent. When pid == 0…
Q: Q2: What will be the value of the variable x? x = Math.Sqrt((9 + 7) / (4 * 2) + 2) A) 1 B) 2 C) 3…
A: Q2: What will be the value of the variable x? x = Math.Sqrt((9 + 7) / (4 * 2) + 2)
Q: Which of the following is NOT a valid variable name? O sum!* O LoveMe2 O Student ID O pi314
A: Introduction: Here we are required to select which of the following is not a valid variable name.
Q: Which of the following would return a random number from 0 to 10 inclusive? O ((int) (Math.random()*…
A: answer is
Q: What will be the value of pay after the following statements executed? int hours = 41; double pay,…
A: What will be the value of pay after the following statements executed?
Q: What is the value of the following? floor(4.999) + ceil(2.0) اختر احدى الدجابات 3.999 O 7.0 O 6.0…
A: The floor function returns the largest possible integer value which is equal to the value or smaller…
Q: Identify the correct variable name from the following? O a. water depth_ O b. 5waterdepth O c.…
A: The question is related to variable declaration which should be syntactically correct as per the…
Q: Consider the following code. What should be the smallest value assigned to num such that the number…
A: Ans : the smallest value that assigned to num such that the number 3 is printed from the last…
Q: Specifically, you need to complete: Inputs Birth Date Start Date Retirement Date Initial Investment…
A: Explanation: Include the necessary header files. Create a class to store data members. In the main…
Q: PHP exercise 4 When you are writing scripts, you will often need to see exactly what is inside…
A: The given output in a PHP script can be achieved by using the var_dump() and print_r() methods and…
Q: Write a statement that assigns numCoins with numNickels + numDimes. Ex: 5 nickels and 6 dimes…
A: The question asks to assign numCoins with the value equal to the summation of the values of…
Q: Which of the following code lines returnTRUE?a)max(c(2, 3, 4, NA, 1, 5)) == NAb)max(c(2, 3, 4, NA,…
A: Given data is shown below: Which of the following code lines returnTRUE?a)max(c(2, 3, 4, NA, 1, 5))…
Q: Ask the user for the name? Ask the user to input five test scores and calculate the total of the…
A: PROGRAM: #Declaring variable total=0 #Getting input from the user name=input("Enter the Name:")…
Q: Q2 (4 points): Write a java comparison statement for each of the following: Example: question: if…
A:
Q: What is the correct code to calculate and display the remaining amount after deducting 2.5% discount…
A: Note: As per policy we are entitled to answer 1 question at a time. In the above question option, a…
Q: Hi, my CIT 105 teacher is horrible, and does not teach. She wants an IF equation in microsoft excel…
A: Hi Josh, hope the explanation below helps. Actually you would need to incorporate the cell name in…
Q: If you reject H0 when H0 is correct, what type of error is this? Question 15 options: a Type I…
A: Hyроthesis testing is аn асt in stаtistiсs whereby аn аnаlyst tests аn аssumрtiоn…
Q: Q3: A school has following rules for grading system: a. Below 25 - F b. 25 to 45 - E C. 45 to 50 - D…
A: Here I have aked the user to enter the marks and then stored them into a variable. After thay I have…
Q: Given the following declarations, evaluate each of the following expressions and give the results.…
A: I have given value for all the expression and also provided proof in c++ code.
Q: Which of the following PHP statement/statements will store 111 in variable num? i) int $num =…
A: Here is the solution which is mentioned below:
Q: Which of the following will not return a value? a. Null b. Void c. Empty d. Free In C. hangat aauta
A: NOTE :- As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: You need to choose a password for computer account. The rule is that the password must consist of…
A: Solution:
Q: In Java, which is the correct syntax for initializing a variable? - int a; - double gpa = 3.54; -…
A: Option 1 : int a; It is correct syntax for declaring a int value if we want to declare static…
Q: -Which of the following cannot be used as a variable? OQu_i z1 O1quiz Oquiz1 Oqlu2i3z4
A: Note: Answering only the first question as per the policy. Rules for variable declaration : A…
Q: Written #2 2A Which of the following two options will correctly prompt the user until they enter a…
A: Question 2A: Since the given inputs are SAT = "Sat" SUN = "Sun" The input will be only valid when…
Q: input into the variable "value"? a) value >> cin; b) cin >> value; c) value > cin; b) cin >> score;…
A: Answer: 1)Option B is correct: cin>>value; 2) Option D is correct: cout<<score; 3)…
Q: Suppose the Double variable num has the value 123.4567. What value will the following statement…
A: num will get the value as 123.4600
Q: Which of the criteria affects whether the intNum variable's value is less than 0 or higher than…
A: Required: Which of the criteria affects whether the intNum variable's value is less than 0 or…
Q: QUESTION 1 #include int main() { int i = 4; if(i == 4) i = 5;…
A: 1. Both conditions are true but in if-else case one statements should be truth so it will not print…
Q: I'm currently trying to create a game of Craps, and I am trying to display the message "Sorry. You…
A: We need to rectify the given code. As per the condition, display the message "Sorry. You busted!"…
Q: 1. When will the below condition be true? if ( (a != -1) || (b >= 1) ) OA. int a= 100, b = 100; O B.…
A: Programs: Programs are used to solve a complex problem, it is used to establish the interaction with…
Q: Which of the following variable declarations are correct? If a variable declaration is not correct,…
A: To find whether the given variable declaration is correct or not. The given variable declaration…
Q: How many lines will be displayed after executing the following print statements?…
A:
Q: In cell B32, create a formula that multiplies the value of cell B31 (Charlie’s gross monthly…
A: In cell B32, create a formula that multiplies the value of cell B31 (Charlie’s gross monthly…
Q: $51.00 |→ solution ./salesTax Enter the price: 54.30 $54.30 + $4.20 $58.50 solution So you'll print…
A: - We have to write a code for calculating the total price after adding tax.
Q: what value will z have if we execute the following statement ? Please, explain your answer. double z…
A: Answer: The value of z will be 0. Explanation: Here both 10 and 40 are integers. This is because…
Q: What should be written in Q1? (Adjust nUnits) nUnits = getReverse(nRev); nUnits = 1; nUnits = 0;…
A: B. nUnits = 1
Q: Which of the following lines of code set the value of a variable? Assume that x and y have both…
A: Setting value of a variable means assigning it with integer value. To assign some integer value, the…
Q: Given: enum cropType {WHEAT, CORN, RYE, BARLEY, OATS}; cropType crop; which of the following…
A: Given code:
Q: From the following options, what is the correct way of declaring a variable? i.…
A: A variable can not start with a number, so a is not true. other are correct
Q: A Moving to another question will save this response. Question 7 Given that F(A,B,C) = E(0,1,4,5,6),…
A: In this question, we are asked the SOP/POS expression for the complement of F(F').
Q: of L? L=Math.floor(2.7) * Math.min(-6, -3) a. -12 b.
A: What is the value of L?L=Math.floor(2.7) * Math.min(-6, -3) a. -12 b. 18 c. -9 d. -6
Q: What is the proper way to define a constant? 大 var Const = 10 %3D O var CONSTANT; var CONSTANT = 10;…
A: Question is about proper syntax of defining constant in javascript.
Q: Which one is a valid variable declaration? O int $my_num = '10000'; O int my num = 100000; int myNum…
A: Which one is a valid variable declaration? int $my_num= '10000'; int my num = 100000; int myNum =…
Q: What is the equivalent statement to the following statement? score NOT BETWEEN 400 AND 700
A: We need to solve:
can you help me in those question about java
Step by step
Solved in 2 steps with 5 images
- Need help coding in Java Morgan’s Department Store distributes bonuses to its salespeople after the holiday rush. Table 9-6 shows the bonuses, which are based on full weeks worked during the season and the number of positive online customer reviews. Write a program that allows a user to continuously enter values for the number of weeks worked and the number of positive reviews received and displays the appropriate bonus until the user enter a sentinel value: 99.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 salaryThe 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 screenQuestion 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…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.)
- Assume x is 10, y is 7, and z; x and y are int, z is bool. What is assigned to z? z = x < yIn Python Text-based adventure game: Pretend you are creating a text-based adventure game. At different points in the game, you want the user to select to fight, run, or hide from certain enemies. The selection variable must be sent as an argument into the choice() function. The user should enter 1 to fight, 2 to run, or 3 to hide in the main(). The choice() function should print one of the three options. Add an if statement in the choice() function to make the correct selection.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 .
- 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.Transaction solution for Joe's Pizza, your friendly neighborhood pizza shop.Joe wants to record each transaction through the day and get the sum at the end of day. He would like to enter a transaction value into the program. Then he will let computer know there are more transactions to come by typing in Y. At the end of day, he will type a N and computer program should give him a sum of sales and exit. Please help him with this request. can you plz make it util.scanner form and can you make it so i can copy and past it plz thank you in advanceWrite a statement that assigns finalValue with the multiplication of userNum1 and userNum2. Ex: If userNum1 is 6 and userNum2 is 2, finalValue is 12. let userNum1 = 6; // Code tested with values: 6 and 4let userNum2 = 2; // Code tested with values: 2 and -2 let finalValue = 0;