Exercise 2: Write a program that calculates the cost per square inch of a circular pizza, given its diameter and price. The formula for area is A = ar² .
Q: This assignment requires you to plot (in text) a quadratic function at certain points. • Ask the use...
A: Correct code def q(a,b,c,x): return a*x**2 + b*x +c def pq(a,b,c,x): print(f'At x= {x} ,y= {...
Q: 1. Using ASCII / EBCDIC char a = Data 2. Using ASCII / EBCDIC - char a = Data Your answer 3. U...
A: Program Explanation: Include the header files. Create char type letter and with the help of c langu...
Q: What precisely is anti-forensics, and how does it work?
A: Introduction: Anti-forensic tactics are content activities intended to obstruct or harden proper for...
Q: Consider a two-link network in which Host A has a 1 Mbps connection with a 10 ms propagation delay a...
A: Intro The question is about to Consider a two-link network in which Host A has a 1 Mbps connection w...
Q: Q1.What is the smallest 32-bit floating point number f such that 128 + f > 128 ? What is the smalle...
A: The answer is given below:-
Q: How is technology that enhance learning an important topic in education?
A: The question asks that how technology helped the learning of some important topics: After technology...
Q: ((Java)) Create two Java methods. the very first: that accepts a value and determines whether or n...
A: Given :- Create two Java methods. the very first: that accepts a value and determines whether or no...
Q: 2. Convert the following two’s complement binary fixed-point number to base 10. The implied binary p...
A: Converted the two's complement to decimal
Q: What was the breakdown of the assessment's usability and user experience goals?
A: Answer:
Q: 2. Discuss types of application integration.
A: Answer 2. There are four types:- 1. presentation-level integration 2. business process integration 3...
Q: Exercise 6: Two points in a plane are specified using the coordinates (x1, y1) and (x2, y2). Write a...
A: Logic: Accept x1 y1 x2 y2 values from user. Calculate slope using the formula. Print output on con...
Q: Garden Glory is a partnership that provides gardening and yard maintenance services to individuals a...
A: Hi there, Please find your solution below, I hope you would find my solution useful and helpful Than...
Q: What is the purpose of system engineering? How to achieve performance improvement by using system en...
A: Systems engineering is an interdisciplinary field of engineering and engineering management that dea...
Q: program change the value of simple variable with ****p.( Pointers in c++)
A: I have attached code below:
Q: The following is the state diagram of NFA. Write the formal description (tuples) o: the machine incl...
A: NFA stands for non-deterministic finite automata. It is easy to construct an NFA than DFA for a give...
Q: How do I fix this error for HTML I keep trying to remove the li o ut of the ul and so and so but it...
A: You must wrap every inner ULs with an LI. The children (direct descendants) of a ul element must all...
Q: Explain what the following does. ------------------------------------------------------------------...
A: The answer is given below.
Q: 1) What is Matlab? 2) What are the five main parts of which the Matlab system consist? 3) What is th...
A: As per company guidelines we are suppose to answer only 1 question, however all the questions which ...
Q: 10.) Write a function, is_prime, which takes a single integer argument and returns prime number and ...
A: Given: To write a python function is_prime which returns true when a argument is prime otherwise fal...
Q: = ax? + bx+ c. • Ask the user for the coefficients a, b and c of a quadratic function f (x) : Output...
A: The code is producing the correct result for me. I wrote it again, with minor changes as I don't thi...
Q: Isn't it true that various systems store disc folders on the disc at different track locations for a...
A: Intro Isn't it true that various systems store disc folders on the disc at different track locatio...
Q: in Mips how to store bytes in reverse order(0xAADDEEFF) at a memore location? . space4
A: .datainput: .space 256output: .space 256 .text .globl mainmain: li $v0, 8 # Ask the user for the ...
Q: nt that
A: The explicit join syntax makes use of two keywords, ON and JOIN. ON keyword is used to specify the p...
Q: Complete the following Windows PowerShell cmdlet to test TCP connectivity with secure HTTP. Test-Net...
A: 1. Checking an opened port with low details information: Command: Test-NetConnection PLABDM01 -Port...
Q: What is instructional systems, instructional design, and instructional technology?
A: In the Question three term discuss below step. 1) Instructional Systems 2) Instructional Design 3) ...
Q: People who work with computers and humans use a lot of different ways to measure how well they work ...
A: Introduction: He addresses a vision articulated in his latest book Superminds a framework for reachi...
Q: Giben two numbers X and Y . Write an algorithm and flowchart to determine the difference between X a...
A: Algorithm: Input: Two integers X and Y Output: Entered values of X and Y and the value of R Algorith...
Q: Assume you've been asked to create a hospital patient monitoring system and that you've been provide...
A: Answer: Specifications for the Software Requirements Engineering (SRS) It's a form of software requ...
Q: Computer Science You are required to build a product for determining whether a bank statement is cor...
A: Bank reconciliation is used to determine whether a bank statement is correct or not
Q: Need solution for DVP checker board problem 6.5
A: Оne аррrоасh is tо mаke sure yоu use а kernel size thаt is divided by yоur stride, ...
Q: Write a function that takes a match, mismatch and gap score, as well as two ungapped sequences as in...
A: This is a problem of Sequence Alignment so first off all you need t see the defination of this kind ...
Q: Complete the Login class implementation. For the class method check_credentials(), you will need to ...
A: Given :- Complete the Login class implementation. For the class method check_credentials(), you wil...
Q: Explain the steps clearly about one paragraph each , about optimization in tf.data API (purpose of ...
A: The tf.data API enables you to build complex input pipelines from simple, reusable pieces. tf.data a...
Q: Was it necessary to use many assessment methodologies in order to provide a more complete picture of...
A: Was it necessary to use many assessment methodologies in order to provide a more complete picture of...
Q: What are the five layers in the TCP/IP Internet protocol stack? What are the principal responsibilit...
A: Intro What are the five layers in the TCP/IP Internet protocol stack? What are the principal res...
Q: What are the prerequisites for considering the use of edge computing and cloud computing in an IoT s...
A: Introduction: Computing at the periphery Edge computing is a distributed information technology (IT)...
Q: 2, Add the following hexadecimal values: D 604 20 16 +5 A 9 9, -16
A: Firstly we have to understand about hexadecimal number system. The hexadecimal number system (hex)...
Q: Find a shortest path in given below graph by using Breath First Search (BFS) Technique
A: Defined the shortest path in the given graph using BFS
Q: umber g such that 1 + g > 1? What is the relationship between f and g? Write a short C++ or Python...
A: NOTE: ACCORDING TO COMPANY POLICY WE CAN SOLVE ONLY 1 QUESTION. YOU CAN RESUBMIT THE QUESTION AGAIN ...
Q: what is the purpose of these files in Windows system USER32.DLL, CRTDLL.DLL, SHELL32.DLL, USER32.DL...
A: We need to state the purpose of the following files in the Windows operating system. USER32.DLL CRT...
Q: As a property developer in California, you want to determine the most profitable area for a new deve...
A:   Mar 11, 2019 Read time: 6 mins Share Property Development: The Process to Follow for Success Wh...
Q: Turtle Hare Race Use two Timer objects to write a Java program to simulate the race between turtle a...
A: Turtle Hare RaceUse two Timer objects to write a Java program to simulate the race between turtle an...
Q: Q1) Gram-Schmidt Algorithm and QR decomposition iv) Write a python code(without numpy) to create a...
A: A matrix's QR decomposition. The decomposition of such a matrix, say 'A,' into 'A=QR,' at which Q se...
Q: Why do we need cache memory, which is also transistor-based, if RAM (Random Access Memory) is a vola...
A: Intro The question is about Why do we need cache memory, which is also transistor-based, if RAM (Ran...
Q: Give me an example of f formatted string in python. Take all the data from the user.
A: Required:- Give me an example of f formatted string in python. Take all the data from the user. Appr...
Q: uring the last two years we have witnessed how Multimedia technologies and applications have played ...
A: Definitions: There may also be little question about how multimedia technology and multimedia-relate...
Q: People who work with computers and humans use a lot of different ways to measure how well they work ...
A: Introduction: He addresses a vision articulated in his latest book Superminds a framework for reachi...
Q: Under what kind of circumstance could maps of only point events be misleading for spatial pattern ex...
A: answer is
Q: Would you create/purchase NFTs now or in the future?
A: Would you create/purchase NFTs now or in the future?
Q: David is used to doing programming in Python and since the print() function in Python by default pri...
A: in PHP, \r\n can be used to print newline.
If "d" is the diameter of the circle then the radius of the circle is calculated as follows
The area of the circle of radius, "r" is calculated using the following formula
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- C++, How do I write a program that asks how many tickets for each class of seats were sold, then displays the amount of income generated from ticket sales? Class A costs $15, Class B costs $12, and class C costs $9.Write a program that calculates the cost per square inch of a circular pizza,given its diameter and price. The formula for area is A = 1rr2•Write a program that calculates how much money you’ll end up with if you invest an amount of money at a fixed interest rate, compounded yearly. Have the user furnish the initial amount, the number of years, and the yearly interest rate in percent. Some interaction with the program might look like this: Enter initial amount: 3000 Enter number of years: 10 Enter interest rate (percent per year): 5.5 At the end of 10 years, you will have 5124.43 dollars.
- Suppose you have a certain amount of money in a savings account that earns compound monthly interest, and you want to calculate the amount that you will have after a specific number of months. The formula is as follows: f = p * (1 + i)^t • f is the future value of the account after the specified time period. • p is the present value of the account (the account's current balance). • i is the monthly interest rate. • t is the number of months. Write a program that takes the account's present value (current balance), monthly interest rate, and the number of months that the money will be left in the account as three inputs from the user. The program should pass these values to a function that returns the future value of the account, after the specified number of months. The program should print the account's future value. Look carefully at the following sample run of the program. In particular, notice the wording of the messages and the placement of…CREATE A PROGRAM THAT ASKS THE USER IF HE/SHE IS PWD OR SENIOR CITIZENIF YES, THEN GIVE 20% OFF IF HE IS BOTH PWD AND SENIOR CITIZEN, GIVE 20% ONLY ASK IF HE HAS A MEMBERSHIP CARD. IF YES, GIVE ANOTHER 3% OFFWrite an application that reads the (x,y) coordinates fortwo points. Compute the distance between the two pointsusing the following formula: Distance = the square root of the sum ofthe square of the difference of the x coordinates and the square of the difference of the y coordinates
- Write a program that calculates the attendance percentage for students, there are total 120 working days in a semester, you are required to ask 100 students the days they attended university, then calculate the percentage it makes. If the percentage is above 75, then display that he is eligible to sit in examination, if not display that he will not get admit card to sit in exams. In the end calculate how many students were eligible to sit in exams.Write a program that computes the molecular weight of a carbohydrate (ingrams per mole) based on the number of hydrogen, carbon, and oxygenatoms in the molecule. The program should prompt the user to enter thenumber of hydrogen atoms, the number of carbon atoms, and the numberof oxygen atoms. The program then prints the total combined molecularweight of all the atoms based on these individual atom weights:Atom Weight(grams I mole)H 1.00794c 12.01070 15.9994For example, the molecular weight of water (H20) is: 2(1.00794) +15.9994 = 18.01528.Write a program that prompts the user to enter the distance todrive, the fuel efficiency of the car in miles per gallon, and the price per gallonthen displays the cost of the trip.
- Write a program that computes and displays the charges for a patient’s hospital stay. First, the program should ask if the patient was admitted as an inpatient or an outpatient. If the patient was an inpatient, the following data should be entered: The number of days spent in the hospital The daily rate Charges for hospital services (lab tests, etc.) Hospital medication charges If the patient was an outpatient, the following data should be entered: Charges for hospital services (lab tests, etc.) Hospital medication charges Use a single, separate function to validate that no input is less than zero. If it is, it should be reentered before being returned. Once the required data has been input and validated, the program should use two overloaded functions to calculate the total charges. One of the functions should accept arguments for the inpatient data, while the other function accepts arguments for outpatient data. Both functions should return the total chargespython Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies. Ex: If the input is: this is what i have so far: def exact_change(user_totaL):num_dollars = user_total // 100user_total %= 100Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions: Function getData: This function asks the user to enter the…