23. Write a C program that reads three floating values and check if it is possible to make a triangle with them. Also calculate the perimeter of the triangle if the said values are valid. Go to the editor Test Data: Input the first number: 25 Input the second number: 15 Input the third number: 35 Expected Output: Perimeter = 75.0
Q: You have been asked to test a method called 'catWhiteSpace' in a 'Paragraph' object that, within the…
A: Cat whitespace is the method of the testing of the given paragraph or the sentences by using them we…
Q: Assume that a string variable named myStuff has been declared and contains some string value. Write…
A: The below-given program will obey the following rubrics: Declaring a string variable, myStuff with…
Q: Which of the following is a best security practice to protect your credentials when browsing the…
A: The correct 2 answers is:- C) Turn on "InPrivate Browsing" before starting your session And D)…
Q: A "jiffy" is the scientific name for 1/100th of a second. Define a function named Jiffies ToSeconds…
A: C++ Code to convert the number of jiffies to seconds: #include <iomanip>#include…
Q: Write a C++ program that reads strings until "QUIT" input, which then displays all strings in the…
A: I have provided C++ CODE along with CODE SCREENSHOT and also provided OUTPUT SCREENSHOT------…
Q: Comment on the current status of IPv4 and identify the major emerging problems for IPv4 and discuss…
A: Ipv4 address was published in 1981.the computers at that time were very huge and expensive .the IPV4…
Q: Butwhat happens if we write an expression that mixes an int with a float?
A: Data Type: A data type, often known as type, is a characteristic of data that informs the compiler…
Q: 7 Question Which of the following is a best security practice to protect your credentials when…
A: Below is the answer to above question...
Q: Regular expressions are built recursively out of smaller regular expressions, using some rules…
A: As per our guidelines, we are supposed to answer only 1st three parts. Kindly repost the remaining…
Q: C++ Problem 1 please
A: Given We know about the C++ programing.
Q: 5. Schedule the project using 2 processors and the critical-path priority list. Show the Gantt…
A: According to the Bartleby guideline, we are supposed to answer only one question at a time. Kindly…
Q: elop a sequence diagram showing the interactions involved lent registers for a course in a…
A: Introduction: Below Develop a sequence diagram showing the interactions involved when a student…
Q: The first line of HTTP request message is called, a. Request line b. Header line c. Status line d.…
A: Below is the answer to above question. I hope this will be helpful for you...
Q: Develop a sequence diagram showing the interactions involved when a student registers for a course…
A: Sequence Diagram: The sequence-diagram represents the relationships between the different objects…
Q: A micro instruction format has micro operation field which is divided into 2 subfields F1 and F2,…
A: Logic , if there are n micro- operation then we can represent it in form of 2n where n will…
Q: Order 7 of the following sentences so that they form a direct proof of the statement: If n is even,…
A: According to the information given:- We have to follow the sentences so that they form a direct…
Q: The value of 4! isa) 9 b) 24 c) 41 d) 120
A: We need to find the The value of 4!
Q: The Risk Management for Information Systems is the process of identifying and evaluating threats.
A: Introduction: Incorporating risk management procedures in an organization involves detecting,…
Q: This program will ask the user to input a number (suppose num). And that outputs the first num'th…
A: Since no is given in the problem. I am using c++ language. See below steps for code:
Q: Consult Request for Comments 793 to find out how TCP is supposed to respond if a FIN or an RST…
A:
Q: Comment on the current status of IPv4 and identify the major emerging problems for IPv4 and discuss…
A:
Q: Use C++
A: The answer to the following question:-
Q: design a java program that will use a Linked list with an iterator to add new coaches and maintain…
A: Start. Construct the linked list. Use the iterator to add new elements. Print the result. Exit.
Q: Design an ER schema for prescription monitoring based on the given data: Patients are defined by an…
A: What is ER Diagram?ER Diagram stands for Entity Relationship Diagram, also known as ERD is a diagram…
Q: d to construct both classes and realize the
A: Given :- In the above given question, the statement is mention in the above given question Need…
Q: Obtain the string: ?????????? using left – most derivation and construct the derivation tree for…
A: The question has been answered in step2
Q: Regular expression is an algebraic notation for describing sets of strings. A regular expression…
A: Regular expressions are the patterns which are used to match the character combination in the…
Q: Consult Request for Comments 793 to find out how TCP is supposed to respond if a FIN or an RST…
A: Consult Request for Comments 793 to find out how TCP is supposed to respond if a FIN or an RST…
Q: What graphics class would be best for drawing a square?a) Square b) Polygon c) Line d) Rectangle
A: Lets see the solution.
Q: Develop a sequence diagram showing the interactions involved when a student registers for a course…
A:
Q: A user interface organized around visual elements and user actions iscalled a(n)a) GUI b)…
A: An application is a software that performs a specific function directly for an end user or, in some…
Q: Assume that a SONET receiver resynchronizes its clock whenever a 1 bit appears; otherwise, the…
A:
Q: Complete the following direct proof of the statement: If x and y are positive real numbers and x <…
A: x^2<xy y/x xy<y^2 xy
Q: Develop any java program successfully (any old, submitted program is ok to use) and place it in your…
A: Navigate into source folder where your Java program file is located , Open bash terminal there (You…
Q: b. bits for host c. subnet mask d 1st 2nd yth subnet addresses (where y is the requested num
A: The answer is
Q: Why is encapsulation called Data Hiding?
A: Introduction Data encapsulation, otherwise called data hiding, is the system by which the execution…
Q: Suppose you have a RISC machine with a 2.7 GHz clock (i.e., the clock ticks 2.7 billion times per…
A: The answer is:-
Q: Consider two raster system with the resolution 640 * 480 and 1280 * 1024. How many pixels could be…
A: A) Given that 120 frames are refreshed per second in 640*480 system, access rate is 640*480*120 =…
Q: - The step function u (t) is integral of with respect to time t. * Sinusoidal function O Ramp…
A: ANSWER:
Q: Write a program that takes in a positive integer as input, and outputs a string of 1's and O's…
A: Function IntegerToBinary(integer x) returns nothing integer array(32) binaryNumber integer i integer…
Q: Using SQL data definition language, write the SQL statements to create each of the following…
A: Let's create SQL statement for each of the given relations: 1. CREATE TABLE Student ( StudentID int,…
Q: Suppose most of the Internet used some form of geographical but that a large addressing,…
A:
Q: *Write a program that asks the user to guess your favorite number. The program should end when the…
A: Guessing a number will be done by using loop. IN the python programming language there are three…
Q: How might you use a model of a system that already exists? Explain why it is not always necessary…
A: How might you use a model of a system that already exists? Explain why it is not always necessary…
Q: Consult Request for Comments 793 to find out how TCP is supposed to respond if a FIN or an RST…
A:
Q: Please develop PL/SQL program that asks for a radius of a circle. After user enters a radius number,…
A: Syntax to implement IF statement: IF condition THEN statements; ELSEIF condition THEN…
Q: cloud computing expected return on investment for td bank(Find or estimate some actual financial…
A: Cloud computing is easing the process of utilizing of data and the delivery of computing services…
Q: Number of voters 8 15 13 10 1st choice A C D B 2nd choice B B A D 3rd choice C D C A 4th choice D A…
A: Answer:-
Q: a) Design an array to perform a palindrome operation. Take necessary input from the user like array…
A: The above question is solved in step 2 and step 3 :-
Q: Describe a protocol combining the sliding window algorithm with selective ACKS. Your protocol should…
A:
Step by step
Solved in 4 steps with 2 images
- write a c++ program that asks user to enter a number and then print the number that is maximum time repeated in that number and count how mnay times its repeated. remember that if two numbers are repeated same times then you need to output both of them and total times they are repeated. Do this only using loops and functions. arrays pointers are not allowed. for example:input:122344, digit = 2,frequency=2 digit= 4, frequency = 2write a c++ program that declares an array that can hold 20 chars. then the program outputs two upper case character which are A & Z(initials). next using a loop the program populates the array with the pair of the initials until the array is full. then the program outputs the array on one line. then the program swaps the contents of the first and last locations in the array and output the modified array on the next line.Write a C++ program that simulates online shopping. Declare a variable cart to be an empty Array. The program should have a loop that continues as long as the user wants to shop. Each time through the loop read in the name, price, and quantity of the item the user wants to add to the cart. After adding an item to the cart, the cart contents should be printed. After the loop print a "Please pay ...” message with the total price of the items in the cart.
- IN C++ PLEASE Write a program that reads integers, finds the largest of them, and counts its occurrences. Assume that the input ends with number 0. Suppose that you entered 3 5 2 5 5 5 0; the program finds that the largest is 5 and the occurrence count for 5 is 4. Hint: Maintain two variables, max and count . max stores the current max number and count stores its occurrences. Initially, assign the first number to max and 1 to count . Compare each subsequent number with max . If the number is greater than max , assign it to to 1 . If the number is equal to max , increment count by 1 . Sample Run 1 Enter an integer (0: for end of input): 3 Enter an integer (0: for end of input): 5 Enter an integer (0: for end of input): 2 Enter an integer (0: for end of input): 5 Enter an integer (0: for end of input): 5 Enter an integer (0: for end of input): 5 Enter an integer (0: for end of input): 0 The largest number is 5 The occurrence count of the largest number is 4using c++, create a program with this expected output: Enter the number of rows and columns: 3 4 Enter 4 number(s) for row number 0: 1 2 3 4 Enter 4 number(s) for row number 1: 5 6 7 8 Enter 4 number(s) for row number 2: 9 10 11 12 Board: 1 2 3 4 5 6 7 8 9 10 11 12 note: use these methods: void fill(int **p, int rowSize, int columnSize); void print(int **p, int rowSize, int columnSize);Submit in python or c++. Error code will downvoted. Every cell (x,y) contains an integer ax,y signifying the course of how the ball will move. ax,y=1 — the ball will move to one side (the following cell is (x,y+1)); ax,y=2 — the ball will move to the base (the following cell is (x+1,y)); ax,y=3 — the ball will move to one side (the following cell is (x,y−1)). Each time a ball leaves a cell (x,y), the integer ax,y will change to 2. Mr. Chanek will drop k balls successively, each beginning from the primary line, and on the c1,c2,… ,ck-th (1≤ci≤m) sections. Decide in which segment each ball will wind up in (position of the ball in the wake of leaving the network). Input :The principal line contains three integers n, m, and k (1≤n,m≤1000, 1≤k≤105) — the size of the framework and the number of balls dropped by Mr. Chanek. The I-th of the following n lines contains m integers ai,1,ai,2,… ,ai,m (1≤ai,j≤3). It will fulfill ai,1≠3 and ai,m≠1. The following line contains k integers c1,c2,……
- Following is the formula for calculating the mean or average of a set of values: X_mean = (1.0/n)(X_i) Where n is the number of data.This can be done in C by keeping a running sum of numbers as the user enters them. In other words, you have a loop that runs, and every time the user inputs a new number x, the number is added to the running sum xsum (x and xsum are already declared as double)Write appropriate ‘for loop’ that gathers a number “x” from the user. Add the value of x, once collected, to the running sum xsum. This ‘for loop’ will repeat as many as the number of data provided.ISP- Java Write a program that will output a right triangle based on user specified input height (int) and specified input symbol (char). The first line will have one user-specified character, such as % or *. Each subsequent line will have one additional user-specified character until the number in the triangle's base reaches specified input height. Output a space after each user-specified character, including after the line's last user-specified character. Hint: Use a nested for loop. Ex: If the input is: Enter a character: * Enter triangle height: 8 the output is: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *Can you write a new code in C language with the values I sent you, just like this output? There are two files named group1.txt and group2.txt that contain course information and grades of each student for each class. I will calculate each course average for each group and show in simple bar graph. Use "*" and "#"characters for group1 and group2, respectively. I will see the number -999 at the end of each line in the input files. This value is used for line termination and you can use it to verify that you have arrived at the end of the line. The averages of each group should also be calculated and printed at the end of the file. Group 1: CSC 80 100 70 80 72 90 89 100 83 70 90 73 85 90 -999 ENG 80 90 80 94 90 74 78 63 83 80 90 -999 HIS 90 70 80 70 90 50 89 83 90 68 90 60 80 -999 MTH 74 80 75 89 90 73 90 82 74 90 84 100 90 79 -999 PHY 100 83 93 80 63 78 88 89 75 -999 Group 2: CSC 90 75 90 75 80 89 100 60 80 70 80 -999 ENG 80 80 70 68 70 78 80 90 90 76 -999 HIS 100 80 80 70 90 76 88 90…
- Write a C#program that displays the pattern show in the* sample executable.** Type of loop-> your favorite (you must use a pair of* nested loops)* Hints:* 1) Use variables that increments* 2) When running the sample, use values between 61 and* 76 for the number of columns, values between 16 and* 21 the number of rows* 3) Start with a rectangular array of "X" then figure out* how to create one of the upward lines and then the* backwards lines and then both lines*Python Programming- Computer-Assisted Instruction Part 1: Computer-Assisted Instruction (CAI) refers to the use of computers in education. Write a script to help an elementary school student learn multiplication. Create a function that randomly generates and returns a tuple of two positive one-digit integers. Use that function's result in your script to prompt the user with a question, such as: How much is 6 times 7? For a correct answer, display the message "Very good!" and ask another multiplication question. For an incorrect answer, display the message "No. Please try again." and let the student try the same question repeatedly until the student finally gets it right. Part 2: Varying the computer's responses can help hold the student's attention. Modify the program so that various comments are displayed for each answer. Possible responses to a correct answer should include 'Very good!' , 'Nice work!' and 'Keep up the good work!' Possible responses to an incorrect answer shojld…•Write a C++ program (practice4.2.1.CheckNumbers.cpp) that lets the user enter a series of integers, one at a time using a loop. •The program will check and display if the input number is even or odd, and then calculate the sum of all input numbers. If the input number is zero (0), print out the sum of all inputted numbers, and then end the entire program. Analyze the problem: •Part-1: should use a for loop, while loop, or do-while loop to solve the problem? ANS: Since starting point of the program will always be to ask user to enter an integer number, and then check that number. So use a do-while loop in the program is more appropriate for user inputs. •Part-2 (bonus-part): use a while loop inside the do-while loop to do input validation. •Part-3: If user entered zero (0), exit the do-while loop, but not exit the entire program, still need to print out the sum. So use break;statement