Write a program that asks for the name of a long - distance runner and the dates and times (in minutes) of the runner's three best races. It should then report, in order of fastest time (best first), the date on which each race was run and its time. Use c++ visual studios
Q: ABC company is a car dealership that operates a service facility. A salesperson may sell many cars,…
A: ERD stands for Entity Relationship Diagram. ERD is a graphical representation which is used to…
Q: Work with the ALL data set in the ALL package. ate a frequency table and pie chart for the…
A: Using the variable ALLSBT, we will be able to focus on the illness type and stage of leukemia…
Q: Exercise 02 Let consider the row vector k-1, 2, 3, 4, 5,6 1 Use the for-loop to display computed…
A: Here are the algorithms for both the loop-based and vectorized versions:Loop-based…
Q: Write a program that stores the maximum of three values. The values are stored in X19, X20 and X21.…
A: Here is a Python program that finds the maximum of three values and stores the result in another…
Q: Create a Java program in BlueJ called Intro. Write statements that will output: Hello, "put your…
A: The Java program named Intro takes user input for their name, then prints a greeting statement with…
Q: The database in the store where you work is having trouble with the transactions. The database…
A: Database : It is an organized collection of structured information, or data, typically stored…
Q: Alert dont submit AI generated answer.
A: def calculate_average_rainfall(): """ Calculates the average rainfall per month over a period of…
Q: Assume that we have a hash table of 10 slots, and we use the hash function h(k) = k mod 10. Show the…
A: Linеar probing is a simple collision rеsolution tеchniquе that works by insеrting thе kеy into thе…
Q: Program the Turing Machine simulator to recognize the language F of Fibonacci numbers. That is, if…
A: Turing Machine Code (TMC) that recognizes the language of Fibonacci numbers:
Q: Given the array BWT[1:n], write the pseudocode to compute the array rank[1:n] in O(n ) time,…
A: Particularly in bzip2, the Burrows-Wheeler Transform (BWT) is essential for data compression…
Q: Question One Why is it important to match the data to the needs of a specific predictive algorithm…
A: Provided below are some of the reasons for the importance of matching the data to the needs of a…
Q: ASSUME S, T R are stacks. A is an array [1..14] of char; THE INPUT IS "datastructures". The MAXSTACK…
A: We examine the behavior of data structures, in particular stacks, using an example that makes use of…
Q: Physical Address Given logical address of 27900 bytes, translate to physical address given a page…
A: Here is the given information and calculate the physical address given the logical address and page…
Q: Code in Java: Create a class called Name that represents a person's name. The class should have…
A: The problem this code addresses is representing a person's name in a structured and organized way…
Q: Alert dont submit AI generated answer.
A: The objective of the question is to construct a pushdown automaton (PDA) for the given grammar in…
Q: This challenge activity consists of a series of auto-generated, randomized questions allowing…
A: You are provided with a code snippet that reads a value for num_limes using int(input()) and prints…
Q: Job scheduling: Consider the problem of scheduling n jobs of known durations t1, t2, . . ., tn for…
A: The Greedy Algorithm for Job Scheduling is a strategy employed to optimize the execution of a set of…
Q: Use a recursion tree to determine a good asymptotic upper bound on the recurrence T(n) = 3T(n/2) +…
A: A recursion tree illustrates the recursive calls and their relationships in a recursive algorithm.…
Q: Problem # 2 Develop a Component Diagram and Deployment Diagram for the following system: The Global…
A: In this question we have to understand about the given hopital scenario for patient data sharing and…
Q: Alert dont submit AI generated answer.
A: In this questrion we have to deisgn Turing Machine for the given languages:a) {w | w contains an…
Q: You collect height and weight information of all the 100 participants in the PRML class. But instead…
A: PCA is a dimensionality reduction technique that identifies the most important directions (principal…
Q: What is the printout for the first statement in the main method? public class Foo { static int y =…
A: We are given a program in Java where we have a main method and a foo() method. We are calling the…
Q: Design a logic circuit using an RCA, MUX and one logic gate (you need to figure out which gate) that…
A: To design a logic circuit that meets the given requirements, we can break down the problem into…
Q: Alert dont submit AI generated answer.
A: The objective of the question is to create an Entity-Relationship (ER) Diagram for the Activity…
Q: Make a webpage that shows a recipe for any food of your choosing. 1. You should have separate head…
A: For user engagement and information delivery, a webpage must be visually appealing and useful. This…
Q: Write a function called GenMatBorder that takes an array of numbers and produces an array called…
A: This function takes an array arr as input, converts it to a numpy array, and then creates a copy of…
Q: Suppose the array begins with 0, followed by the remaining even integers in descending order,…
A: Insertion sort is an in-place sorting algorithm that maintains two lists. The left part of the list…
Q: Identify the Floyd-Warshall all pairs shortest path matrix for the following graph. A 2 B D -2 -3 C…
A: The graph contains a directed graph with five vertices labeled A, B, C, D, and E. The edges between…
Q: The 802.11 standard protocol used RC4 for its agility and simplicity for encryption and decryption.…
A: RC4 (Rivest Cipher 4) is a widely used symmetric stream cipher algorithm known for its simplicity…
Q: You want to perform a DoS attack against some host with a known IP address. You have become aware…
A: A group of linked computers, gadgets, or systems that exchange information and communicate with one…
Q: Given f(x) = xe* - 1 = 0. Use Newton Raphson method to find the roots. Use 10 iterations maximum,…
A: To solve the equation using the Newton-Raphson method, we need to find the derivative of the…
Q: Let L = {binary strings that contain at least three 0's }. Give a ontext - free grammar that…
A: The task at hand involves defining a CFG for a specific language, denoted as L, which comprises…
Q: Consider the following undirected graph: His h If you traverse the graph using the Breath First…
A: It is the most common search strategy for traversing a tree or graph.This algorithm searches breadth…
Q: Successor's Left Child Professor Smith thinks he has discovered a property of binary search trees…
A: Binary search trees (BSTs) are fundamental data structures used in computer science for efficient…
Q: Which of the following statements is not accurate when working with styles? (Select the correct…
A: 1) A Style refers to a set of formatting characteristics that can be applied to text or other…
Q: Sender(Ahmad) and Receiver(Mohammad) are connected through a communication Link, if Bandwidth of…
A: Here, the task specified in the question is to draw propogation delay diagram of the communication…
Q: Question 1 Consider a camera which is located at (0, 0, 0) in an arbitrary coordinate system and it…
A: Introduction:When working with multiple perspectives of a scene, the epipolar geometry is an…
Q: Problem 3. Implement a combinational circuit with 28-bit inputs a and b, and 3 outputs x, y, and z.…
A: Combinational circuits are fundamental components in digital logic design, where the output is…
Q: What is the shortest weighted path (sum of the weights on the edges has to be minimized) between…
A: In a graph, the shortest weighted path is one that connects two vertices and has the total weights…
Alert dont submit
Step by step
Solved in 3 steps with 2 images
- Note: Please answer in C++ Programming language. During Eid, it is a tradition for every father to give his children money to spend on entertainment. Chef has N coins; denote the value of the coin i by vi. Since today is Eid, Chef gives one coin to each of his two children. He wants the absolute value of the difference between the values of the coins given to the two children to be as small as possible to be as fair as possible. Help the chef by telling him the minimum possible difference between the values of the coins given to the two children. Of course, the chef cannot give the same coin to both children. Possible input 1 3 142 Required Output 1Needs to be done in C# language. Problem 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 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• Hospital medication charges• Charges for hospital services (lab tests, etc.) The program should ask for the following data if the patient was an out-patient: • Charges for hospital services (lab tests, etc.)• Hospital medication charges 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 information. Both functions should return the total charges. Input Validation: Do not accept negative numbers for any data.Create a C++ program that does the ff:
- Write a program in C# that will ask user to input his age and determine if he or she is eligible for opening bank account. Hint (AGE must be greater than 18 for opening bank account)In C# LanguageYou have been given 10 body temperatures of 10 individuals. Write a C# program that reads these body temperatures and calculates the average temperature
- Create a c++ program that asks an employee the following questions: Employee name Employee ID Employee department Number of absences in a month Number of late in a month Let's say that an average employee needs to have 24 days of no late and no absent attendance in a month to earn his/her full salary of 24,000 1 late = 200 pesos deduction 1 absent = 1000 pesos deduction The program would then compute the total salary of the employee based from the information that he/she entered Example output: Please enter your name: Gerard Bautista Please enter your Department: IT Please enter number of lates: 3 Please enter number of absences: 2 Output: Gerard Bautista from IT department has an equivalent of 3 lates and 2 absences. His total earning for the month is 21400.The programming language is C++, write a program base on the given statement. Write a program that reads in the sales expenses of the Short DistanceTelephone Company for the past year and then calculate the profitand the next tax based on the ff. table PROFIT TAX RATE0 – 10000 010001 – 30000 100 + 3% OF THE PROFIT30001 – 50000 200 + 5% OF THE PROFITOVER 50000 300 + 7% OF THE PROFITUse C++ Language Create a program that will determine if a student needs to take a final exam. This decision depends on the course grade average and the student’s attendance. Use the flow chart below for the final exam criteria.
- C++This is a C++ question, not Python or Java Write a program that asks the user for the actual value of a piece of property and thecurrent tax rate for each $100.00 of assessed value. The program should then calculateand display how much annual property tax the homeowner will be charged for his or herproperty. The program should also display the Property Value, the Assessed Value, andthe Tax Rate. Display all monetary values to two decimal places Run your program three times with the data below Property Value: Tax Rate$100,000.00 2.64$200,000.00 2.05$350,000.00 3.10Scenario:USING C# You are tasked with writing a program to process students’end of semester marks. For each student you must enter into your program the student’s id number (an integer), followed by their mark (an integer out of 100) in 4 courses. A student number of 0 indicates the end of the data. A student moves on to the next semester if the average of their 4 courses is at least 60 (greater than or equal to 60). Write a program to read the data and print, for each student: The student number, the marks obtained in each course, final mark of the student (average of all the marks), their final grade (A,B,C,D or F) and whether or not they move on to the next semester. In addition, after all data entry is completed, print The number of students who move on to the next semester and the number who do not. The student with the highest final mark (ignore the possibility of a tie). Grades are calculated as follows: A = 70 and over, B = 60 (inclusive) -70, C = 50(inclusive)-60…