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= ar2.
Q: Using C Language: Write a program that will input 20 values to array BSIT. Call the function EVEN t...
A: First, we will enter the 20 values and store them in array BSIT. Then we will call the function EVEN...
Q: What is OSI, and what role does it play in computer networks?
A: Introduction: The Open Systems Interconnection (OSI) model defines seven layers through which comput...
Q: ### 1a. Complete the function definition below. Write a *pure* function the filters a series. Filter...
A: Pandas series is a One-dimensional ndarray with axis labels. The labels need not be unique but must ...
Q: c. 1001110, - 10101012
A: the answer is given below:-
Q: Write a BankAccountTester class whose main method constructs a bank account, deposits $1,000, withdr...
A: So we just have to use the concept of OOP's and access the data members from class BankAccount : I h...
Q: Differentiate and discuss briefly any four points about primary and secondary memory.
A: The Differences and explanation about primary and secondary memory is below:
Q: I fileio01.cpp #include #include 4 5日{ int main()) FILE *fptrI, *fptrC; fptrI = fopen ("datafile.d...
A: datafile.dat
Q: The number of dr specified by the c disks? What are disks in terms ofe during rebuild? ehi
A: given - The number of drives that are clustered together in a single RAID 5 array can bespecified by...
Q: What are the two types of files, in general, that exist? In what ways do these two file formats diff...
A: A document can be characterized as an assortment of information or data. Notwithstanding, the PC dea...
Q: Exercise 9: Write a program to calculate the area of a triangle given the length of its three sides ...
A: I will be taking input from user all three sides and then refer below for code: import math a=int(in...
Q: systen operating at an information rate of 36 kbps determine, Baud Minimum bandwidth
A: The Answer is in Below steps
Q: Find the Big Oh Notation of the following
A: Defined the Big-Oh Notation of the given code
Q: Suppose you have a RISC machine with a 2.7 GHz clock (i.e., the clock ticks 2.7 billion times per se...
A: Given: RISC machine with a 2.7 GHz clock. Array elements processed in 4.4 milliseconds
Q: basic concept of computer an history of computer
A: The historical backdrop of the PC traces all the way back to quite a long while. There are five unmi...
Q: ance" in the "AdventureWorksDW2017" database and returns those amounts, organized by month, and show...
A: In this query we will use GROUP BY clause for grouping of Date and Amount Where clause for the month...
Q: When running this script : # Split input into 2 parts: name and age parts = input().split() name...
A: ==> When you are splitting the input its is splitting into three strings.[Mary,Beth,19]. So it wa...
Q: Consider the following code. What will be printed to screen? def my_func(): a += 1 return a a = 5 re...
A: B) UnboundLocalError
Q: Why not divide user research?
A: given - Why not divide the overall design into multiple user viewpoints when conducting user researc...
Q: What exactly is in the EULA?
A: here we have to tell about EULA (END USER LICENSE AGREEMENT) that what it is and what it includes. s...
Q: Why not divide the overall design into multiple user viewpoints when conducting user research?
A: Introduction: Design teams use the technique to build products that give consumers meaningful and r...
Q: JAVA - Please produce both a product.java file and a productprinter.java file (tester) Implement a ...
A: public class mainClass { public static void main(String[] args) { emp pcost = new emp(); pcost.emp0(...
Q: Write a simple C# console application to accept the item name and item price. The program should cal...
A: Here is your code with an output .
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: i) Write the datatype required for all the fields of table SCHOOL. ii) To display TEACHERNAME, PERIO...
A: Since you have asked multi-part question so we have answered first three questions for you. If you w...
Q: Write a program in Python to get basic salary, house rent allowance and transportation allowance fro...
A: For the given problem, we need to implement a Python program that calculates the net salary as per t...
Q: Most people confuse computer databases with flat files and directories. In your own words, describe ...
A: A database is a collection of data, They help in data storage and manipulation. Databases help handl...
Q: O of 3 points Quiz 3.2: Question 3 Unlimited tries NOTE: in mathematics, division by zero is undefin...
A: PROGRAM INTRODUCTION: Take the number of calls received from the user. Take the number of operators...
Q: PowerShell Is there a way to filter Azure AD Dynamic groups using PowerShell I use this command Ge...
A: The answer is given below:-
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: Label the Recursion Requirements. int fact (int n) 1fin--1)
A: Given :- label the recursion requirements
Q: PLEASE ENSURE TO USE THE FRAMEWORK PROVIDED IN THE IMAGES, AND THAT IT WORKS WITH THE TESTER CLASS. ...
A: Coded using Java.
Q: Prepare a brief report in the form of a letter. In the introductory part of the letter: i. Briefly i...
A: When it comes to increasing a company's efficiency, Spread Sheet Automation is a valuable ally. Dat...
Q: #include int main () int TOTNUM, NUMBER, SUM, INDEX, PRODUCT, SMALLNUM, BIGNUM; float AVERAGE; SUM ...
A:
Q: What is the purpose of system engineering? How to achieve performance improvement by using system en...
A: The answer is given below:-
Q: Write a program to generate 10 random numbers from -100 to 100. Save the randomly generate numbers i...
A: Python program to print random number between -100 to 100 an store in a list . Finding the count of ...
Q: Write a C++ program will ask the user to enter 5 numbers and then present with their sum?
A: Intro The question is about program will ask the user to enter 5 numbers and then present with their...
Q: Exercise 4: Write a program that determines the distance to a lightning strike based on the time ela...
A: def getDistance(time): speed = 1120 # calculating distance in feet distance = speed*time ...
Q: Use of Technology: You will be required provide a report that shows the different between Automated ...
A: VAPT stands for Vulnerability Assessment and Penetration Testing. Vulnerability Assessment is a way ...
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: How a communication chasm between users and designers can sabotage a project's success
A: Introduction: The user-designer communication gap refers to the disparity in foundations, interests...
Q: **using python Create a program, digits.py, that has a function that takes a number and prints the ...
A: Actually, python is a easiest programming language. It is a dynamically typed programming language. ...
Q: How many times will the following code print "Welcome to Java"?
A: As per the answering guidelines solving the first question completely Q1) Here the initial value of ...
Q: C# Question Create a desktop application that allows the user to enter a maximum integer. The ap...
A: Steps to create a C# Windows Form Application Open visual Studion C# Windows Application Create a n...
Q: Write a program to get a random number between 1 and 100, use the button to check whether the given ...
A: write a program to get random number between 1 and 100......
Q: Someone should double-check the APA citations and references, thus l'd want to provide a PowerPoint.
A: Italicized title, “PowerPoint slides” in square brackets, department and university names, and the U...
Q: What is the anticipated modelling approach, and why was it chosen for a certain model?
A: The framework's model methodology is a cycle situated portrayal that underscores the effect or strea...
Q: Convert the IEEE single precision floating-point number from hexidecimal to decimal. 42e48000
A: Floating point conversion from 32 bit hexadecimal representation.
Q: Which of the following activities require real-time processing? Printing mailing labels Playing a ...
A: Actually, Real-time processing means processing the data that is generated in real-time and without ...
Q: Write a program that uses a while loop to generate a table showing the 7% sales tax and total charge...
A: import java.util.*;import java.text.*;class Main { public static void main(String[] args) { ...
Q: Why do we need cache memory, which is also transistor-based, if RAM (Random Access Memory) is a vola...
A: Memory in the cache is faster than memory in the main system. When compared to main memory, it uses ...
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Problem: A company wants a program that will calculate the weekly paycheck for an employee based on how many hours they worked. For this company, an employee earns $20 an hour for the first 40 hours that they work. The employee earns overtime, $30 an hour, for each hour they work above 40 hours. Example: If an employee works 60 hours in a week, they would earn $20/hr for the first 40 hours. Then they would earn $30/hr for the 20 hours they worked overtime. Therefore, they earned: ($20/hr 40hrs) + ($30/hr 20 hrs) = $800 + $600 = $1400 total. For this assignment, you must create pseudocode and a flowchart to design a program that will calculate an employee's weekly paycheck. . Write pseudocode to design a programming solution by outlining a series of steps and using appropriate indentation and keywords. As you write your pseudocode, be sure to consider the following: What input does the computer need? What steps does the program need to follow to process the input? What output should…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= ar2. & 4 5 6. 7 8. d. hA mobile phone service has three different data plans for its customers: PLAN A: For $19.99 per month, 2 gigabytes are provided. Additional usage costs $8.00 per gigabyte. PLAN B: For $59.99 per month, 8 gigabytes are provided. Additional usage costs $8.00 per gigabyte. PLAN C: For $79.99 per month, Unlimited data is provided. Write a program that calculates a customer’s monthly bill. It should input the customer name, which plan was purchased, and how many gigabytes were used. It should then create a bill that includes the input information and the total amount due. It should also display how much money plan A customers would save if they purchased plan B or C, and how much money plan B customers would save if they purchased plan C. If there would be no savings, no message should be printed. Wherever possible, use named constants instead of numbers.
- Simulate the dice game of lucky sevens. The rules are: roll two dice if the sum equals 7, win $4 if the sum is not 7, lose $1 Write a program that asks the user how much they would like start the game with. The program should then: simulate the dice roll (using the random function) and show what was rolled show what the user’s funds are after each roll ask the user if they want to roll again if the user wants to roll again, repeat the three actions above if the user does not want to roll again give some response and end the game the final output should show if they won or lost money, and how many rolls they playedJAVA Given an airplane’s acceleration a and take-off speed v, you can compute the minimum runway length needed for an airplane to take off using the following formula: length = v2 / 2 * a Write a program that prompts the user to enter v in meters/second (m/s) and the acceleration a in meters/second squared ( m/s2 ) , then displays the minimum runway length needed to take off. Here is a sample run: Enter speed and acceleration: 60 3.5 [enter] The minimum runway length for this airplane is 514.286The monthly payment for a givenloan pays the principal and the interest. The monthly interest is computed by multiplyingthe monthly interest rate and the balance (the remaining principal). The principalpaid for the month is therefore the monthly payment minus the monthly interest.Write a program that lets the user enter the loan amount, number of years, and interestrate then displays the amortization schedule for the loan. Here is a sample run: Loan Amount: 10000 ↵EnterNumber of Years: 1 ↵EnterAnnual Interest Rate: 7 ↵EnterMonthly Payment: 865.26Total Payment: 10383.21Payment# Interest Principal Balance1 58.33 806.93 9193.072 53.62 811.64 8381.43...11 10.00 855.26 860.2712 5.01 860.25 0.01
- Write a program thatreads in investment amount, annual interest rate, and number of years and displaysthe future investment value using the following formula:futureInvestmentValue =investmentAmount X (1 + monthlyInterestRate)numberOfYears*12For example, if you enter amount 1000, annual interest rate 3.25%, and numberof years 1, the future investment value is 1032.98.Here is a sample run: Enter investment amount: 1000.56 ↵EnterEnter annual interest rate in percentage: 4.25↵EnterEnter number of years: 1 ↵EnterFuture value is $1043.92The body mass index, BMI, is a measure used to determine if a person is overweight or not. We can calculate BMI from the weight of the person (in pounds) and the height (in inches) of the person.The formula for calculating BMI is:BMI = (weightInPounds * 703) divided by (heightInInches squared)In this problem, you will develop a Java program as a BMI calculator, that reads the user’s weight in pounds and height in inches, then calculates and displays the user’s body mass index BMI. Also, display the following information {from the US Department of Health} so the user can evaluate his/her BMI:BMI values:Underweight: less than 18.5Normal: between 18.5 and 24.9Overweight: between 25 and 29.9Obese: 30 or greaterProblem: A small company needs an interactive program to compute an employee’s paycheck. The payroll clerk will initially input the data, and given the input data, an employee's wage for the week should be displayed on the screen for the payroll check. The data for the employee includes the employee's hourly pay rate and the number of hours worked that week. Wage is equal to the employee's pay rate times the number of hours worked (up to 40 hours). If the employee worked more than 40 hours, wage is equal to the employee's pay rate times 40 hours plus 1½ times the employee's pay rate times the number of hours worked above 40. Instructions: Match the action at the left-side with the correct step number at the right-side (the attached picture). Note that it may be possible to group more than one related actions in the same logical step / process without altering the essence of the algorithm. In the program flow, input and checking of hourly pay rate should come before that of the number…
- Area and Perimeter: Write a program that prints the area and perimeter of a circle with a radius of 5.5 using the formula:• Perimeter = 2 * radius * PI• Area = radius * radius * PI• Use Math.PI for PI in your programA company of 20 employees wants to find the employee who made the highest commission so he/she can be paid a 10% bonus of the commission he/she earned for that month. The commission an employee makes is calculated by multiplying the sales amount by the commission rate. The commission rates are shown below: Sales Amount Commission Less Than 40000 No commission 40000 to 80000 inclusive 5% Greater than 80000 10% Write a program to: Prompt the user for each employee’s id (an integer value) and the sales amount For each employee, display the commission earned Display the total commission earned by all the employees Display the average commission earned by an employee Display the employee id, the commission and the bonus paid to the employee with the highest commission Must be written in c++, no arrays to be used, only use iostream library. The progressive income tax rate is mandated as follows: Taxable Income Rate (%) First $20,000 0 Next $20,000 10 Next $20,000 20 The remaining 30 For example, suppose that the taxable income is $85000, the income tax payable is $20000*0% + $20000*10% + $20000*20% + $25000*30%. Write a program called IncomeTaxCalculator that reads the taxable income (in int). The program shall calculate the income tax payable (in double); and print the result rounded to 2 decimal places. For examples, Enter the taxable income: $41234 The income tax payable is: $2246.80 Enter the taxable income: $67891 The income tax payable is: $8367.30 Enter the taxable income: $85432 The income tax payable is: $13629.60 Enter the taxable income: $12345 The income tax payable is: $0.00