Write a program that prompts the user to input coefficients A, B, and C of a quadratic equation in general form (Ax^2 + Bx + C = 0) to determine the nature of the roots of the quadratic equation.
Q: What do you think is the most crucial thing to remember while learning about computers for the first...
A: Introduction: A computer is a device that stores and processes data. To execute activities such as s...
Q: Using loops in C++ write a program to compute the difference in the ASCII values of the largest and ...
A: Use one loop to load the ASCII values of string to the array Then iterate over the array and find la...
Q: What is the definition of DHCP (Dynamic Host Configuration Protocol)?
A: Introduction: DHCP stands for Dynamic Host Configuration Protocol.
Q: Convert the following control words into RTL microoperations, to be implemented in a processor that ...
A: Solution Answer R12<-R10-R9 --- R8<-R8-1 --- R12<-SHR(R12) --- External Input<-TSFR(...
Q: Identify if possible the type of addressing modes for the following instructions. 1. MOV EAX, [EBP...
A: Given instruction- 1. MOV EAX, [EBP +ESI]
Q: Identify and briefly define five types of media that may be utilised to assist an organisation in ac...
A: Intro Forms of media that helps an organization to achieve its goal. Media is nothing but the promot...
Q: Logic Gates: Discussion on each operations of the gates And thank you
A: Logic Gates: A logic gate is a computer model or a physical electrical device that implements a Boo...
Q: What would happen if database referential integrity was not enforced? What are the most probable err...
A: In straightforward terms, 'referential integrity ensures that the objective 'alluded' to will be fou...
Q: What exactly are bignums? Which languages are they compatible with?
A: It is a tool that is used to represent the code for the value of the integer which contains a very l...
Q: one of the laws of motion. The program aims to calculate the distance travelled S by an object given...
A: Here, as we are focusing on calculating the distance, this will be the output and the right hand sid...
Q: (32° +2x²)(x³ +3x) Indicate the least integer n for which E O(x").
A: First lets simplify the given expression =(3x6+2x2)(x3+3x)x4+14x=3x9+9x7+2x5+6x3x4+14x
Q: Consider a two-link network where Host A is connected to the router by a 1 Mbps link with 10 ms prop...
A: The answer as given below:
Q: Using a flowchart, describe white box testing.
A: White box testing means a scenario where the tester deeply understands the inner workings of the sys...
Q: Assume the creator of an online banking system has developed a hidden function that sends him accoun...
A: Due to the fact that the application was disguised and triggered only when the account balance excee...
Q: 1. In the 32-bit IEEE 754 format, what is the encoding for negative zero in single precision?
A: Here, we are going to write the encoding for negative zero in 32 bit IEEE single precision format. 3...
Q: List the OSI model and the TCP/IP Model. List how they compare (ie. what levels match?) and give an ...
A: OSI Model The OSI Model is a logical and conceptual model that defines network communication used by...
Q: B: write a program to enter two numbers and print the largest number. C: Write a program to find the...
A: Note :- You have not mention the language of the program, So I am doing question in Visual Basic. As...
Q: What function does antivirus play in computer security? Make a list of the benefits as well.
A: Introduction: Antivirus software is designed to detect, prevent, and respond to harmful software on ...
Q: What is the reason why various operating systems install disk folders at different track positions o...
A: Introduction Disk directories are the utilized to link logical file data to a physical sector locati...
Q: cloud -What does IaaS (Infrastructure as a Service) mean?
A: Introduction: IaaS emerged as part of a bigger transition away from traditional hardware-oriented da...
Q: What is the difference between deploying and publishing an application while working in C#?
A: Introduction: The distinction between deploying and publishing a C# programme is enquired about here...
Q: Using loops in C++ write a program to compute the difference in the ASCII values of the largest and ...
A: Required:- Using loops in C++ write a program to compute the difference in the ASCII values of the l...
Q: In this c# program please fix the height and inches, for example "Enter your Height in feet followed...
A: The modified code is given in the below step
Q: Would it make sense to call a queue? a) a FILO structure? b) a LILO structure?
A: Introduction Would it make sense to call a queue? a) a FILO structure? b) a LILO structure?...
Q: Show the starting and ending address of each segment located by the following segment register value...
A: Given value 1. 7103H
Q: Show the starting and ending address of each segment located by the following segment register value...
A: Segment registers are basically memory pointers located inside the CPU.Segments are specific areas d...
Q: The output of the program in the slide is: The name of the Student is: None and The name of the Facu...
A: When we are trying to print the name inside print method, the name instance variable from Person cla...
Q: Explain all of the options available to you during Linux setup and installation, including their ben...
A: Introduction: Generally speaking, a partition is a piece of a hard disc that has been specifically p...
Q: What is the most widely used programming language for server-side web scripting?
A: PHP is the most popular language for server-side web scripting
Q: Describe as many differences as you can between functions in imperative programming languages and fu...
A: In the operating system, you have Referential Transparency, which means you can change the job by it...
Q: databases - What are some of the benefits of Mercy's enterprise data model?
A: Introduction: We must explain the benefits of the enterprise data model. Mercy: Mercy is a healthcar...
Q: What are the etiquettes inside arnis room?
A: The etiquette is considered one of the highest levels of practice in the arts.
Q: B: write a program to add and subtract two integer numbers after putting a suitable design. Use mess...
A: Let us see the answer:- '
Q: B: write a program to show this message box elete are you sure you want to delete this file Yes No
A: Solution: The message box is special dialog box used to display the information to the user. In the ...
Q: What Role Does the User Play in the Requirements Development Process?
A: INTRODUCTION: The goal of the Needs Development process is to gather, assess, and document customer...
Q: Write a function called money() that asks the user how many quarters and nickels and dimes they have...
A: Since no programming language is mentioned, I am using python. Algorithm: Start Implement a method ...
Q: The lack of error warnings during translation of a computer programme is just a required but not suf...
A: Intro Consider the statement, During the translation of a computer program, the absence of error me...
Q: The Georgian Capital Letter En 1 is encoded into a UTF-8 Hexadecimal encoding as E1 82 A4, What is t...
A: We need to answer:
Q: What are the various file stream classes? Explain the syntax for opening a file in both read and wri...
A: Different file stream classes There are 2 file stream classes and are as follows: ifstream ofstrea...
Q: List the primary differences between scripting languages and traditional "systems" languages.
A: Given: List the primary differences between scripting languages and traditional "systems" languages.
Q: Computer science Explain what an information system is made up of.
A: Introduction: People construct and utilize information systems, which are a combination of hardware,...
Q: The VP has made a snap decision to completely migrate all of her data from on premise to the cloud o...
A: A common misconception about cloud migration is that it will be a one time trip. But the reality is ...
Q: What exactly does educational data mining entail? What is the distinction between educational data m...
A: Intro
Q: What are the most critical steps to improving data quality in a database?
A: Introduction: There are four methods for improving the quality of your data:
Q: C: Write a program to find the summation of the numbers from 5 to 15.
A: Solution - In the given question, we have to write a program to find the summation from 5 to 15.
Q: What is the return type of a method that returns null?
A: The return type of a method must be made void if it is not returning any value.
Q: In contrast to database approaches, why is data integrity in file management systems jeopardised?
A: INTRODUCTION: Here we need to answer why is there a compromise on data integrity in file management ...
Q: MIT App Inventor is compatible with the following sensors: Is MIT App Inventor capable of interactin...
A: MIT Application Inventor It essentially enables developers to create apps for Android phones with th...
Q: The binary numbers shown below are 4-bit 2's complement binary numbers. Which of the following opera...
A: Intro Overflow in Addition: By adding two complement numbers with the same sign (both positive or b...
Step by step
Solved in 3 steps with 1 images
- PROBLEM: Write a program that prompts the user to input coefficients A, B, and C of a quadratic equation in general form (Ax^2 + Bx + C = 0) to determine the nature of the roots of the quadratic equation. SPECIFICATIONS: - You may only use the codes that we studied under our lectures - All lines of codes should have a comment. - Save your cpp file as Surname - PE (Example: Pangaliman - PE.cpp) TEST CASES: If a user inputs the three coefficients of a quadratic equation: Enter A: 1 Enter B: 7 Enter C: 12 Result: The roots are real and distinct. If a user inputs the three coefficients of a quadratic equation: Enter A: 2 Enter B: 2 Enter C: 3 Result: The roots are complex and distinct.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.the electrical resistance r (in ohms) of a metal wire is given by the formula r = (ml)/ a where m is the resistivity of the metal; l is the lenght of the wire in feer, and a is the cross-sectional area of the wire ( in the circular mils) write a program that allow user to input for l and a for a copper whose resistivity m of copper is 10.4. Calculte the resistance of a wire
- python Write a program that does temperature converter", "- The user will enter if he wants the result in Celsius or in Fahrenheit. Use the input function to read this option. \n", "- Ask the user the value of the temperature he wants to convert. Use the input function to read this value and convert accordingly.\n", "- If the user wants the temperature in Fahrenheit compute: $ Fahrenheit = Celsius5/9+32$.\n", "- If the user wants the Celsius compute as follows: $ C = (F-32)5/9 $.\n", "\n", "Print the converted temperature and show the unit, like 23.5 C or 67.1 F."An oil slick occurs when an underwater refinery pipe ruptures, pumping oil into the water. The spilled oil sits on top of the water and causes a natural disaster. For simplicity, suppose that the oil sits on top of the water in the form of a circle. Write a program that prompts the user to enter the rate at which the ruptured pipe pumps oil (in gallons) per minute, the thickness of the oil on top of the water, and the number of days for which the area is covered by the spilled oil. The program outputs the spilled area (in kilometer) and the volume of oil (in gallons) on top of the water after each day.A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be, say, four inches thick. The length of the patio is to be, say, twice the width. Write a program that prompts the user to specify: The amount of premixed concrete (in cubic yards) ordered The thickness of the patio (in inches) The ratio of length and width Ex. If the ratio is 3 to 2, have the program accept a 3 then a 2. Then compute the ratio using these numbers The program then outputs: The length and width of the patio (in feet). (1 cubic yard = 27 cubic feet.) To calculate the width, you will need to: Find the total cubic feet of the concrete Divide the total cubic feet of concrete by the result of the length to width ratio multiplied by the thickness of the patio, over 12 (inches in a foot) Square root the answer To find the square root of a decimal number, include the header file cmath using the statement #include <cmath>, in your program. The function sqrt, included in…
- In C++, Write a program that asks the user to enter two numbers, obtains the two numbers from the user and prints the sum, product, difference, and quotient of the two numbers.Write a program that performs as a very simple calculator. Your calculator should be able to handle the four basic math operations — add, subtract, multiply, and divide — on two input values. Your program should prompt the user to enter three arguments: two double values and a character to represent an operation. If the entry arguments are 35.6, 24.1, and '+', the program output should be The sum of 35.6 and 24.1 is 59.7.Write a computer program for calculating carburization heat treatments. The program should ask the user to provide an input for the carbon concentration at the surface (cs), and the concentration of carbon in the bulk (c0).
- Use C++ programming language A customer in a store is purchasing five items. The prices of the five items are:Price of item 1 = $15.95Price of item 2 = $24.95Price of item 3 = $6.95Price of item 4 = $12.95Price of item 5 = $3.95Write a program that holds the prices of the five items in five variables. Display each item’sprice, the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is7%.The following equations estimate the calories burned when exercising (source): Women: Calories = ( (Age x 0.074) — (Weight x 0.05741) + (Heart Rate x 0.4472) — 20.4022 ) x Time / 4.184 Men: Calories = ( (Age x 0.2017) + (Weight x 0.09036) + (Heart Rate x 0.6309) — 55.0969 ) x Time / 4.184 Write a program with inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output calories burned for women and men. Output each floating-point value with two digits after the decimal point, which can be achieved by executingcout << fixed << setprecision(2); once before all other cout statements. Ex: If the input is: 49 155 148 60 the output is: Women: 580.94 calories Men: 891.47 caloriesThe following equations estimate the calories burned when exercising (source): Women: Calories = ( (Age x 0.074) — (Weight x 0.05741) + (Heart Rate x 0.4472) — 20.4022 ) x Time / 4.184 Men: Calories = ( (Age x 0.2017) + (Weight x 0.09036) + (Heart Rate x 0.6309) — 55.0969 ) x Time / 4.184 Write a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output calories burned for women and men. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:print('Men: {:.2f} calories'.format(calories_man)) Ex: If the input is: 49 155 148 60