A fish market has two types of fish. Price of the first type is 3 OR per fish, and price of the second type is 5 OR per fish. Write a python program that inputs the total number of fishes available in the market from each type and the total sold number of fishes from each type. The program will calculate and display the total price of soled fishes and the number of remaining fishes from each type.
Q: Short-Circuit Evaluation OR (if you have three conditions, and the condition is true, do you need to…
A: In general, it is not necessary to evaluate all of the conditions in an OR expression if the result…
Q: Both of these issues may be modeled in a simulation, and their descriptions could be useful.
A: model simulations: A model of the system is used to operate a simulation of the system. A attribute…
Q: Can you explain the distinction between a class and an instance of a class?
A: In contrast, the instance of the class is a real thing that really uses the definitions of the class…
Q: The destination of a function's return value may be represented as a sequence of instructions. When…
A: The push and pull There are two stack operations that can be executed.
Q: It's a counter for both the number of source-level statements and the total number of I/O…
A: Algorithm: An algorithm is a series of instructions that are well specified and are often used in…
Q: When the MTTR drops to zero, what does it signify for availability? Is it possible to define this…
A: Availability while the MTTR is getting close to zero: Mean Time To Repair, abbreviated as MTTR, is a…
Q: Clarify the differences between symmetric and asymmetric multiprocessing. To what extent do the pros…
A: Distinguish betweenness symmetric and asymmetric multiprocessing methods. symmetric…
Q: nts (Reg_no., Name, CGPA, city, age). Your program should provide following functionalities: …
A: I have written the code below:
Q: ew of the three most popular cloud-based com
A: Introduction: These services square measure classified into 3 sorts of cloud computing:…
Q: What controls are you thinking of implementing to safeguard your company's network against…
A: Please find the answer below :
Q: Q1. In the silhouette score method which point would be the most appropriate number of clusters for…
A: SOLUTION : C : Global maximum
Q: b The figure shows the cross section of a channel carrying water. Determine h, b and that minimize…
A: - We have to convert the calculations provided into a python code.
Q: you are a cybersecurity at x organization and you have asked to make cybersecurity plan , what do…
A: Introduction: A strategy for cyber security entails choosing and putting into effect best practices…
Q: You're given a simple undirected graph G with N vertices and M edges. You have to assign, to each…
A: Input/Output Format: First line will contain TT, number of testcases. Then the testcases follow.…
Q: The concept of multi-factor authentication is completely strange to my mind. What exactly does it do…
A: Definition: People must be verified utilising a number of security and validation methods when…
Q: What is the output of the following C Program? Please kindly choose the letters with the correct…
A: 56) option c . answer= 4 49) option e . answer 0 0 21 3 50
Q: Investigate the engineering design process for designing a 10-litre water bottle.
A: This project's main goal is to examine the engineering design process and apply it to the creation…
Q: How can we find the model that best describes our data?
A: Indeed, We must find visual based representation of data to help and see the Structure of data model…
Q: Lily's favorite show is Captain's Cove. Lily watched all 30 episodes last season. Altogether, she…
A: Given: Total episodes last season= 30 Total time spent watching= 15 hours Number of episodes this…
Q: How does changing the size of the swap file affect the physical addresses and virtual addresses of a…
A: Introduction on swap file Swap files will be provide extra memory for the OS. These files acts as a…
Q: Concoct a make-believe scenario involving the administration of user accounts. Establish a wide…
A: Password authentication verifies a user's ID and key against stored data. Only the person who…
Q: Facebook is one of the most popular social networks where users can post posts to different (text or…
A: What is a relational schema?A relational schema is a set of relational tables and associated items…
Q: Where can I learn about the most current attacks on the Internet of Things?
A: Smart deadbolts open homes to dangerResearchers found weaknesses in a popular smart deadbolt that…
Q: When referring to server space, how many rack spaces do we need? I was wondering whether standard…
A: When you first start thinking about how to construct a server, the variety of server rack sizes…
Q: hich server scanning technique might possibly identify Telne
A: Check for the solution in step 2
Q: An FSM is an established way to describe and implement AI for synthetic players, because it
A: An FSM is a well-known method for describing and implementing AI for synthetic players because it: •…
Q: Analyze the pros and cons of implementing various systems depending on how a business uses…
A: Information Communications Technology-(ICT): ICT, or information and communications technology, is…
Q: In a large organization, how do you typically get permission to make a change to the network?
A: When applying for a service provider shift at such a large organisation or corporation, you could…
Q: float averageOdd(int LA[], int size) - this function will return the average of all ODD integers…
A: The c code is an given below :
Q: What are some current applications of the "internet of things?"
A: Introduction: The phrase "Internet of Things," or simply "IoT" (Internet of Things), alludes to the…
Q: rities between the 20th-century and tod
A: Introduction: Two devastating world wars and a number of other violent conflicts, such as the Boer…
Q: Provide a made-up example of how you'd handle the administration of user accounts. Write down all…
A: The approach of managing several futures and crafting scenarios precisely fitted to a particular…
Q: hen choose an OS for an embedded device, what are the most important criteria to keep in min
A: The above question that is when we picking an OS for an embedded device , what are the most…
Q: When compared to an encrypted database, why is it better to use a hashed password file?
A: Introduction: The sensitive information that your users trusted you with has been revealed if the…
Q: u name the two tenets of aggregat
A: Introduction: Data aggregation can be classified into two types: Aggregation of time. Over a given…
Q: Why, across long distances, does SMF perform better than MMF?
A: An optical fiber or fiber optics has emerged as the leading medium for signal transmission in data…
Q: For what purposes is authentication used? Examining the pluses and minuses of various authentication…
A: Introduction: When servers need to know who is accessing their data or website but do not want to…
Q: When doing authentication, what do you want to achieve? It's important to weigh the benefits and…
A: In computer security authentication is done in computer systems/networks and there are various types…
Q: Where should I put my Python files when I upload them to Blackboard to hand in to my professor?
A: Open Python Idle for 32-bit or 64-bit, depending on the OS, to save a Python.A drop-down menu will…
Q: Q9) To advance execution, this engineering ought to be utilized: 1) a layered design 2) related…
A: A design pattern is a general repeatable solution to a commonly occurring problem in software…
Q: Learn the differences between database and sequential file backups.
A: Backup is the method for storing replicated data so that data can be recovered when original data…
Q: Construct a Mealy machine that takes a binary number as an input. Then in every input binary…
A: Here is a Mealy machine that takes a binary number as input and replaces the first 1 with a 0 in…
Q: Learn the key differences between parallel and serial code development.
A: ASRAll potential models or regressions are synonyms. The process name reveals its function. Except…
Q: we per eive, act, ching a certain level of expertise and engagement. Examples include onversation,…
A: The answer is
Q: Whenever the MC8088/EV Microcomputer Training is set in charge of processing an auditory signal,…
A: The 8088 is a popular microprocessor that made it easier to understand the design and operation of…
Q: When a stack resource is not created successfully, what happens?
A: Definition of the AWS CloudFormation: It is a special type of service to configure the AWS…
Q: Distinct differences exist between a descriptive model and a prescriptive one.
A: A descriptive model is used to define and/or help understand the nature, purpose, and operation of a…
Q: Prepare a presentation (.ppt) covering the "Motion Capture" topic. Your presentation should cover…
A: Motion capture, also known as mocap, is the process of recording the movement of objects or people.…
Q: Other than process management, what are the other two most important functions of an OS?
A: Operating System: An operating system is a software that controls all other applications and…
Q: 24) Match the numbers underneath to one of the letters: (A)Design Example, (B)SCRUM, C)…
A: Note:- You have posted multiple multi-part problems. As per guidelines we are required to answer all…
Step by step
Solved in 3 steps with 1 images
- WRITE A PROGRAM TO CALCULATRE THE AREA OF A RECTANGLE OF LENGTH =5 CM AND BREADTH=8CM. CALCULATE THE PRICE OF AN ITEM COSTING 100 GHANA CEDIS AFTER A DISCOUNT OF 10% IS APPLIED TO IT. WRITE A PROGRAM TO CALCULATE THE SIMPLE INTEREST ON A LOAN AMONUT OF 50000 GHANA CEDIS AT AN INTEREST RATE OF 30% FOR A NUMBER OF YEARS WHICH WILL BE SPECIFIED BY THE USER. WRITE A PROGRAM TO CALCULAT THE AGE OF THE USER AFTER THE USER ENTERS HIS OR HER YEAR OF BIRTH.A contractor orders, say, 30 cubic yards of premixed concrete toconstruct a patio that is to be, say, four inches thick. The length ofthe patio is to be, say, twice the width. Write a program that promptsthe user to specify the amount of premixed concrete (in cubic yards)ordered, the thickness of the patio (in inches), and the ratio of lengthand width. The program then outputs the length and width of thepatio (in feet). (1 cubic yard = 27 cubic feet.) (To find the squareroot of a decimal number, include the header filecmathusing thestatement#include, in your program. The functionsqrt, includedin this header file, determines the square root of a decimal number.For example,sqrt(16.0) = 4.0.)Write a program will then ask for the prelim grade, midterm grade and final grade of the student. The program should only accept grades 100 and below. After getting the three grades, the program should compute for the semestral grade. The computation of the semestral grade is as follows: 30%*PrelimGrade + 30%*midtermgrade + 40%finalgrade After inputting all the grades, the screen should clear again and will proceed to another screen.
- C Program Write a program that will compute for the salesman's commission based from his total sales for the month. if total sales is Commission isabove 0 but below 10,000 2% of total salesat least 10,000 but below 25,000 5% of total salesat least 25,000 but below 50,000 10% of total salesat least 50,000 but below 75,000 13% of total salesat least 75,000 but below 100,000 15% of total sales at least 100,000 25% of total sales Input the total sales and print Commission = <the computed commission>Write a program that calculates the change due a customer by denomination; that is, how many pennies, nickels, dimes, etc. are needed in change. The input is to be the purchase price and the size of the bill tendered by the customer ($100, $50, $20, $10, $5, $1)Write a program that computes the fuel efficiency for a multi-leg journey. The program will first prompt for the starting odometer reading and then get information about a series of legs. For each leg, the user enters the current odometer reading and the amount of gas used (separated by a space). The user signals the end of the trip with a blank line. The program should print the miles per gallon achieved on each leg and the total MPG for the trip.
- write a program that enters an individual's year of birth and the present year and calculate and return the individual's current ageC++ OOP A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons ofmilk to a local grocery store. The cost of producing one liter of milk is $0.38, and theprofit of each carton of milk is $0.27. Write a program that does the following:• Prompts the user to enter the total amount of milk produced in the morning.• Outputs the number of milk cartons needed to hold milk. (Round your answer tothe nearest integer.)• Outputs the cost of producing milk.• Outputs the profit for producing milk.Teachers in most school districts are paid on a schedule that provides asalary based on their number of years of teaching experience.• For example, a beginning teacher in the Lexington School District might bepaid $30,000 the first year. For each year of experience after this first year,up to 10 years, the teacher receives a 2% increase over the preceding value.• Write a program that displays a salary schedule, in tabular format, for teachers in a school district.The inputs are:• Starting salary• Annual percentage increase• Number of years for which to print the schedule• Each row in the schedule should contain the year number and the salary for that yearAn example of the program input and output is below.
- C++ OOP Write a program that prompts the capacity, in gallons, of an automobile fuel tank andthe miles per gallons the automobile can be driven. The program outputs the numberof miles the automobile can be driven without refueling.A certain CS professor gives 100-point exams that are graded on the scale 90-100:A, 80-89:B, 70-79:C, 60-69:D, <60:F. Write a program that ac-cepts an exam score as input and prints out the corresponding grade.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."