Which condition should be used in the while, so the loop terminates? * int a = 10, b = 10; while (_???_) { a *= 2; b /= 2; a <= 45 && b <= 10 O a >= 20 O b == 0 All the above None of the above
Q: Identify the sequence of nodes that are visited to search for 150. 250 200 300 190 210 290 310 О…
A: In Binary Search Tree, The value of all the nodes in the left sub-tree is less than the value of…
Q: Assessments 9Log in QuillBot Al sessments n Check: 3.3 Classes Identify the class in this code.…
A: Here the constructor Player() is assigned to j_hernandez. Here defensive_position is the class which…
Q: 9. While conducting research, you find the following pieces of evidence: 1. "As a result of my…
A: According to the information given. We have to choose the correct option to satisfy the statement .
Q: IE 218 - LAB 1 1) Write C# code to calculate the average of three grades of a course. Program will…
A: I give the code in C# as per your requirement along with output and code screenshot
Q: Bike sharing programs like Citi Bike are an example of O a subscription-style business model made…
A: Citi Bike: “Citi Bike” is an example of bike-sharing programs and these become subscription model…
Q: What's the answer to this question?
A: intellectual-property is the result of someone's creative work and design.it can be protected…
Q: 4th question i
A: in the following section we have provided the ER diagram for the given information
Q: What's the answer to this question?
A: It is true that the move toward access instead of ownership is a sign of collaborative consumption
Q: What's the answer to this question?
A: A. Life experience affects an individual's personal ethics -trueB. Ethical decisions are usually…
Q: 4. Consider the following C program: int fun (int *i) { *i *= 5; return 10; void main () { int x =…
A: If evaluated left to right x = x + fun(&x); = 5 + fun(&x) = 5 + fun(5) = 5 + 10 // here…
Q: 4. Write a recursive function that find the minimum element in an array of integers. int findMin…
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: You accidentally write a buggy program containing the following code. 1 #include 2 #include 3…
A: Denial of service: A Denial-of-Service (DoS) attack is an attack meant to shut down a machine or…
Q: 3. Following are two major research questions. The first one was written two weeks before the second…
A: According to the information given:- We have to choose the correct option to satisfy the statement,
Q: What's the answer to this question?
A: Web-based databases can be used to help the investigator to solve criminal cases. they store all the…
Q: 1. Design a state diagram to recognize one form of the comments of the C- based programming…
A: In C- based programming languages, multiple line comments begin with /* and end with */. Example:…
Q: algorithm
A: Given :- An algorithm segment is mention in above given question and an integer n such that n…
Q: In Julia, Float64(.1) Float32(.1) evaluates to true. ==
A: Solution 1) 5:- The floating-point numbers in the Julia programming language are of Float64 type by…
Q: Given the following function table, create the function in Python. Also create a program that will…
A: Python is a very flexible language and implementing your requirement is very easy. below is the…
Q: {"customer_no": 54, "school": {"value": "you are me"}} I want the answr in csv format customer_no
A: In python to write output to csv file we have to import csv package. Python dictionary is an…
Q: 2) Your program will request a lower bound (Ib), an upper bound value (ub) and an increment value…
A: As there is no programming language mentioned so program is attempted in c++ Start input lower…
Q: Question 3: Consider the following function void testDefaultParam(int a, int b= 7, char z ="*);…
A: Lets see the solution in the next steps
Q: Intellectual property can be legally protected even though it is not a physical object O True O…
A: Intellectual Property: Intellectual property is defined as the outcome of a person's creativity and…
Q: Question 1. See the next 8-4-2-1 code for the decimal numbers 0 to 9. Design the next different…
A: The, answer has given below:
Q: What is the difference between data and information? Data is numbers. Information is words. They are…
A: In this question we have to provide a correct answer for data and information difference and select…
Q: 4) Write a program that displays the following type of triangles. Size of triangle will be entered…
A: Find the code below.
Q: Select the header of a method that accepts two integer parameters and returns their fraction as a…
A: answer : - header for this method is : - public static double fraction(int a, int b) ;
Q: 1- Convert the following decimal numbers to binary numbers (537, 349, 978, 511 and 296)10 2- Convert…
A: To convert decimal number 537 to binary, follow these steps: Divide 537 by 2 keeping notice of the…
Q: What is the answer?
A: The question is asking about the number of times the printf statement will be executed in a given…
Q: What is the entropy of your name (first name + surname)?
A: The Shannon entropy of a set of values is defined as below, where “E” is the entropy and “Pi” is…
Q: Which of the following is an example of SaaS Cloud Computing service model? Select one: Windows…
A: Cloud computing service model: Cloud computing is basically a process in which the computer…
Q: What's the answer to this question?
A: Sophisticated modeling software is helping international researchers in increasing the pace of…
Q: estion1. Analyse the above case and investigate the reasons of failure of Information systems.…
A: After Analysing the above case of Prada Fashion House following reasons can be put on focus for the…
Q: CyberTalents Security Scholarship 2021 (Brought to you by Trend Micro): Applications are now open!…
A: Hashing is a one way encryption process
Q: What will be the values of the variables num1 and num2 after the given set of assignments? num1 = 20…
A: In given code - num1 = 20 num2 = 1- num1 = num1 + num2 / 2 num2 = num1 THE CORRECT ANSWER IS - num1…
Q: What's the answer to this question?
A: Actually, artificial intelligence is nothing but a human thinking.. So , the answer has given below
![Which condition should be used
in the while, so the loop
terminates? *
int a
= 10, b = 10;
while (_???_) {
a *= 2;
b /= 2;
}
a <= 45 && b <= 10
a >= 20
b == 0
All the above
None of the above](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F44fc33fa-f0a7-4f0d-8fd2-501707f936b1%2F3fbbd416-3454-45fc-bf70-7e1765255039%2Fddm3y9g_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
- C LANGUAGEA private railway company has just purchased a computer for its new automated reservationssystem. You have been asked to write a program to assign seats on each train of the railway havingonly (capacity: 100 seats). Your program should check whether it is a valid seat number or not.Also print its berth type i.e lower berth, middle berth, upper berth, side lower berth, side upperberth. Furthermore, then print a ticket indicating the person's seat number and whether it’s in the firstclass or economy section of the train. Use a single-subscripted array to represent the seating chartof the train. Initialize all the elements of the array to 0 to indicate that all seats are empty. As eachseat is assigned, set the corresponding element of the array to 1 to indicate that the seat is no longeravailable.In C#, Make any necessary modifications to the RushJob class so that it can be sorted by job number. Modify the JobDemo3 application so the displayed orders have been sorted. Save the application as JobDemo4. An example of the program is shown below: Enter job number 22 Enter customer name Joe Enter description Powerwashing Enter estimated hours 4 Enter job number 6 Enter customer name Joey Enter description Painting Enter estimated hours 8 Enter job number 12 Enter customer name Joseph Enter description Carpet cleaning Enter estimated hours 5 Enter job number 9 Enter customer name Josefine Enter description Moving Enter estimated hours 12 Enter job number 21 Enter customer name Josefina Enter description Dog walking Enter estimated hours 2 Summary: RushJob 6 Joey Painting 8 hours @$45.00 per hour. Rush job adds 150 premium. Total price is $510.00 RushJob 9 Josefine Moving 12 hours @$45.00 per hour. Rush job adds 150 premium. Total price is $690.00 RushJob 12 Joseph Carpet cleaning 5…in C#, Make any necessary modifications to the RushJob class so that it can be sorted by job number. Modify the JobDemo3 application so the displayed orders have been sorted. Save the application as JobDemo4. An example of the program is shown below: Enter job number 22 Enter customer name Joe Enter description Powerwashing Enter estimated hours 4 Enter job number 6 Enter customer name Joey Enter description Painting Enter estimated hours 8 Enter job number 12 Enter customer name Joseph Enter description Carpet cleaning Enter estimated hours 5 Enter job number 9 Enter customer name Josefine Enter description Moving Enter estimated hours 12 Enter job number 21 Enter customer name Josefina Enter description Dog walking Enter estimated hours 2 Summary: RushJob 6 Joey Painting 8 hours @$45.00 per hour. Rush job adds 150 premium. Total price is $510.00 RushJob 9 Josefine Moving 12 hours @$45.00 per hour. Rush job adds 150 premium. Total price is $690.00 RushJob 12 Joseph Carpet cleaning 5…
- Static Variable: a variable whose lifetime is the lifetime of the program (static int x;) Dynamic Variable: It is a pointer to a variable (int *x;) Is this comparison true?basic java code, self-learner here so pls do use more // comments ya if neededInstructions: In the code editor, you are provided with the definition of a struct Person. This struct needs an integer value for its age and a character value for its gender. Furthermore, you are provided with a displayPerson() function which accepts a struct Person as its parameter. In the main(), there are two Persons already created: one Male Person and one Female Person. Your task is to first ask the user for the age of the Male Person and the age of the Female Person. Then, define and declare a function called createKidPerson() which has the following definition: Return type - Person Name - createKidPerson Parameters Person father - the father of the kid to be created Person mother - the mother of the kid to be created Description - creates a new Person and returns this. The age of this Person will be set to 1 while its gender will be set based on the rules mentioned above. Finally, create a new Person and call this createKidPerson() in the main and then pass this newly…
- The push member function simulates the push of a numeric button with value 0 to 9. The open member function simulates the push of the # key that causes the lock to open, provided that the right combination was entered. (For now, the combination is hardwired as 1729. You will see in Section 9.6 how to change it.) As the data representation, use an integer containing the digits that have been entered up to this point. You will need to figure out how to update that number. For example, if the user had previously pushed 1 and 7, causing input to be 17, and now pushes 9, how can you set input to 179? In the open member function, return true if the lock would have been opened, false otherwise. Clicking that button resets the entered keys, whether or not the correct combination has been entered. Complete the following file: c++ please #include <iostream>using namespace std; /**A simulated lock with digit buttons.*/class Lock{public:/**Simulates a digit button push.@param button a digit…Plz write the algorithm for thisTrue or False An output parameter works like a by value parameter.
- C++ printSmaller is a function that accepts two int parameters and returns no value. It will print the value of the smaller one parameters. The function protoype is as follows: void printSmaller(int num1, int num2); write the statments to read two integers and call this function to display the smaller one.C++ Write a function named “createPayStub” that accepts the number of hours(integer), and the hourly payrate (double). It will return the pointer to a newlycreated PayStub object. If the given hours or payrate is negative, it will returnnullptr. In addition, it also returns the total payout amount to the caller (in theoutput parameter).Please show how this function is called and returning the proper information.Analyze the following code: int x = 0;int y = ((x < 100) && (x > 0)) ? 1: -1; The code has syntax error. y becomes 1 after the code is executed. y becomes -1 after the code is executed. The code has run time error.
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)