4. Make a program that will follow the format of the program output below and analyze as well the formula applied how it came up with the result. Example: Enter number of coins per value: ten-peso coin: five-peso coin: 2 4 one peso coin: twenty-five centavo coin: 4 You have total of 12 coins amounting to Php 43.00
Q: Prove that the following are logically equivalent: 1. qv~ (¬p A q) = r 2. (рАq) V (p А -9) 3D р
A:
Q: Despite Microsoft's discontinuation of support for Windows Server 2003, estimates of the number of c...
A: There are still a hundred to thousands of machines using the Windows Server 2003 even though Microso...
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: **.
A: Here in the given problem statement we need to provide the program and algorithm for given above pat...
Q: Translate the C code to ARMv7 assembly. int a = 1; int b = 12; if(a != b) { c = a*4; ...
A: 1. C code to ARMv7 assembly. main: sub sp, sp, #20 mov r0, #0 str ...
Q: Some IT security professionals feel that former computer criminals should be hired to find security ...
A: Introduction: A cyber-attack is a computer-to-computer or network-to-computer or network-to-network ...
Q: omment on the current status of IPV4 and identify the major ney are addressed in IPV6
A: Packet flow identification is not available in IPv4.* IPv4 supports packet size of 576 bytes and fra...
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: Label the Recursion Requirements. Show the Activation Stack for n = 4. int fact (int n) int result; ...
A: The function fact () is a recursive function.
Q: Most business users will have access to self-service BI tools in the next years, but Gartner expects...
A: Answer: When it comes to investing in new analytics tools without a governance programme, the primar...
Q: Question 5 Let set A = {1, 2, 3} and S is a relation on set A, where S= {(1, 1), (1, 2), (1, 3), (2,...
A: Relation S is said to be transitive as for a,b,c in A, if (a,b) is in R and (b,c) is in S, then (a,c...
Q: Recall in a three-pass compiler the only objective of the middle-end is improving the code while pre...
A: The benefits of a two-pass compiler more than a single-pass generator: In comparison to that same pr...
Q: ) Which Gradient Descent algorithm (sto olution the quickest? D) Which is more likely to converge?
A: As per guidelines, we can solve one question at a time. Hence resubmit the question for further answ...
Q: Explain the function of an operating system (OS) and the interactions that occur between an OS, appl...
A: Function of OS : The main purpose of operating system is to provide users with a consistent metho...
Q: Print either "Fruit", "Drink", or "Unknown" (followed by a newline) depending on the value of userlt...
A: This is multiple type question, hence only first question has been answered. The question is to writ...
Q: umber f such that 128 + f > 128? and
A: NOTE: ACCORDING TO COMPANY POLICY WE CAN SOLVE ONLY 1 QUESTION. YOU CAN RESUBMIT THE QUESTION AGAIN ...
Q: Think about the system that handles student admissions at your university. The primary function of t...
A: 1) use case description for student admission A student while admitting by online/offline he must go...
Q: earch SEARCH ASK CHAT MATH SOLVER Question C++ code snippet Use namespace std ...
A: The given code snippet will add all the elements of the given array and then output the result. Ther...
Q: construct conceptual diagram for restaurant ordering system
A: Data Flow Diagram (DFD) presents a visual representation of the drift of records (i.E. Statistics) w...
Q: create sequence diagram that will used to automate definition,evaluation and examining the academic ...
A: 1) Considering the design problem I, how would you go about determining the detailed requirements fo...
Q: If you have a training set with millions of features, which Linear Regression training procedure sho...
A: Answer:
Q: What are communication issues powerpoint points?
A: communication is process of information exchange between sender and receiver. Communication process...
Q: Assume you're the owner of a business that's about to begin promoting and selling bicycles via the I...
A: the answer is
Q: Rewrite the program with a little bit of changes in the codes... #include int READING (); int ...
A:
Q: What are the two basic approaches to addressing energy concerns that the author examines as broad ca...
A:
Q: Convert unsigned decimal 60293 to a hexadecimal value. 1656 いr6u293
A: Assembly code to convert decimal 60293 to hexadecimal: .MODEL SMALL .STACK 100H .DATA d1 dw 6029...
Q: 1. Create a program that can accept a number and display that number as many times as the inputted n...
A: Coded using Java.
Q: If a process in a multiprogramming system could access memory cells outside its allotted area, how c...
A: In a computer system. The code that controls the machine is operating system code. In modern operati...
Q: What is in a class diagram's characteristics section? Class Algorithms The class's methods Class var...
A: Answer: The “variables” of the class are listed in the attributes section of a class diagram. So the...
Q: What is the term used to describe a non-key attribute in one entity that points to the primary key i...
A: This is used to establish relation between two tables
Q: An array of even integers and an array of paragraphs returned by document have no differences. getEl...
A: Introduction: An array is a container for a single value with a predetermined number of entries. Wh...
Q: 10). In is fixed. interrupts the starting address A. External interrupt B. Vectored interrupts C. No...
A: According to the question vectored interrupts helps makes starting the service to assign for the dis...
Q: What are your top three goals for creating a r
A: Here are SMART website goals by department with a quick recap of their common needs: Marketing– dri...
Q: BOOK (Book_id, Title, Publisher_Name, Pub_Year) BOOK_AUTHORS (Book_id, Author_Name) PUBLISHER (Name,...
A: Answer : I attached an image of the schema diagram please have a look once.
Q: # TODO: write the function signature for the following function header: """ multiply_accumulate(a, x...
A: Below is the complete solution in detail. Generally, Function Signature is termed as Function Declar...
Q: matics nursing speci
A: Below the an informatics nursing specialist's role
Q: How does technology impact each of the management disciplines?
A: The role of MIS is a very important role within the organization. It creates an impact on the organi...
Q: What is the difference between regular and context-free grammars for programming languages, what is ...
A:
Q: Analyze the conditions that can lead to satellite path diversity.
A: ans. the conditions that causes or lead to satellite path diversity are: uneven distruption of t...
Q: (a) Which Gradient Descent algorithm (stochastic, batch, or small batch) will achieve the best solut...
A: Introduction : We need to find out the gradient descent algorithm what will pick the best and fastes...
Q: What type of possible error messages you can get when you try to login with the ssh- option?
A: The Answer is
Q: medical
A: Introduction: Compiling a statement or statements that do not add to the result of the program is ca...
Q: What type of possible error messages you can get when you try to login with the ssh- option?
A: The Answer is
Q: Create the set objects A={L,M,N,P,Q} and B={L,R,S,P,T } .
A: Program Explanation: Declare two sets Define two sets with the specified elements in the question D...
Q: (a) Which Gradient Descent algorithm (stochastic, batch, or small batch) will achieve the best solut...
A: It is computationally less expensive than batch gradient descent. Note: As per our guidelines we are...
Q: Consider the array Vehicle which records the number of vehicles sold each year from 1990 through 202...
A: An array is an indexed collection of the same data type and it stores every element in the contiguou...
Q: What is the difference between regular and context-free grammars for programming anguages, what is t...
A: Lets see the solution.
Q: Write a Python program to show the use of the isinstance() function to check whether the value 0.5 i...
A: # Check if "0.5" is an object of float or notif isinstance(0.5, float): # If 0.5 is an object of fl...
Q: Use as many examples as possible to support your viewpoint. Which sort of parser is more powerful, b...
A: Introduction: Data can be broken down into smaller pieces in order to facilitate translation into an...
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Python Programming. Write a program that computes how much a customer has to pay after purchasing two items. Make the lower-priced item half price. If the two items have identical prices, you can make one or the other half price. The price is calculated according to the following rules:• Buy one get one half off promotion: the lower price item is half price.• If the customer is club card member, additional 10% off.• Tax is added. Inputs to the program include:• Two items’ prices• Have club card or not (User enters ‘Y’ or ‘y’ for “yes”; ‘N’ or ‘n’ for “no”)• Tax rate (User enters the percentage as a number; for example, they enter8.25 if the tax rate is 8.25%) Program displays:• Base price - the price before the discounts and taxes• Price after discounts - the price after the buy one get one half off promotionand the member’s discount, if applicable• Total price – the amount of money the customer has to pay (after tax)printed with the precision of 2 decimal digits. Hint: In order to…Write a program that computers and assess the tuition fee of the students in one trimester, based on the given mode of payment below:Plan(key) Discount/interestCash(1) 10% discountTwo-Installment 5%interestThree-Installment 10% interestSample input/output dialogue:Enter Tuition Fee: 20000Enter Mode of Payment: 2Your total tuition fee is : 21000A company wants to know the percentages of total sales and total expenses attributableto each salesperson. Each person has the following data: name – last name and firstname, sales, and expenses. Write a program that produces a report with a header linecontaining the total sales and total expenses. Following this heading should be a tablewith each salesperson’s name, percentage of total sales, and percentage of totalexpenses sorted by the salesperson’s name. Use a total of 25 records for this project.
- in C# Sometimes figuring letter grades is hard. Write a program that asks for, and reads from the user, a midterm exam grade and a final exam grade. Compute the average of those two grades and ouput a letter grade based on the scale shown below. CHALLENGE PROBLEM: One of my graduate school classes modified the above calculation. This professor said that the final grade would be determined by the simple average of the midterm and the final, however, if the student scored better on the final than they did on the midterm, the professor would weight the midterm exam at 25%, and the final exam at 75% when computing the final grade. Modify your code to use this professors modification in determining letter grade. Here is the grading scale:The New Telephone Company has the following rate structure for long-distance calls: The regular rate for a call is P8 per minute. Any call started after 6:00P.M. (1800 hours) but before 8:00 A.M (0800 hours) is discounted 50%. Any call longer than 60 minutes receives a 15% discount. All calls are subject to 4% federal tax on the cost after any discounts. Write a program that takes the start time for a call based on a 24-hour clock and the length of the call in minutes. The gross cost (before any discounts or tax) should be displayed followed by the net cost (after discounts are deducted and tax is added).Donald Trump has been so stressed lately that he wanted to squeeze a stress ball. As he squeezed a stress ball in the oval office, he realized he can make many stress balls of varying sizes and charge each customer $10.00 per cubic centimeter. Manufacturing these stress balls will generate jobs and Make America Great Again™! Your job is to create a program that solves for the size of each manufactured stress ball given the radius and finally solve for the total sales. Note that a stress ball is a sphere and that's 4 Volume sphere=r³ Input The first line refers to the number of products N (where N is between 1 and 50) products to be made. The next N lines is the radius of the balls (where radius is between 1.00 and 100.00) Output The first N lines of output shows the individual price of the manufactured stress ball. The last line of output shows the total amount of sales with those balls. Sample input/output 4 1.16 11.24 8.17 10.22 49.037 44611.7 17132.3 33535.3 95328.4
- 8. Write a program that will determine the salary of an employee based on his or her rank as follows: Rank Salary (Php) Rank Salary (Php) 1 70,000 4 50,000 2 65,000 5 35,000 3 60,000 Below 5 20,000Write 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 in-patient or an out-patient. If the patient was an in-patient 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 out-patient 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 re-entered 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 in-patient data, while the other function accepts arguments for out- patient data. Both functions should return the total charges.Write a program to calculate the total final marks for a subject. There are four assessment types for the subject. Below are the percentages of the marks that will be taken into account for the Total Finall Marks (refer Table 1). Table 1 : Total Finall Marks Percentages Assessment Type Original Marks Percentage taken from original marks Finalll Eexam 100 50% Quiz 50 20% Lab 50 20% Assignment 20 10% Total Final Marks 100%
- You are working for a lumber company, and your employer would like a program that calculates the cost of lumber for an order. The company sells pine, fir, cedar, maple, and oak lumber. Lumber is priced by board feet. One board foot equals one square foot that is one inch thick. Theprice per board foot is given in the following table: Pine 0.89Fir 1.09Cedar 2.26Maple 4.50Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). An entry from the user will be in the form of a letter and four integer numbers. The integers are the number of pieces, width, height, and length. The letter will be one of P, F, C, M, O (corresponding to the five kinds of wood) or T, meaning total. When the letter is T, there are no…а. Write a program that calculates and prints the fare for an airline. There are two plans: Plan Ticket fare Baggage Weight Fare Tax Economy 1200 $ 25 18% or 10% Business 3000 $ 35 20% or 12% Extra weight is charged by 20$/Kg for Economy, and 15$ for Business. A fare tax is added to the ticket fare: 18% for Economy and 20% for Business if the ticket type is "roundtrip". The fare is 10% for Economy and 12% for Business if the ticket type is "one-way". The tax percentage is applied on the original ticket fare. i. Ask the user to enter the Customer ID. A valid Customer ID must contain 5 digits. If the user inputs an invalid Customer ID the user must re-enter the account. Ask the user to enter the plan code (The user will enter e or E for Economy and b or B for Business). Any invalid input must be corrected by asking the user to re-enter. ii. iii. Ask the user to enter the weight. You may assume that the user will not enter a negative number. iv. Ask the user to enter 'y' if it is a…Mad Libs are activities that have a person provide various words, which are then used to complete a short story in unexpected (and hopefully funny) ways. Complete the program to read the needed values from input, that the existing output statement(s) can use to output a short story. Ex: If the input is: Eric Chipotle 12 cars. the output is: Eric went to Chipotle to buy 12 different types of cars. 340136.2251206.qx3zay7 LAB 2.31.1: LAB: Mad Lib 0/10 ACTIVITY LabProgram.java Load default template... 1 import java.util.Scanner; 2 3 public class LabProgram { 4 5 6 7 8 9 10 11 11 went to + generic Location + to buy + wholeNumber + different types of Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box. AAAAA OF ENP 12 public static void main(String[] args) { Scanner scnr = new Scanner(System.in); String firstName; String genericLocation; int…