The Land Transportation Franchising and Regulatory Board wanted to implement a new jeepney fare matrix. The commuter will pay based on the number of kilometers travelled. A minimum fare of 9.00 pesos within the first 5 kilometers then plus .75 cents for the succeeding kilometers. Create the conditional statement for the fare computation.
Q: Analyze the code below: bscs = "The final exam in PROG 1" s1 = bscs [4:14] s2 = bscs [10:14] +…
A: In Your Code
Q: Give example of scenarios wherein casting a variable would be very helpful. Explain why.
A: Answer: Typecasting, also known as type translation, is a technique for converting one data type to…
Q: You and your friends decided to hold a “Secret Santa” gift exchange, where each person buys a gift…
A: Answer: I have given answered in the handwritten format and also I have explained this question.
Q: Based only on the structure of the Bayes' Net given in Fig. Q6, circle all of the following…
A: According to the information given:- We have to find out the correct option on the basic of Bayes…
Q: A teacher decided to sign students' papers with letters according to their degrees out of 100 if the…
A: design decision table
Q: Write a form algorithm for the following problem with Condition 1 using Round Model, where a round…
A: Given Write a form algorithm for the following problem with Condition 1 using Round Model, where a…
Q: 12. Consider this excel sheet to write the accurate function with full syntax that counts how many…
A: Explanation: One can use COUNTIFS to count the data based on criteria. The COUNTIFS function use…
Q: A staff number of a BigHit company is composed of 2 non-vowels uppercase alphabets and 3 digit…
A: - We need to have the total combination for the desired result. - Number of letters required :- 5…
Q: Design a project to calculate Xt, where Xt is to be calculated either Xt- xI, or Xt= X2, or…
A: The answer is TRUE
Q: Q.5/ Use the case construct to do the following where n has been declared as an integer and x as a…
A: We will use case construct in Java language to solve the given problem.
Q: Exercise 3: 1. Set the value of 'language' to the language spoken where you live (some countries…
A: Answer: Exercise 3: 1. I choose two languages native and English. The I storing the two values to…
Q: What sentence correctly describes the relationship between a person and a hometown?
A: hometown is an individual’s place of birth, childhood home, or place of main residence while town is…
Q: [thirteenth question]
A: Given bscs = "The final exam in PROG 1" ------------------------------------- s1 = bscs[4:14]…
Q: Every patient has a primary physician. Every doctor has at least one patient. Each pharmacy sells…
A: The different type of entity sets are: • Company: this table holds information related to the…
Q: QI\A) A paint company is trying to recycle unpopular paint colours by mixing them together to create…
A: MATLAB CODE IN BELOW IMAGES
Q: In a contrapositive statement, a user implements a line mentioning values with a correlation of Q ->…
A: Solution: In the contrapositiveof the condition statement Q→P is the condition statement -P→-Q is…
Q: 5. Suppose you have a set of proposed activities along with start time a; and finish time f, where 0…
A: * This question is based on greedy algorithm * consider this table as a list containing start time(…
Q: Python help: Write a program to accept the food expenses of 3 Guests (one at a time). Using…
A: Python used to answer this question
Q: Create a spreadsheet with the "if" function that solves the following: If F(t) = 40.0 then the text…
A: The given problem is to be solved in Excel formula format where the constant value and function…
Q: Translate the following statements to English. Be as precise as possible. The domain is all…
A: Quantifiers are terms that refer to quantities like "some" or "all" which denote the number of…
Q: Exercise 2.9 modified: Eneros Inc. is buying a new machine for $450,000. The life of the machine is…
A: Answer : Loan taken Amount 450,000.00 Period for which…
Q: Given the following: Group A (Tom 40, Dave 67) Group B (Jade 30, Molly 25) Group C (Max 50, Comfort…
A: Given the following: Group A (Tom 40, Dave 67) Group B (Jade 30, Molly 25) Group C (Max 50, Comfort…
Q: Main Street Bank is offering an annual interest rate discount based on the client’s credit score.…
A: // PaymentSchedule.java import java.util.Scanner; public class PaymentSchedule { public static void…
Q: For the course SWE204, the students have to pass both continuous assessment that is 40% and…
A: The program is written in Java. Please find the source code and output in the following steps.
Q: Write the sentence in symbolic form. Use v, p, and t as defined below. v: "I will take a vacation."…
A: Given, v: "I will take a vacation." p: "I get the promotion." t: "I will be transferred." We need to…
Q: OBLEM 1 -4, await statement - Exercise 2.13 (a), (b), (c) S;: x=x+ y; S2: y = x - y; S3: X=X-y;…
A: We need to find final possible values of x and y.
Q: The standard deviation measures the spread of the data about the mean value. It is useful in…
A: #include <iostream> using namespace std; int main(){ int…
Q: . Given a situation where Alex and Andrew share a bank account with Current Balance RM600 for their…
A: A race condition will happen when the shared region (critical region) was used parallelly by…
Q: Write a simplified sinmulation of Ping-Pong according to the following rules: • Ranks 0 and 1…
A: The answer is
Q: Q4) calculate the percentage value the grade of student in mathematic department, then Write a…
A: Objective: A script should be written to compute the percentage value of a given set of grades.…
Q: A = payment Amount per period P = initial Principal (loan amount) r= interest rate per period n=…
A: According to the information given:- you need the function to implement the instruction and make…
Q: Consider an online auction system where the current highest bid for each item must be maintained. A…
A:
Q: Q7:The electricity accounts of residents in a very small town are calculated as follows: > if 500…
A: % Script that calculates the electricity bill % Input vectoripVec = [200, 500, 700, 1000, 1500]; %…
Q: Suppose you are an astrologer and you are predicting the zodiac sign of the customer using month and…
A: #include <stdio.h>#include <string.h> int main(){ // declare variables int…
Q: The Injury Severity Score (ISS) is a medical score to assess trauma severity. Data on ISS and…
A: The, code has given below:
Q: The Electricity Distribution Company has recently adopted new tariffs for residential electricity…
A:
Q: A university has implemented a new grade system for its students. The new grading system calculates…
A: According to the information given:- We have to follow the instruction mention in order to get…
Q: In the language R: Which of the following statements is NOT correct about picking colors for your…
A: The function scale_fill_manual() allows us to define different colors for their different values but…
Q: Apply the Coding phase on the following problem: To find the total marks of a student in an…
A: the program will first take marks of proposal ,task1,task2,task3,task4 and calculates the total…
Q: Suppose you are an astrologer and you are predicting the zodiac sign of the customer using month and…
A: Code: #include <stdio.h>#include <string.h> int main(){ // declare variables…
Q: Using pseudo code (java), provide an algorithm for the use cases below; Apply for a loan
A: Requirements for loan (I) user account . (II) check balance criteria like yearly 1 lakh minimum.…
Q: Construct a truth table for (p ∨ ¬ q) ∨ (¬ p ∧ q) Use the truth table that you constructed in part 1…
A:
Q: The ISBN of a book is a unique 13-digit code', also known as ISBN-13, that encodes information about…
A: Given Using ISBN: 9780756649791 The, answer has given below:
Q: Make a simple checkbook balancer that would input a sequence of deposits (positive floating- point…
A: Steps to be followed: Declare array named price of size 100 to hold amount entered by user. Declare…
Q: The following statement tells the decomposition of the people survived a.k.a column Survived as of 0…
A: df_sex = data1_training_data //You take your dataset as input. I don't know your dataset name…
Q: e and determine whether it is eligible for casting his or her vote
A: Code: #include <stdio.h>void main(){ int vote_age; printf("Input the age of the candidate :…
Q: The Injury Severity Score (ISS) is a medical score to assess trauma severity. Data on ISS and…
A: Actually, program is a executable software that runs on a computer.
Q: How can I use the IF function in a monthly budget excel spreadsheet? b) Is there a way to use the IF…
A: How can I use the IF function in a monthly budget excel spreadsheet? IF statement has the following…
The Land Transportation Franchising and
Regulatory Board wanted to implement a new
jeepney fare matrix. The commuter will pay based
on the number of kilometers travelled. A minimum
fare of 9.00 pesos within the first 5 kilometers then
plus .75 cents for the succeeding kilometers. Create
the conditional statement for the fare computation.
Step by step
Solved in 2 steps
- The Land Transportation Franchising andRegulatory Board wanted to implement a newjeepney fare matrix. The commuter will pay basedon the number of kilometers travelled. A minimumfare of 9.00 pesos within the first 5 kilometers thenplus .75 cents for the succeeding kilometers. Createthe conditional statement for the fare computation using python.Given a square matrix of size ?×?�×� that only contains integers, compute the sum of the two diagonals. If the dimension of the square matrix is odd, make sure that you are not double-counting the value at the centre of the matrix. Figure 2: Sum of diagonals. Function specifications Arguments: matrix (numpy.ndarray) →→ input matrix to be used for computing the sum. Return: sum (int) →→ return the sum of the two diagonals. Expected outputs: matrix = np.array([[7, 0, 8], [6, 9, 1], [3, 8, 4]]) sum_of_diagonals(matrix)==31 matrix = np.array([[4, 1, 1, 1], [1, 3, 8, 0], [0, 8, 5, 7], [1, 6, 1, 3]]) sum_of_diagonals(matrix)==33You are located in the southwest corner on a matrix of m x n, M>1 and n>1.During your trip, each move will only allow you to go to a neighboring North cell or a neighboring East Cellpermission granted. Starting from the southwest corner, where your goal is your starting position, to the northeast cornerreach. in a matrix of M x n, where the user enters the values m and n, from the southwest (GB) Corner to the NortheastHow many ways to reach the corner(KD) using a RECURSIVE (RECURSIVE) functionwrite a C program that finds it. Your program should output 2, 3, 6 respectively in the following matrices.
- Imagine Circle Country as an infinite plane. You are given int[] x and int[] y and int[] r, where (x[i],y[i]) are the coordinates of the i-th district's center and r[i] is its radius. Zara is currently at point (x1,y1) and she needs to get to point (x2,y2). Neither of these points lies on a district border. Return the minimal number of district borders she must cross to get to her destination. Constraints x will contain between 1 and 50 elements, inclusive. x, y and r will each contain the same number of elements. Each element of x and y will be between -1000 and 1000, inclusive. Each element of r will be between 1 and 1000, inclusive. x1, y1, x2 and y2 will be between -1000 and 1000, inclusive. No two circumferences will have common points. The points (x1,y1) and (x2,y2) will not lie on any of the circumferences.Using C. This question deals with processing the semi-annual sales for a drug store. The drug storesells four types of items, namely Cosmetics, Drugs, Stationery, and Confectionery. You havebeen presented with the following set of data which shows sales for the January to June periodfor the various item types. Item Type January February March April May June Cosmetics 8723.19 7397.21 5982.15 8319.54 7298.31 7490.02 Drugs 9384.12 9740.98 8940.34 8876.34 7093.23 9830.11 Stationery 938.25 834.98 976.29 994.56 912.05 849.12 Confectionery 1832.65 972.34 983.65 1289.28 1197.30 989.41 Your job is to develop a program which accepts as inputs the above sales figures and whichdetermines the total sales for the six month period in each category as well as average monthlysales in each category. In addition, your program should also determine the total sales for eachmonth. Your program should produce as output a report with the following format:Correct answer will be upvoted else downvoted. table can be addressed as a square shape with stature h and width w, isolated into h×w cells. Let (i,j) signify the cell in the I-th line and the j-th segment of the square shape (1≤i≤h; 1≤j≤w). Into every cell of the table you can either put a plate or keep it unfilled. As every visitor must be situated close to their plate, you can just put plates on the edge of the table — into the first or the last line of the square shape, or into the first or the last segment. Officially, for every cell (i,j) you put a plate into, no less than one of the accompanying conditions should be fulfilled: i=1, i=h, j=1, j=w. To make the visitors agreeable, no two plates should be placed into cells that have a typical side or corner. All in all, if cell (i,j) contains a plate, you can't place plates into cells (i−1,j), (i,j−1), (i+1,j), (i,j+1), (i−1,j−1), (i−1,j+1), (i+1,j−1), (i+1,j+1). Put whatever number plates on the table as could be…
- Consider an online auction system where the current highest bid for each item must be maintained. A person who wishes to bid on an item calls the bid(amount) function, which compares the amount being bid to the current highest bid. If the amount exceeds the current highest bid, the highest bid is set to the new amount. This is illustrated below:void bid(double amount) {if (amount > highestBid)highestBid = amount;} Describe how a race condition is possible in this situation and what might be done to prevent the race condition from occurring. Based on the solution you describe, rewrite the bid function that can solve the problem.How do I create an adjacency matrix in C given the following file containing names of cities and distance between each other? thanks. Lisbon Madrid 339 Naples Rome 134 Hamburg Copenhagen 180 Hamburg Berlin 182 Berlin Warsaw 345 Amsterdam Hamburg 338 Amsterdam Brussels 164 Berlin Prague 219 Prague Warsaw 479 Prague Vienna 185 Munich Prague 174 Vienna Warsaw 464 Vienna Budapest 155 Warsaw Budapest 394 Budapest Belgrade 263 Vienna Belgrade 501 Budapest Trieste 384 Trieste Vienna 317 Trieste Belgrade 403 Munich Vienna 280 Munich Rome 582 Genoa Trieste 361 Genoa Rome 328 Trieste Rome 442 Paris Genoa 629 Genoa Bern 304 Genoa Brussels 740 Bern Brussels 497 Amsterdam Bern 558 Amsterdam Munich 526 Bern Munich 311 Bern Trieste 489 Bern Madrid 1104 Madrid Genoa 951 Madrid Paris 805 Paris Brussels 225hich of the following statements about Disability adjusted life years (DALYs) and Years of Life Lost (YLLs) due to a specfic disease in a specific location and year, is/are correct? a. To compute the DALYs, you will only need a list of all premature deaths in that location over the year, that were caused by the disease, age at death, and no further information b. To compute the YLLs, you will only need a list of all premature deaths in that location over the year, that were caused by the disease, their age at death, and no further information c. YLLs is expected to be a larger number than DALYs d. To compute YLLs, you will also need to know the period of time (in years) that people were not completely healthy due to the specific disease
- Ma1. 1) On a Bank Reconciliation, if our check was written for $492.83 and was processed as such by the bank, but had been shown in our company's accounting records as a check for $498.23, we would code this as a C+ item.T rue or False 2) In the Bottom-Up method of calculating required revenue, we treat the amount of desired net income (once we have calculated how much it should be) as:a. a variable cost. b. a step cost. c. unnecessary for the calculation. d. a fixed item. e. none of the above. 3) A large F variance from budget in a revenue item should be investigated. True or False 4) If a Bank Reconciliation cannot be made to balance, then something unusual has occurred and must be investigated. True or False 5) In preparing a bank reconciliation, we will code an NSF check (using the fabulous Bessner system) as: a. a C+ item. b. a C- item. c. a B+ item. d. a B- item. e. none of the above. 6) If a company wants to end up with an AFTER-TAX profit of $25,000, and its tax rate is 38%,…Please convert the CFG below to CNF. S -> NP VP NP -> 'I' | 'Texas' | 'South Padre' | 'hotel' | 'beach' | 'view' | 'sunrise' | 'vacation' | 'boat' | 'water' | 'trip' | 'waves' | 'speed' VP -> 'want' 'to' V | 'like' NP | 'Go' 'to' NP | 'Get' 'a' NP | 'On' 'the' NP | 'Love' 'the' NP | 'Book' 'a' NP | 'Need' 'this' NP | 'Prefer' 'the' NP | 'enjoy' NP V -> 'travel' | 'swim' | 'be' The CFG generates the following sentences: I want to travel I like Texas I want to swim Go to South Padre Get a hotel On the beach I want a view Love the sunrise A nice vacation Book a boat I love water Need this trip Waves are high Prefer the boat I enjoy speedVisualize the gdpPercap of different continent in different year and do the same thing for lifeExp different continent in different year. Using this two graphs, comment how the income and life expectancy changes/transforms in different continents in different years. Find the code in Rstudio to complete the following question.