Write a PHP script that would accept an integer amount in peso and output the smallest bills and coins
Q: In this scenario, two friends are eating dinner at a restaurant. The bill comes in the amount of…
A: ALGORITHM / STEPS: Initialising the bill variable with 47.28 Finding the tip (i.e 15% of the…
Q: Q3: what is the output of code,and convert it the to if _else.x=8,y=D4 cin>>x; cin>>y; cin>>ch:…
A: According to the Question below the Complete Solution: Program Output:
Q: Create a DFA or NFA over the alphabet E - {0, 1} that accepts the string w iff (no(w) + 3n1 ()) mod…
A: The set of all strings accepted by an NFA is the language the NFA accepts. This language is a…
Q: 1- What is the output of the following script? X = [14 7; 2 5 8; 3 6 9] , Y =X(end : -1:1) *
A: X is a two dimensional matrix and it's end element is 9
Q: Write a shell script to check if a number is even or odd, if number is even calculate factorial of a…
A: read -p "Enter a number : " n if [ `expr $n % 2` -eq 0 ] then f=1 t=$n;…
Q: Write a php code to print a string on the console. You can assume any string.
A: check the step 2 for solution
Q: 1. Write a new subroutine in Armv7 to convert the first and last letter of myString1 to lower-case…
A: string copy function : _asm void my_strcpy(const char *src, char *dst){ loop LDRB r2, [r0] ;…
Q: Which of the following is a invalid variable in C Language? a. _123XYZ b. XYZ_123 c. 123XYZ d.…
A: Variable naming rules in c : variable name can contain upper case letters , lower case letters,…
Q: Given the law of cosines is c = va² + b² – 2ab cos C for a triangle; write a script that requests…
A: Code: a=input('Enter a: ')b=input('Enter b: ')C=input('Enter C: ')…
Q: Answer the following question using MATLAB la: Write a MATLAB command that calculates 2° – 24 4 62…
A: Bijaya ka account gya rundi khaane . Bijaya bhosadiwala
Q: R17. Print out the header of an e-mail message you have recently received. How many Received: header…
A: GIVEN:
Q: Which of the following is a FALSE statement? O High level languages are easy to understand O Python…
A: An equivalent program in a high-level language can be less efficient and use more memory. so third…
Q: QI. Write a script to ask the user to input the coefficients of the quadratic equation…
A: Answering first question as per the guidelines. The problem is based on the basics of polynomials in…
Q: Given the law of cosines is c = va? + b² – 2ab cos C for a triangle; write a script that requests…
A: Given The given answer is below. Matlab: Matlab stands for Matrix Laboratory. It is used to perform…
Q: Philippine currency is broken down into 1000, 500, 100, 50, 20, 10, 5 and 1 peso coin. Write a PHP…
A: PHP short form of hypertext preprocessor is a scripting language used in web development…
Q: 2. Write a PHP script that rounds off the number 1.65 to 1.7 and displays the value 1.65 both before…
A: Write a PHP script that rounds off the number 1.65 to 1.7 and displays the value 1.65 both before…
Q: Write a simple code condition that detects visitors' country then redirect it to https://google.com…
A: Required: Write a simple code condition that detects visitors' country then redirect it to…
Q: 21) Write a PHP program to find the sum of all natural numbers which are multiple of 7 in the range…
A: <?php//this method finds and returns//sum of all natural numbers which are multiple of 7 in the…
Q: 5. Which of the following is the negation of p Aq? ie. "(pA q) = ? a. "qVp b. "p Vq c. pA q
A: p ∩p q ∩q p∩q ¬(p∩q) ∩p ∪ ∩q 0 1 0 1 0 1 1 0 1 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 0 1 0 0
Q: PYTHON!!! Write a script that inputs a line of encrypted text and a distance value and outputs…
A: # Input the encrypted text and the distanceenc = input('Enter the coded text: ')dis =…
Q: Philippine currency is broken down into 1000, 500, 100, 50, 20, 10, 5 and 1 peso coin. Write a PHP…
A: PHP code is given below
Q: While working in vim, with the cursor positioned on the first letter of a word, you give the command…
A: Actually, given information is
Q: Which is the correct syntax for converting the following expression into C language? Va + a? k a.…
A: Correct Option: a. K=(sqrt(a) + pow(x,2))/b
Q: Which of the following sentences is incorrect concerning HTTP?
A: Q:Which of following is incorrect regarding HTTP?
Q: By the end of this lab, you will have acquired a better understanding of SMTP protocol. You will…
A: 1) # Send MAIL FROM command and print server response mailFrom = "MAIL FROM: <example12 (at the…
Q: Which of the following languages can be accepted by DPDA? a) Strings ending with a particular…
A: Given data is
Q: Which is the correct syntax for converting the following expression into C language? a.…
A: Given: Syntax of converting expression in C language.
Q: MAIN MENU ENTER YOUR NAME: [John Smith MAIN DISH: ADOBO - P30.00 CHOPSUY - P25.00 BEEF STEAK -…
A: It is defined as a server side scripting language. that is used to develop Static websites or…
Q: Using Javascript and HTML: Write a script that calculates the product of the odd integers from 1 to…
A: <!DOCTYPE html><html><head><title>calculation the product of the odd…
Q: Which of the following regular expressions defines a language over {A,B} containing every string…
A: A grammar is said to be deterministic if we can generate all the possible strings in the language…
Q: Write a PHP script to read input a string str and a positive integer n in the range [1,10] from the…
A: - We need to code the string concatenation n times in php.
Q: write a php script that let the user to enter any amount of money and clasiffies it into its…
A: <?php// PHP program to accept an amount// and count number of notes // function to count and//…
Q: Write a VB program that will accept input from the user (name and section). Display your name and…
A: Algorithm:1.get inputs from the user that is name using Console.WriteLine 2.create a string…
Q: Develop versions of stdin() and stdout() for TOY.java that simulate punched paper tape: for each…
A: Compilation: javac-introcs TOY.java * Execution: java-introcs TOY [--verbose] filename.toy *…
Q: Write a shell script to check if a number is even or odd, if number is even calculate factorial of a…
A:
Q: Given the law of sines a = sinB bsinA for a triangle; write a script that requests for user input on…
A: Code: b=input('Enter b: ')A=input('Enter A: ')B=input('Enter B: ')…
Q: By the end of this lab, you will have acquired a better understanding of SMTP protocol. You will…
A: Actually, python is a easiest programming language. It is a dynamically typed programming language.
Q: hilippine currency is broken down into 1000, 500, 100, 50, 20, 10, 5 and 1 peso coin. Write a PHP…
A: I have given PHP script to count currency below.
Q: Write a shell script to check if a number is even or odd, if number is even calculate factorial of a…
A: The solution for the above-given question is given below:
Q: In the right triangle shown a = 17 cm and c = 50 cm. Define a and cas variables, and then: 9. a a)…
A:
Q: Given: AlphabetY= {0,1} and Language L3 = {w e {0, 1}* ||w|=3} %3D Determine: L4 = Complement of L3…
A: Here we write string which follow the given language L4:…
Q: Create a script that displays variable x3's information.
A: Intro Algorithm: Initialize the variable x3 to a value Print the value of the variable x3 Print…
Q: Create a script called "squarefootage.sh" that takes two random numbers (parameters] provided by the…
A:
Q: To display message from Toast which one from the following is correct…
A: Answer : Option 2 : Toast.makeText(MainActivity.this,"finalexam",Tost.LENGTH_SHORT).show();
Q: 1. Go to https://imsdb.com and find any movie script of your choice. 2. Copy one or two paragraphs…
A:
Q: Which is the correct syntax for converting the following expression into C language? a.…
A: The correct option is "b" i.e., k=(sqrt(a)+pow(x,2))/b.
Q: e) Write a PHP program in which the user enters the given mass m and the Molar mass M and then the…
A: Program Plan: Input mass of the element from the user. Input molar mass of the element from the…
Q: Write a PHP script demonstrating the use of regular expressions in server side validations . Write…
A: Answer :
Q: Make a JavaScript program that will ask for a letter (A-J) then use the switch statement to display…
A: Take the input Input range is A-J. Based on input print the corresponding country.
Philippine currency is broken down into 1000, 500, 100, 50, 20, 10, 5 and 1 peso coin. Write a PHP script that would accept an integer amount in peso and output the smallest bills and coins that would add up to that amount. Output the result using input boxes and marked then as read-only.
Step by step
Solved in 2 steps with 1 images
- What does the below PS script achieve? $featureLogPath = "c:\poshlog\featurelog.txt" start-job -Name addFeature -ScriptBlock { Add-WindowsFeature -Name "ad-domain-services" -IncludeAllSubFeature -IncludeManagementTools Add-WindowsFeature -Name "dns" -IncludeAllSubFeature - IncludeManagementTools Add-WindowsFeature -Name "gpmc" - IncludeAllSubFeature -IncludeManagementTools } Wait-Job -Name addFeature Get-WindowsFeature | Where installed >> $featureLogPathThe delivery drones have a internal reporting and logging system thatrecords events and issues during flights. These logfiles contain the last 1000events/messages as well as their status codes.The Logfile FormatBy default, the logfiles are all called ‘logfile.txt’. Each logfile is exactly 1000 lineslong.Each entry in the file consists of 4 fields:1. a line number (starting at 0)2. a POSIX timestamp3. a message/event type4. an event descriptionEach field (line number, timestamp etc.) is separated by a space, except for thedescription which ends with a full stop.Log events come in three different types: NOTIFY, WARNING, and ERROR. Task 1: Display Because the logfiles are so big, we would only like to display a certain number oflines at a time. We prompt the user to choose start and end line numbers andprint all the lines from start to end (inclusive).The input constraints are as follows: 0 start end 999You can safely assume that the inputs will fall within that…Load the diamonds.csv file, and make 80% of the data in the order of the data as the training data.Average the price of the top 100 data by price. https://1drv.ms/u/s!ArouXkp1zam8g278gqoGxGBsu8W8?e=dyY60S This is the diamonds.csv file answer : ? executable code : ? Using jupyter notebook
- omplete this javascript file according to the individual instructionsgiven in the comments. *** DO NOT CHANGE any of the code that you are not instructed to. */ ////////////////////////// NOTE: Use the API endpoints available at// https://jsonplaceholder.typicode.com/// to get the data required in these exercises.// HINT: Read the documented Resources and Routes.// Also the guide:// https://jsonplaceholder.typicode.com/guide//////////////////////// Create a function named "getUser".// This function needs to accept a "userID"// parameter.// Use Fetch with Async/Await to request// the data for the requested user.// The function should return JSON data.Please, explain. Thank you! Examine the following code. function getData() { var url = "ajaxdata/citStudents.txt"; var request = new XMLHttpRequest(); request.open("GET", url); request.onreadystatechange = function() { if (request.readyState == 4 && request.status == 200) { alert(request.responseText); } }; request.send(null); } What does it mean if the condition (request.readyState == 4 && request.status == 200) evaluates as true? it means there were was an HTTP error and that the data will not be returned to the browser. it means there were no http errors and that the data has been returned to the browser. it means the request has been sent and data will be back in 200 milliseconds or less.I need help explaining each and every line of the code functionality ========================================================== export const updatePublicProfileApi = async ( token, bio, city, country, headline, picture ) => { let response = frameResponse(); try { const url = `${API_BASE_URL}/user/update/profile`; const apiResponse = await axios.post( url, { bio, city, country, headline, picture, }, { headers: { Authorization: frameToken(token) } } ); if (apiResponse.status === 200) { response = frameResponse(1, apiResponse.data); } } catch (err) { if (err.response) { response = frameResponse(0, err.response.data.message); } console.log(err); } finally { return response; } };
- Constructing a csv table A segment below shows a single video clip of index.html. Write a bash script in sir lives to construct a csy table that lists all clips of index.html with five columns: user, views, clip duration, upload time, clip title. Use the following commands only: grep, pipe, while, read, expr, echo, and paste. please Do not use any other commands. Follow the format below to write a bash script in six lines: 1 line for extracting user and saving to user.txt 1 line for extracting views and saving to views.tst I linc for extracting clip duration saving to duration.txt 1 line for extracting upload time saving to upload-time.ist 1 line for extracting clip title saving to titles.txt 1 line for pasting five txt files to build a cs table called tbl.csv please do Upload a shell script file. sample clip of index.html .. s/diva«div class-"yt-lockup-content"> «h3 class-"yt-lockup-title "> <a href-"/ watch?v=04GH2czFGvw" class=" yt-ui-ellipsis yt-ui-ellipsis-2…I've wrote a script to find the top three features for a random forest, but it is not work.please assist to fix the below code. #Import scikit-learn dataset libraryfrom sklearn import datasets#Load datasetiris = datasets.load_iris()# Creating a DataFrame of given iris dataset.import pandas as pdimport numpy as npdata=pd.DataFrame({'sepal length':iris.data[:,0],'sepal width':iris.data[:,1],'petal length':iris.data[:,2],'petal width':iris.data[:,3],'species':iris.target})iris['target_names']print(data.head())# Import train_test_split functionfrom sklearn.model_selection import train_test_splitX=data[['sepal length', 'sepal width', 'petal length', 'petal width']] # Featuresy=data['species'] # Labels# Split dataset into training set and test setX_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3)#Import Random Forest Modelfrom sklearn.ensemble import RandomForestClassifier#Create a Gaussian Classifierrf=RandomForestClassifier(n_estimators=100)#Train the model using the…I am a newbie to python. I am working on a CSV file where it has over a million records. In the data, every Location has a unique ID (SiteID). I want to filter for and remove any records where there is no value or mismatch between SiteID and Location in my CSV file. (Note: This script should print the lines number and mismatch field values for each record.)lines = []count = 0 # read linewith open(r"air-quality-data-continuous.csv",'r') as fp: # read an store all lines into list lines = fp.readlines() print(str(len(lines)) + 'lines in input file') with open(r"crop.csv", 'w') as fp: fp.write(lines.pop(0)) #iterate each line for number, line in enumerate(lines): if (line[4] == 'NaN'): print('Empty Site ID found in line:' + str(number)) continue if(str(line[4]) != line[17]): fp.write(line) count +=1 print(str(count + 1) + 'lines written to filter.csv') print(str(count + 1) +…
- files for the work: https://mega.nz/file/AEJQFZIT#IKKIb5DD9h-5fHiWzEAIg8Lm60syggKnAwL1fqQQ168 Therefore, you should have print statements only where it is explicitly mentioned in the assignment. If you have additional print statements, make sure they are all converted to comments before you submit the assignment. Page 4 of 12 Assignment # 4 Due: Nov. 27th 11:00 PM 1. Text File Format Download the zipped file Files_for_A4 from Brightspace. When you will extract this zipped file you should find the following text files in the folder. The sample text files (datafile) are aTaleOfTwoCities.txt, harry.txt, harryPotter.txt, and invisibleMan.txt. You may assume that the words of the text files are separated by spaces (* ') and newline characters ( *\n'). You will be using these text files to do the analysis. There are two additional files (wordfile) named positivewords.txt and negativewords.txt; each of these files contains a sequence of words (one word per line) and these words will be…6a. Configure an alert message to pop up using Javascript when the page is displayed in the browser. Edit the body tag as follows: <body onload="alert ('Today only-10% off on a weekend- coupon code ZenTen');"> . The onload event handler in this case pops up an alert message. b. Add a script block to the head section as follows: <script> function validateForm () { if (document.forms [0]. myEmail. value== "") { (alert (Pleade enter an e-mail address."); return false // end if return true; } end function validateForm </script> Many thanks for your time! .I need help creating a delete feed create a new async function called deleteFeedApi which takes in the following parameters: token, feedId. In your src/util/ApiUtil.js file, add code to use Axios and call the delete feed request api in deleteFeedApi function: The code should make a DELETE request to the API endpoint ${API_BASE_URL}/feeds/${feedId} . For The Authorization header, set the value of frameToken(token) where token is the token parameter passed to the function. If the request is successful and the status code is 200, update the response and indicate success using frameResponse(1). If there is an error, execute the catch block. If there is a response available in the error object, update the response with the error message. If there is no response available, the error should be logged to the console. Finally, return the response to the function. In src/pages/App/MyFeeds.js, pass a prop loadOnDelete={getMyFeeds} in FeedCard component under your MyFeeds…