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: BERduceReport() No zip = oldZip? output name, zip count count + 1 input name, zip from infile return…
A: We can understand from the given flowchart that, there is a program that is dealing with a file…
Q: Suppose most of the Internet used some form of geographical addressing, but that a large…
A: Answer a The organization's internal network address is not routable on the public Internet. As a…
Q: Write a program that translates a letter grade into a number grade using a dictionary. Letter grades…
A: Introduction: In this question, we are asked to write a Python program to use dictionary to…
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: The value of 4! isa) 9 b) 24 c) 41 d) 120
A: We need to find the The value of 4!
Q: At a time, a customer cannot be eligible for both games. In this case, Fly Max will receive priority…
A: We need to solve the given game using k-map.
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: Find out the generic format for TCP header options from Request for Comments 793. (a) Outline a…
A:
Q: Order the following sentences so that they form a direct proof of the statement: If x and y are…
A: The question is to arrange the statements in order to prove the given statements.
Q: All of the answers you need are in the picture below! Unfortunately all of the words have been mixed…
A: 1. NOFT can be unscrambled as the word FONT. The font is specific typography applied to a particular…
Q: Write an application that prompts a user for the number of years the user has until retirement and…
A: Introduction: In this question, we are asked to create a JAVA program to print the total amount of…
Q: The first line of HTTP request message is called a. Request line b. Header line c. Status line d.…
A: Introduction The first line of HTTP request message is calleda. Request lineb. Header line c. Status…
Q: Construct an appropriate SQL query (Create Table) for the following i. Member ii. Make
A: “Since you have asked multiple questions, we will solve the first question for you. If you want any…
Q: The first two bytes of a 2M x 16 main memory have the following hex values: 1. Byte 0 is FE 2. Byte…
A: The answer is
Q: Which of the following reasons for using an inheritance hierarchy are valid? (Select all that apply)…
A: We need to select the correct statements that are valid reasons for using an inheritance hierarchy.…
Q: What is the output produced by the following code? int a=2, b=4; for (int i=0; i<9; i++) a += 2;…
A: Here is answer. I have given answer in handwritten. See below steps
Q: In your own words, describe what happens at every step of our network model, when a node on one…
A: Physical Layer:- It is the lowest layer which defines the cables, network cards , wireless…
Q: The _____ pattern enumerates the sequence of steps needed for any object to accomplish the task.
A: Sequential patternsThe sequential pattern of organization is similar to the chronological pattern,…
Q: The telephone system uses geographical Why do you think this wasn't addressing. adopted as a matter…
A: We need to find reasons for, internet not using geographical addressing.
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: 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: 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: Explain why TIME. WAIT is a somewhat more serious problem if the server initiates the close than if…
A: In comparison to the client, TIME_WAIT has problems getting the server into a close condition. The…
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: The telephone system uses geographical Why do you think this wasn't addressing. adopted as a matter…
A: I have mentioned my answer in step 2, please find in below
Q: What is the justification for the exponential increase in timeout value proposed by Kam and…
A: Karn's algorithm addresses the problem of getting accurate estimates of the round-trip time for…
Q: Consult Request for Comments 793 to find out how TCP is supposed to respond if a FIN or an RST…
A: TCP:- It stands for Transmission control Protocol and is a standard of communications which enables…
Q: What plan did the reboot project have for ISEE-3? Did the plan work ?
A: ISEE-3 gathered information about particles flowing from the sun. These particles also known as…
Q: Which of the following Student class methods must be implemented in the Student class to make this…
A: The Correct solution is given below with code and explanation
Q: In a system with 42-bit virtual addresses and 64GB of physical memory what is the size of the…
A:
Q: What might a server actually do with the packet-loss-rate data and jitter data in receiver reports?
A:
Q: Map the following UML class diagram to code. You only need to construct both classes and realize the…
A:
Q: The program should then print positive integer as follows: The number of integers entered (not…
A: Since no language is asked in the problem. I am using c language. Here is c program implementation…
Q: Given JSON object "name": "asad", "designation": "developer", "degree": "BSCS", "experience":{…
A: ANSWER:-
Q: In the statement below, "Fighter" is a/an... public class Foo extends Bar implements Fighter { ... }…
A: In the statement below "Fighter" is an Choose the correct statements Lets see the answer in step 2.
Q: One of the purposes of TIME_WAIT is to handle the case of a data packet from a first incarnation of…
A: The question has been answered in step2
Q: Name at least three tasks performed by the WinMain (startup) procedure.
A: WinMain Procedure WinMain is the name of the primary entry point for every Windows application.…
Q: Design a class named Cake. Data fields include two string fields for cake flavor and icing flavor…
A: Diagram Cake - cake flavor: string - icing flavor: string - diameter: num - price: num + set cake…
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: Must be in JAVA. Please Attached text code and output Create a new project and name it "Lab10" Write…
A: import java.util.*; public class Main { public static ArrayList<Integer>…
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: What command would be used to draw the graphics object shape into thegraphics window win?a) win .…
A: Lets see the solution.
Q: where n = 1G (i.e., 4 x n uniquely addressable locations-n: row, 4:2 column/width), what is the…
A: The answer is
Q: // It will take two values, attack and defense, when creating all living things. // These values can…
A: Program: Human.java public interface Human {public int totalDamage();public int totalHealth();}…
Q: city of ABC, the price of a house is dependent to other variables such as lotsize, number of…
A:
Q: 2 in python please
A: Here I have created a class Node with 2 data members to store the value and address it to the next…
Q: The function f(x) = x-e has a zero on the interval [0, 1] O False O True
A: please check the solution below
Q: Use C++
A: The answer to the following question:-
Q: One of the purposes of TIME_WAIT is to handle the case of a data packet from a first incarnation of…
A: TIME_WAIT: After getting the end ACK from the distant TCP, the nearby TCP holds back to ensure that…
Q: i. Member ii. Make ) Use the same tables to present any ONE (1) example of how database integrity…
A: Integrity Constraints in DBMS - It is a set of rules that take care of all operations (insertion,…
Step by step
Solved in 4 steps with 2 images
- (Program) Write a program that tests the effectiveness of the rand() library function. Start by initializing 10 counters, such as zerocount, onecount, twocount, and so forth, to 0. Then generate a large number of pseudorandom integers between 0 and 9. Each time 0 occurs, increment zerocount; when 1 occurs, increment onecount; and so on. Finally, display the number of 0s, 1s, 2s, and so on that occurred and the percentage of time they occurred.8. Write a C program that takes the user to provide a single character from the alphabet. Print Vowel or Consonant, depending on the user input. If the user input is not a letter (between a and z or A and Z), print an error message. Test DataInput an alphabet: pExpected Output :Input letter is ConsonantWrite a C program that reads an integer from the user (keyboard), namely n. Your program should print all positive numbers that are smaller than n and satisfy the following condition: If we denote the number with a and sum of its digits b then a+b is a perfect square. You should print the numbers in ascending order and print their digits separated by “-“ symbol from the least significant to the most significant on the same line as the number. At the end of each line you should also print a+b. Example: If the user enters n : 150, then the output should be as follows: 2 2 4 8 8 16 17 7-1 25 27 7-2 36 38 8-3 49 72 2-7 81 86 6-8 100 135 5-3-1 144
- Write a C program that reads an integer from the user (keyboard), namely n. Your program should print all positive numbers that are smaller than n and satisfy the following condition: If we denote the number with a and sum of its digits b then a+b is a perfect square. You should print the numbers in ascending order and print their digits separated by “-“ symbol from the least significant to the most significant on the same line as the number. At the end of each line you should also print a+b. Example: If the user enters n : 150, then the output should be as follows: 2 2 4 8 8 16 17 7-1 25 27 7-2 36 38 8-3 49 72 2-7 81 86 6-8 100 135 5-3-1 144 but i cannot use while loop and #include <math.h>Write a C++ program: to iteratively compute Fibonacci numbers (named after an Italian mathematician). Some Fibonacci numbers are 1,1,2,3,5,8,... where the next number is found by summing the preceding two numbers. Your program is not assured of recieving good data, thus if -2 is recieved as the number of numbers, then an error should be reported. Try n = 5, 7, 10, -3Write a C++ program that accepts a positive integer (orstring) as input and then displays a new number obtained by replacingevery pair of repeated adjacent digits by a single digit. For example,the integer 558834226 has three repeated adjacent digits: 55, 88 and 22.This means that your program should display the integer 583426 insteadof (558834226). You may assume that no digit is repeated more than twice.
- Write a program in C that displays the classic BINGO game, displays a BINGO card (5x5 square), and tests the bingo card for a winner via 2 users Steps: 1- Ask user 1 to enter 24 numbers between 10-40 no duplicates / check for range and repetition 2- Ask user 2 to enter 24 numbers between 10-40 no duplicates / check for range and repetition 3- Design 2 BINGO cards as you see below 4- Distribute the numbers onto the 2 cards with each user input with 0 in the middle 5- Display the 2 cards in 1 screen as you see below 6- Generate a random number between 10-40 no duplicates / check for range and repetition 7- Compare the random number with the numbers on the 2 cards 8- If the random number matches any number on each card, change the number on the card to 0 9- Check for winning cards 5 numbers in a row or column = 0 5 numbers in a diagonal = 0 all 4 corners of the card = 0 if any of the players won, display who is the winner and exit the program if the 2 players won, display both are…Write a program in C that take 5 digit number as an input from the user and perform the following tasks:1. Split a number into digits.2. Find the sum of the all the digits in the number.3. Find the product of the all the digits in the number.4. Find maximum number with in the number along with position.5. Printing the digits in the reverse order.4. Write a C program that reads a floating-point number and prints "zero" if the number is zero. Otherwise, print "positive" or "negative". Add "small" if the absolute value of the number is less than 1, or "large" if it exceeds 1,000,000. Test DataInput value: 25 Expected Output :Positive number
- Task:Write a C++ program using variables and loops in order to implement the Hi-Low strategy of card counting and keep a running count. The Hi-Low strategy of card counting assigns one of three values to a card, based on its face value. The table below breaks down these values. FACE VALUE ASSIGNED VALUE2, 3, 4, 5, 6 +17, 8, 9 010, J, Q, K, A -1 In a typical game of Blackjack, a card counter will start with a fresh deck and a count of 0. Each time a card is played, its assigned value is added (or subtracted) from what is known as the running count. The running count rolls over from hand to hand. For instance, if the first 7 cards of a game were: Queen, Jack, 4, 6, 7, Jack, 9, then the running count would be (0) - 1 - 1 + 1 + 1 + 0 – 1 + 0 = -1. Requirements: • Take user input and allow for cards to be dealt until the user declares they are done,program should accept 2-10, J, Q, K, A and two-ten, Jack, Queen, King, Ace.• Return the correct running count after the user decides they are…Write a program in C to display the n terms of odd natural number and their sum . Test DataInput number of terms : 10Expected Output :The odd numbers are :1 3 5 7 9 11 13 15 17 19The Sum of odd Natural Number upto 10 terms : 100Consider the following C program line of code and identify the function of the code.scanf(“%6s”, ch) Choose an answer A Read the string with a maximum of six characters. B Read all characters in the string. C Read integer value D Read the string with a minimum of six characters.