Write 2 functions in C program thát calculate surface drea and the volume of 3 (three) boxes where the width, height, and length of a boxes can all be different. Prompt the user to enter length of all side of the box. The functions should take the arguments of type Integer and return the values of surface area and the volume to the main program.
Q: List some softwares which are open source along with their usage [At least 4].
A: Open GL is not a programming language mainly it is an API that has the main different codes which ca...
Q: Suppose you are given a binary tree with n internal key nodes. Show that the number of leaf key node...
A: total nodes = n+x {x is no. of leaf nodes} since internal nodes= ((n+x)-1)/2 n=((n+x)-1)/2 2n=n+...
Q: Question 10 To which type of database Postgres mainly belongs: Key/Value Relational Graph Document Q...
A: Ans is Relational type of database postgres mainly belongs to relational
Q: How do concurrency mechanisms prevent deadlocks?
A: Deadlock prevention never allows deadlock that is before deadlock occurs we are trying to find some ...
Q: Using the below figure 1. The private enterprise's subtree below gives the object ID for these Objec...
A: SNMP Enterprise OIDSNMP Enterprise OID is required when you are using SNMP for enterprise applicatio...
Q: PROBLEM 5. Write a C++ program that would output the following series numbers. OUTPUT: 1, 2, ...
A: Here we have given a series , i.e. 1, 2, 4, 7, 11, 16, 32, 39, 47, 56, 66We have asked to write C++ ...
Q: What is the main purpose of Enterprise Architecture Model from the Systems Theory point of view?
A: Enterprise architecture model: Enterprise architecture model is the concept where there is the theor...
Q: What is the output of the following code? #include using namespace std; class Shift{ public: int rig...
A: Given: Goal: What is the output of the program.
Q: Write a program to provide information on the height of a ball thrown straight up into the air. The ...
A: C++ is a language used for object-oriented programming language and procedural programming language....
Q: Question 11 If you enter inequalities such as "S directly into your Excel spreadsheet, you do not ne...
A: false In less than a second, a basic personal computer could handle this problem. A typical "add-i...
Q: Java programming In the Java programming language, write a method that lists all the elements of th...
A: Given: Java programming In the Java programming language, write a method that lists all the elements...
Q: Please differentiate "soft real-time behavior" from "hard real-time behavior" in the categories "alg...
A: The answer is
Q: A. [LO 1, LO 2, LO 3 & LO 4, Make Huffman Tree and Huffman Code for compressing string S="BINANUSANT...
A: Algorithm An algorithm is a set of rules that specify the order and kind of arithmetic operations th...
Q: Determine what part of the C-program structure is the italized statement Finclude include nain() int...
A: Answer :
Q: Solving the following recurrence equation T(n) = 3T(floor(2n/3))+\Theta(1)
A: Solved the given recurrence relation
Q: NIST SP 800-14 defines three categories of information security policies, which you must list and de...
A: Computer Security Policy: Computer security policies are very essential to achieve the desired goals...
Q: the formula and simplified logical diagram of the following truth tabe
A:
Q: 13.10 Describe the DHCP lease idea. What is the procedure for obtaining it? What is the purpose of i...
A: Obtaining lease time for DSCP (Dynamic Host Configuration Protocol): Lease time assignment is depend...
Q: Describe how a VPN keeps data passed through it secure in a paragraph or two.
A: Answer: Data is encrypted when it is scrambled so that only those with the proper permissions may de...
Q: This code is in java. Transportation Program Main file called transportation. It will create th...
A: Here I have created a class Car with the data members and then created a constructor to initialize t...
Q: The main idea and purpose of Zachman framework (1-2 sentences) Answer:
A: your question is about main idea and framework of Zachman framweork
Q: Dijkstra’s single-source shortest path algorithm when run from vertex a in the following graph compu...
A: Defined the shortest path distance using Dijkstra’s single-source shortest path algorithm
Q: can i see the output?? how
A: Note : You have not mention the language in which you want see the output, So i am doing your questi...
Q: Exercise 5: Modify the program convert.py (from exercise 1) so that it computes and prints a table o...
A: print table of celsius temperature and fahrenheit equivalents every 10 degrees from a degree to 100 ...
Q: For the purpose of determining the most efficient path for a message's delivery, a router searches w...
A: Given In order to find the most effective means of sending a message, a router examines which databa...
Q: How to avoid bare assertion?
A: Introduction: How to avoid bare assertion? Informal logic, the bare statement fallacy occurs when a ...
Q: What is Enumerated Integer providing an example to illustrate your point?
A: Enumerated Integer specifies a list of labeled integer values.
Q: Your task is to check whether java is perfectly installed on your computer or not. for this, you hav...
A: The solution to the given problem is below.
Q: 1. Draw a tree with 14 vertices 2. Draw a directed acyclic graph with 6 vertices and 14 edges 3. S...
A: Given: Goal: Discuss and answer the above.
Q: 1. Compute the asymptotic complexity for the following recurrence relation: a. ao = 1 b. а, — а, -1+...
A: Given recurrence relation: a0 = 1 an = an-1 + 2 solving it using substitution method: an = an-1 + 2 ...
Q: models
A: Introduction: The classification or categorizing of knowledge things is known as data types. It offe...
Q: a)Create a string variable and assign to it your favorite color. b) Write Matlab code that prompts t...
A: % MATLAB code for guess my number % set your favourite color favorite_color = 'blue'; % loop tha...
Q: human computer interaction Efficiency and satisfaction are among major goals for system evaluation....
A: See the solution given below-
Q: ]: A # Exercise 1 1. If I'm using the and operator with two conditions that are both false, what is ...
A: Here in this question we have given some set of statement and we have asked to find the boolean valu...
Q: What is the result when (7x + 2y) is multiplied to (7x – 2y)? A. 14x² - 4y² B. 14x² + 4y² C. 49x² - ...
A: 1. If (7x + 2y) is multiplied with (7x - 2y) = (7x + 2y) (7x - 2y) 1st Method using form...
Q: Make a list of six different access technologies. Each one should be classified as either residentia...
A: Introduction: Six ways to get in: It's a modem: 56kbps is the maximum transfer rate. Fiber-coaxial h...
Q: Prove or disprove the following where A, B, and C are sets? You can provide a counterexample. A - (B...
A: To Prove : A-(B ⋂ C)=(A-B) ⋃ (A-C)
Q: Can we specify a variable filed width in a scanf() format string? A. Yes B. No
A: yes
Q: In the state space shown below ( refer to image ), write the order in which states are expanded if t...
A: ANSWER: Depth First Search: Depth-first search is a calculation for navigating or searching tree or ...
Q: Kindly give working code and output with explanation i have output in terminal like this: [[22, 3...
A: If you want to print output in the terminal and save it as a pdf file: from fpdf import FPDF # ...
Q: QUESTION 9 Unicode is (choose all that apply): Developed to overcome the limitations of ASCII. Based...
A: The Unicode is and the options are a,b,d,e , Please refer below for explanations: It was developed ...
Q: 14.5 Even if the original data is analog, much of the data storage and communication in recent years...
A: Introduction: The transfer and receipt of data in the form of a digital bitstream or a digitized ana...
Q: The US Central Intelligence Agency is designing a new geostationary spy satellite. Geostationary sat...
A:
Q: C Programming Exercise 2: Write a program to input the values of two integers x,y and print the cube...
A: Write a C program to input the values of two integers x,y and print the cube of the absolute differe...
Q: Write a Java program to reverse elements in a array list?
A: Algorithm: 1.import util package 2.create a class called main 3.Create a list and add some component...
Q: In any of the following programming language in the choices (python, c#, javascript), make a simple ...
A: Data StructuresA data structure is a particular way of organizing data in a computer so that it can ...
Q: List the Reddit features that will be developed.
A: Introduction: Reddit is a social news website and forum where information is socially vetted and pro...
Q: Think of any form (other than the movie form done in the videos of this week) and create a component...
A: The answer is given below:-
Q: Which statement is correct about network protocols? Select one: a. They define how messages are e...
A: According to the question Network protocols are required the exchange information between the source...
Q: Which of the following statements will compile without an error? O int myArray[] = {1,2,3,4,5}; int ...
A: According to the Question below the Solution:
Step by step
Solved in 3 steps with 1 images
- write a C++ calculator program that make calculation of any 2 given numbers.Your program will only exist if the user input number 0.your operations ( +, -, / *) will be excused in separated functions.at the end of the program display the average number of the total numbers that have been calculatedex of average number:if use made 2 calculations like 2 + 2 and 5 - 2then the total number / 2 because there is only 2 operations and the total is 7 coming from there 2 Store the average and total in a struct called "calculator "Write a c++ program that contains a “main” and 4 functions: In the main function declare 4 integer variables x, y, z and m and call the following functions: The first function is to initialize the 4 variables using the last 4 digits of your university ID number. For example, if your ID number is 43956789 then you x=6, y=7, z=8, and m =9. The second function should calculate and print the average of the 4 variables. The third function is to find the largest number of the 3 variables. The last function should double the values of the 4 variables. For example if x = 6 then x will become 12.Write a program using C++ that has two functions with the same name (function overloading) to calculate the area of different shapes. The first function takes the radius of a circle as input and returns the area of the circle. The second function takes the length and width of a rectangle as input and returns the area of the rectangle. Your main function should declare three variables, one for the radius of a circle and two for the length and width of a rectangle, respectively. Initialize the variables with the following values: double radius = 5.0; double length = 10.0; double width = 8.0; Your program should call both functions with the respective input values and print the results to the console in the following format: The area of the circle with radius [radius] is: [area] The area of the rectangle with length [length] and width [width] is: [area] You can assume that the value of radius is non-negative and the values of length and width are positive. // Function to calculate…
- write a C++program that finds the total amount to be spent on a vacation. In Main ask the user for the number of days for the trip and the name of the person booking the trip. It should then call FindHotelCost() and pass both of these variables to that function. The FindHotelCost() function should give a message using the persons name who is booking the trip with the hotel bill. The bill will be 550 dollars for each day of the trip. It should then call AddRentalCar() and pass the name and number of days and the hotel bill to that function AddRentalCar() asks the user for the number of miles that were driven on the rental car and calculates the price of the car. It is $50 per day and .08 cents per mile driven. Show this charge to the user and then add it to the hotel bill for the total bill for the stay. Show this total to the user as well with the person’s name booking the trip.Implement in C Programming 7.6.1: LAB: Simple car Given two integers that represent the miles to drive forward and the miles to drive in reverse as user inputs, create a SimpleCar variable that performs the following operations: Drives input number of miles forward Drives input number of miles in reverse Honks the horn Reports car status SimpleCar.h contains the struct definition and related function declarations. SimpleCar.c contains related function definitions. Ex: If the input is: 100 4 the output is: beep beep Car has driven: 96 miles main.c #include <stdio.h> #include "SimpleCar.h" int main() { /* Type your code here. */ return 0;} SimpleCar.h #ifndef SIMPLE_CAR_H#define SIMPLE_CAR_H typedef struct SimpleCar_struct { int miles;} SimpleCar; SimpleCar InitCar();SimpleCar Drive(int dist, SimpleCar car);SimpleCar Reverse(int dist, SimpleCar car);int GetOdometer(SimpleCar car);void HonkHorn(SimpleCar car);void Report(SimpleCar car); #endif SimpleCar.c #include…Write a c++ program to display a calendar for a given year. Type of Branches such as switch statements, if-else, and etc. should be used as well. No creation of functions is allowed to be used. Everything should be written in the main in one. - Ask a user to enter the year and the new year's day of the year entered: cout <<"Enter a calendar year to display?"; cout <<" what is the new year's day?"; a leap year is: IF year%4 = 0 AND year%100 != 0 OR year%400 = 0 - An example of what the program should display is in the two images attached. - Code should be written in this type of format: #include <iostream>using namespace std; int main() { /* Type your code here. */ return 0;}
- using C-programming; Write the following functions that compute the volume and surface of a sphere with radius r; a cylinder with circular base with radius r and height h; and a cone with circular base with radius r and height h. Place these functions in appropriate class. Define π (PI) as a constant variable equals to 3.14 then use it in the functions. float sphereVolume(float r)float sphereSurface(float r)float cylinderVolume(float r, float h)float cylinderSurface(float r, float h)float coneVolume(float r, float h)float coneSurface(float r, float h) Now, prompt the user for the values of r and h, call the 6 functions, and print the result.Program In C Write a program that reads the values for the width, length, and height of a rectangular box using three variables of double type in the function main(). Pass values of these variables to a function, which calculates the volume and surface area for six sides of the box. The volume and surface area of the box passed back from two other arguments of this function are printed out in the function main(). Check your program with the user input for the width, length, and height of 2, 3, 4 meters, respectively.Write program in C; compatible with quincy please Write a program that calculates the area (a) of a triangle given two values b (base) and h (height) and using the formula area = (base * height) / 2 .The program should include a function called calculate_area which has two input parameters(b and h) and one output parameter (a).The user is prompted to enter two input values that will be used as base (b) and height (h) thenthe function calculate_area uses those two values as input parameters returns the calculatedarea (a) as an output parameter. After using the function calculate_area the program shoulddisplay the calculated area (a).Hint: use a pointer for the output parameter
- Write a program in C Write a function calledsum_average()whichtakesthree input parameters (x,yand z) of type double. This function willreturn the sumof (x,yand z) andthe averageof those threenumbers. You will need to use two output parametersto accomplish this.Write a program that promptsthe user to enter three numbers and then calls the functionsum_average()to display the resulting sum and average of those numbers.Implement C Programming 7.7.1: LAB: Vending machine Given two integers as user inputs that represent the number of drinks to buy and the number of bottles to restock, create a VendingMachine variable that performs the following operations: Purchases input number of drinks Restocks input number of bottles Reports inventory VendingMachine.h contains the struct definition and related function declarations. VendingMachine.c contains related function definitions. A VendingMachine's initial inventory is 20 drinks. Ex: If the input is: 5 2 the output is: Inventory: 17 bottles #include <stdio.h> #include "VendingMachine.h" int main() { /* Type your code here. */ return 0;}This is a c programming question. Please solve with functions. Question The function that returns letter grade according to midterm and final grade: The function turn_to_letter decides on the letter grade of the student according to the table below from the visa and final grades sent into it and returns it, write it together with a main function which the turn_to_letter function is called and prints the letter equivalent on the screen. -Success score = 40% of midterm + 60% of final, -F for the success score below 50, D for between 50 and 59, C for between 60 and 69, B for between 70 and 79, A for 80 and above.