Write a C program using the If function to calculate the area of a rectangle or a triangle based on the user preference. The program should ask the user which geometric shape to be considered and then the area to be calculated. Area of triangle = 0.5*Base*Height Area of Rectangle = Length * Width Select your own valid variables
Q: Explain the following and include at least four pros and disadvantages: 1. Cybersecurity. 2. Web and...
A: Introduction the question is about Explain the following and include at least four pros and disadva...
Q: 3.1 Give a detailed account of the project report writing highlighting the importance of the various...
A: With a project management reporting system in place, you'll be able to provide reports on a regular ...
Q: What do you consider to be one of the most essential uses of AI in organisations? Talk about it. Fin...
A: Intro the question is What do you consider to be one of the most essential uses of AI in organizatio...
Q: You have decided to host a dinner party so you go to the grocery store. You need vegetables and ther...
A: The question is about word problem and usage of 'or' and 'and'.
Q: 3. Minimize the following DFA using Table Filling Algorithm. Show the steps. Draw the minimized DFA....
A: Given DFA contains 5 states that are A, B, C, D and E. Input alphabets={0,1} Initial state=A Set of...
Q: I need secant and regula falsi functions that finds the root of a function in a given interval. fig...
A: #include <iostream> #include <math.h> #include<iomanip> #include<chrono> usi...
Q: How do Group Policy preferences allow you to centrally manage settings on the workstation?
A: Please refer below for your reference: Group Policy Preferences is defined as a collection of Group ...
Q: d to be successful as a systems analyst, and what function do systems analysts play in assessing the...
A: The Systems Analyst's Role By studying the inputting and processing of data as well as the output o...
Q: help me please, basic program language preferably . create a program that will have the same output ...
A: Ans: I use C programming language to solve this problem. #include <stdio.h>int main(){ int ...
Q: Being a student taking up online courses, how much bandwidth do you recommend for the other online s...
A: We are given a situation where we will try to understand about the bandwidth requirements of a stude...
Q: How do you fix common problems with a laptop touchpad? A laptop's display is blank. What could cause...
A: Introduction How do you fix common problems with a laptop touchpad? A laptop's display is blank. Wh...
Q: Question 2: Write a java program that prompt the user for a string telephone number of the form ddd-...
A: According to the Question below the solution: Output:
Q: Given the array [5, 93, 68, 91, 37, 11, 8, 54, 84, 19, 10, 80, 68], create a binary min-heap using t...
A:
Q: 2.16 LAB: Convert to seconds Write a program that reads in hours, minutes and seconds as input, and ...
A: For completing this program, we will follow the subsequent steps: Initializing the Scanner class As...
Q: Q2. Suppose $11 stores the base address of word array A and $s1 is associated with h, convert the fo...
A: Program : h =0run a loop till less than equal to 30inside loop write the value of A[h+3] to A[h]so w...
Q: Exercise 2: Consider the following segment table given below: Segment No Limit Base
A: a) 0,400 physical address will be base_address + index= 190 + 400 = 590 which is illegal as lengt...
Q: What are the sources of external hardware interrupts for the ATMega328?
A: Given: What are the sources of external hardware interrupts for the ATMega328?
Q: I want all TCP traffic originating from my internal network to be allowed back through the firewall ...
A: ICMP
Q: In the main.asm file, you are to create a few arithmetic calculations using the following instructio...
A: Screenshot of code is given below-
Q: There is a thief enters a house for robbing purpose. The thief can carry a maximal weight of 60 kg i...
A: The question is to write calculate maximum value of items using 0/1 knapsack problem.
Q: 4. Write definitions for the following two functions: sumN (n) returns the sum of the first n natura...
A: I give the required code in Python along with output and code screenshot
Q: What are the various Sqoop features?
A: Sqoop: Sqoop is a tool used to transfer bulk data between hadoop and external datastores such as rel...
Q: What are the circumstances that prevent a DML action on a basic view from being perfo
A: What are the circumstances that prevent a DML action on a basic view from being performed?
Q: . What is the main purpose of using formatting tags in a webpage? Answer in sentence form with 5 sen...
A: solution:
Q: he term cache pollution refers to the situation where more than one process is running concurrently ...
A: Introduction: Here we are required two choose the correct option of the question given above.
Q: A foreign key must not be null under what circumstances?]
A: In other words, a foreign key is utilized to uniquely identify a row in another table.
Q: Is it feasible to launch a passive or aggressive Man-in-the-Middle attack?
A: Introduction: A man in the middle - MITM attack occurs when a perpetrator inserts himself into commu...
Q: To store encrypted passwords, what format does a password manager use? Is it a USB drive, a website,...
A: Introduction: The goal of the problem statement is to figure out what format password managers use t...
Q: Discuss the evolution of the internet and its technological underpinning.
A: Internet in simple words means network of networks i.e. connection of large no devices to each other...
Q: 3 Question 3 Write C code for a 3 processes A, B and C that communicate through shared memory segmen...
A: The following is the program written in c to process A, B & C processes using Fork Call .
Q: Create a flowchart that determines whether the positive number typed by the user is a prime number o...
A: Here in this question we have asked to create a flow chart that check for given number is prime numb...
Q: (1) Show the solution of following recurrence relation T(n) is O (nlogn) by using substitution metho...
A:
Q: Student Two with Project Two - list of different Seating type total number of each Seating type maxi...
A: List for seating type from Student Two table and project is equal to Project Two SELECT seating ty...
Q: class. Using arrays of various sizes, the program should count the number of comparisons and count t...
A: the code is an given below :
Q: 8. The dynamics of a comet is governed by the gravitational force between the comet and the Sun, f= ...
A:
Q: describe three ways that a payer can leverage information technology
A: Given:
Q: How do you keep an office with shared resources like a printer secure?
A: Introduction: Shared resources are equipment that may be accessed by several remote computers that a...
Q: : How to link a Spring Boot application to an AWS S3 web service
A: Introduction: Create a new Spring Boot application with h2, spring boot dev tools, spring data jpa, ...
Q: What precisely is the Internet Explorer Box Model Bug, and how does it affect your browsing experien...
A: Introduction: The Internet Explorer box model problem refers to how previous versions of Internet Ex...
Q: urity experts might partici
A: cyber security experts might participate to promote change
Q: 1. a) Convert (DEFACED)16 from hexadecimal expansion to a binary expansion. b) List all integers bet...
A: Below is the answer to above question. I hope this will be helpful for you...
Q: If the tail end of the letter "e" is to be viewed under HPO, where should the tail end be positioned...
A: The tail end of the letter “e” under the HPO, you should put the tail end on the center under the LP...
Q: In what format does a password manager store encrypted passwords? Is it local, online, clod, or usb?
A: Introduction: Passwords managers allow one to generate strong and unique passwords and store them in...
Q: What data is stored in the C:WindowsSystem32LogFilesSRT SRT Trail txt file?
A: Introduction: Srttrail. txt in Windows 10 can be caused by incompatible hardware, an overloaded powe...
Q: Which Group Policy preferences would be the most useful for typical networked Windows systems?
A: Introduction: Here we are required to mention some group Policy preferences that would be the most u...
Q: List and explain the key technological components of a typical Hadoop system, as well as their purpo...
A: Introduction: HDFS is a distributed file system that operates on standard hardware. For many install...
Q: node in the linked list is defined as follows: node begin data: element of any datatype link: pointe...
A: Here the statement p=f.link.link means take 3rd node with respect to f. That is p will be pointing...
Q: Write an idea or ideas about an intelligent agent, then define the properties Performance, Environme...
A: An agent is a system that perceives its environment through sensors and acts upon that environment t...
Q: Application: Read, understand and analyze the following case and provide answers to the below questi...
A: Use case diagrams are the ones which are used in describing the high level function and system scope...
Q: Which of the following is achieved by Security Orchestration, Automation, Response (SOAR)? Automatio...
A: Solution: 6 Question Ans: Automation Explanation: SOAR platforms have three main components: secu...
Write a C program using the If function to calculate the area of a rectangle or a triangle based on the user preference. The program should ask the user which geometric shape to be considered and then the area to be calculated.
Area of triangle = 0.5*Base*Height
Area of Rectangle = Length * Width
Select your own valid variables
Step by step
Solved in 3 steps with 4 images
- (Data processing) Years that are evenly divisible by 400 or are evenly divisible by 4 but not by 100 are leap years. For example, because 1600 is evenly divisible by 400, 1600 was a leap year. Similarly, because 1988 is evenly divisible by 4 but not by 100, it was also a leap year. Using this information, write a C++ program that accepts the year as user input, determines whether the year is a leap year, and displays a message telling the user whether the entered year is or is not a leap year.Write a C program which uses a switch statement to input an item type (E, P, H, N or O) followed by the amount of the purchase. Apply the discount as mentioned above and determine the final cost of the item. If an incorrect item type is entered, then output “INVALID ITEM TYPE. In this case, do not print any final cost:Write a C++ program that calculates the area of a rectangle. The main function asks the user to input the length and the width of a rectangle. Then the main function calls another function to calculate the area of the rectangle. Finally the main function displays the area of the rectangle. Recall that L* W
- Write a c program that calculates the amount of tip per person given bill amount after tax. Atax of 16% will be added to the bill.Your program should input the following information:1. The bill2. The percentage of tip that the person wants to pay: (10%, 15%, or 20%)3. The number of personsYour program should output the following information:1. The tax amounts.2. The bill after tax3. tip per person4. Total per personWrite a C# program that converts a temperature given in Fahrenheit to Celsius. Allow the user to enter values for the original Fahrenheit value. Display the original temperature and the formatted converted value. Use appropriate value returning methods for entering (input), calculating, and outputting results.Write a C program that will calculate the total payment for a brand new car being purchased on installment. The user will input the car price, amount of downpayment made (for 0% to 80% of the car price), interest rate per annum (from 5% to 20%, can be fractional up to 2 decimal places), and the number of months of amortization (12, 24, 36, 48 or 60). Show a summary of the details inputted by the user together with the amount to be financed and the monthly amortization cost. Dispaly a running tally per month of the number of months paid, the total amortization paid (in pesos), and the total running cost of the car. Please provide comments if possible so that i could follow your code easily :)
- 1) Write a c++ program that calculates the cost of 3 bags of fruit. The 4 possible fruits arepears which cost 1 dollar each, pomegranites which cost 2 dollars each, plumbs whichcost 3 dollars each, and bananas which cost 5 dollars each. Each bag can contain anynumber of different fruits with any quantity of each particular fruit. The program willprompt the user to enter a particular fruit by typing the name of the fruit: .‘pear’ forpears, ‘pomegranite” for pomegranites, ‘plumb’ for plumbs, and ‘banana” for bananas,and then prompt for the quantity of that fruit that will be placed in the bag. The programwill then continue to prompt the user in the same manner for more fruit to be placed inthe same bag until the user types the word ‘done’. This will then cause the program tohave the user enter the various quantities of fruit for the next bag. When the user hasentered the varieties of fruit in all 3 bags, the program will display the total cost of fruitper bag and the overall cost for all…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.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 C++ program that asks the user to enter the radius of the circle and then find the Circumference and area of the circle. Cir= 2* pi *R Area= pi*R*RUsing the following chart, write a C++ program that assigns 0.10, 0.15, or 0.20 to commission, depending on the value in sales and display commission rate. Sales Commission RateUp to $10,000 10%$10,000 to $15,000 15%Over $15,000 20%C++ Programming Exercise: A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: a. The total number of of units. b. The rent to occupy all the units. c. The increase in rent that results in a vacant unit. d. Amount to maintain a rented unit. The program then outputs the number of units to be rented to maximize the profit.