In the range C15:G15, insert a function to calculate the total daily revenue. In the range H11:H15, insert a function to calculate the weekly totals for the seating categories and grand total. What are the functions?
Q: the input parameters or arguments of a function? a. brackets b. quotation marks c. curly braces d.…
A: A function is a block of organized, reusable code that is used to perform a single, related action.…
Q: Which of the following is true about functions with a return value? OOnly strings may be returned…
A: Functions are set of instructions enclosed within curly braces that aims to perform a specific task…
Q: 5.1 Create plots of the following functions from x = a. Y = e b. Y = sin(x) c. Y = ax² + bx + c,…
A: Ans -> (a)X = 0:0.1:10;Y = exp(X);plot(X,Y) title('Exponential Function') xlabel('X')…
Q: Question 4) Write a user defined function called NumSolutions that determines the number of…
A: The function will be a void function as it doesn't return anything Inside the function all the logic…
Q: Write a C++ function to calculate the BMI of a person. (BMI = Mass / Height^2 ) where mass is in kg…
A:
Q: write one line of code ONLY. Given list below: myNums = [-2, 28, 4, -2, 36, 2] Using the built-in…
A: Given: Given list below: myNums = [-2, 28, 4, -2, 36, 2] Using the built-in functions, print the…
Q: Using VBA EXCEL, create a function read two numbers, a and b, and returns to ab. For example, in a…
A: To open VBA , press ALT + F11. In the menu bar, click on INSERT menu and select the PROCEDURE…
Q: Need help to create the question below in Excel vba. Write a function called NextCell that takes a…
A: Public Function NextCell(CellAddress As String) As Boolean NextCell = Range(CellAddress).Offset(0,…
Q: n this program, your task is to calculate average of grades and then display the final grade. Your…
A: According to the Question below the Solution: Output:
Q: In the above program, which option is true for the variable Ic2? A) the variable Ic2 is global in…
A: here, lc2 is declared in main function, so, it is local variable, it is not global variable, But…
Q: Which among the following show a valid use of the Color enumeration as a parameter to the setPixel…
A: In swift Language, enumerations can be introduced by using enum keyword.The values of the enum can…
Q: in cell b14 create a formula without using a function that adds 1 to the value in cell b12 and then…
A: In cell B14 we have to enter the below formula =(1+B$12)*B13 now,copy formula to range from B15 to…
Q: (n) = Number of layers in the wall , (di) = width of each layer , (ki) = thermal conductivity…
A: Answer in step2
Q: In G2:G11, the values should evaluate to the surname and the first character of the first name, with…
A: Answer: Formula:
Q: Write a function named Quotient with 2 Integer parameters (originally from text boxes) and a Double…
A: Write a function named Quotient with 2 Integer parameters (originally from text boxes) and a Double…
Q: The following two functions P1 and P2 that share a variable B with an initial value of 2 execute…
A: Initial value of B is 2. P1() { 1.C=B-1 2.B=2*C } P2() { 3.D=2B 4.B=D-1 }
Q: If the name of the created function is ex1, then you should write in the Script where tspan and…
A: [t,x] = ode45(@fname, tspan, xinit, options) fname is function namr
Q: Which of the following statements about global variables is TRUE? Select one: O a. A global variable…
A: The statement which is true for the global variable is as follows:
Q: For this assignment, you will be creating two functions, alongside a main function: 1) toRadians:…
A: The code is given in step 2.
Q: function in python that calculates an estimate (mean and uncertainty) of the trend in mm/year from…
A: Python is a high-level programming language, that is used to build web applications and also used in…
Q: Q2/ Write brief code to evaluate the following functions: t = 200 when y is below 10,000 = 200 + 0.1…
A: I have provided a brief code in c++ for the given question.
Q: Given the function table wntere the pyrhon cose tht will call the function below with the necessary…
A: def sale(cost,per,isSenior): #check if Senior if(isSenior): #if yes add 5 to…
Q: In cell B15, insert the RATE function to calculate the necessary monthly rate given the NPER,…
A: The given problem is related to functions of Excel application. The requirement is to fill the sheet…
Q: Given list below: myNums = [-2, 28, 4, -2, 36, 2] Using the built-in functions, print the smallest…
A: Below is the required code and sample output:
Q: Which function generates pseudorandom integer? Please extract pseudorandom numbers between 0 to…
A: import random library random.randint() − This function generates a random integer between two…
Q: Below are two functions that do roughly the same thing. If you have to choose one, which function is…
A: This is a problem regarding functions in python. Both the functions are performing the same work but…
Q: 5.1 Create plots of the following functions from x = 0 to 10. a. Y = e b. Y = sin(x) c. Y = ax² + bx…
A: a) b) c)
Q: Which of the following is the correct function call for a swap function? Assume the purpose of swap…
A: The swap() function is a method that is utilized to exchange the values of the two parameters…
Q: Use the calculations provided to create a function which will tell how far the object will travel…
A: Ask the user to enter the velocity. Use the calculations provided for creating function Print the…
Q: Write a C function that accepts the values of the wo sides b, c, and alpha(is the angle (in radian)…
A: /******************************************************************************…
Q: Which of the following is not a build in function? a. message() b. pow() c. ceil() d. sqrt()
A: Which of the following is not a build in function? a. message() b. pow() c. ceil() d. sqrt()
Q: Q3: Using the data structure in Q1, and Q2 write for functions to perform the following: subtract_c…
A: Note: Programming language not mentioned in the question. C++ is chosen as the programming…
Q: Select the statement that is true about a parameter of a function that is passed-by-value. A.…
A: Java is a programming language. It contains extensive libraries (package). It can be used to create…
Q: Which one of the following creates a local variable? Declaring it inside a function without the…
A: In order to create a local variable, we have to declare it inside a function with the var keyword.
Q: Using functions, ask the user for a password that is 8 characters long, must have 2 digits and…
A: Using functions, ask the user for a password that is 8 characters long, must have 2 digits and…
Q: Create the following c functions: - void acceptSubscribers(Subscriber *, int size); // accept all…
A: According to the question, we have to create the c functions for the desired output. Note : we will…
Q: The operator that returns the remainder of a division between A and B A/B A/=B A%B A |= B
A: correct answer is A%B
Q: In G2:G11, the values should evaluate to the surname and the first character of the first name, with…
A: The values in G2:G11 should evaluate the surname and the first character of the first name,…
Q: Write a script that creates and calls a function named fnStudentUnits that calculates the total…
A: Given: Write a script that creates and calls a function named fnStudentUnits that calculates the…
Q: Suppose today is December 14, 2014. Which of the following functions will NOT return 12/14/2014 as a…
A: Dear Student, In excel worksheet =12/14/2014 will be a float number and will not return 12/14/2014…
Q: Click cell C9 and insert a VLOOKUP function that looks up the code in cell B9, compares it to the…
A: EXPLANATION: C9 = VLOOKUP(B9,$B$2:$C$6,2) is the formula for cell C9. From Cells C10 through C54,…
Q: Create a function to find a specific letter in a word? Create a function to find the hypotenuse of a…
A: In the first function, we will search for a character in a string and prints the index In the second…
Q: Create a function, using VBA EXCEL, that receives a sequence of characters larger than 1 and…
A: Required: Create a function, using VBA EXCEL, that receives a sequence of characters larger than 1…
Q: Write a function called power to raise a to the b power and test it to verify the same answer as…
A: Algorithm:- define power(a,b) set sum=1; for(int i=1;i<=b;i++) { sum=sum*a; }…
Q: [Rajah 1] Develop a function definition for the functions below according to the given description:…
A: Required: C code to find BMI. Required code with comments for explanation and screenshot of both…
Q: The area of an arbitrary triangle can be computed using the formulaarea = √(s(s–a)(s–b)(s–c))where…
A: The C++ program will obey the following rubrics:Importing essential header files.Declaring integer…
Q: In cell B14, create a formula without using a function that adds 1 to the value in cell B12 and then…
A: In cell B14 you need to enter the below formula - =(1 + B$12)*B13 Then copy the formula to the range…
Q: You want to count the number of houses in one city. In cell C2, insert the COUNTIF function to count…
A: According to the information given. We have data of houses in the city. and we have to calculate the…
In the range C15:G15, insert a function to calculate the total daily revenue. In the range H11:H15, insert a function to calculate the weekly totals for the seating categories and grand total. |
What are the functions?
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- a code is like this package com.example.ett;import androidx.appcompat.app.AppCompatActivity;import android.view.LayoutInflater;import android.view.View;import java.lang.reflect.Field;import androidx.recyclerview.widget.LinearLayoutManager;import androidx.recyclerview.widget.OrientationHelper;import androidx.recyclerview.widget.RecyclerView;import androidx.recyclerview.widget.StaggeredGridLayoutManager;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import android.widget.TextView;import android.os.Bundle;import.NonNull;import java.util.ArrayList;import java.util.List;public class UniversityAdapter extends RecyclerView.Adapter<UniversityAdapter.ViewHolder> {private List<University> universities;public UniversityAdapter(List<University> universities) {this.universities = universities;}@NonNull@Overridepublic ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {View view =…I WANT THIS PROGRAM IN JAVA LANGUAGE OOP KINDLY USE GUI eShop Create/View/Edit ProfileAdmin account for notifications/viewable informationview itemscontact seller (chatbox)add to cartview cartcheckoutmake paymentsview purchase historyview product viewing historyreminder to checkoutGroup Members Click for more optionsimport android.os.Bundle import android.os.PersistableBundle import android.view.View import android.widget.* import androidx.appcompat.app.AppCompatActivity class TicTacToeActivity : AppCompatActivity(),View.OnClickListener { // TODO (suggested): maintain a reference to a TicTacToe object overridefunonCreate(savedInstanceState:Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_tictactoe) // TODO (suggested): get the player's name, symbol, and the first move choice from the activity's intent; use them to instantiate a TicTacToe game; decide whether the computer should play based on the first move choice // TODO (suggested): get a reference to the TextView "player info" area; update the TextView with the player's name and symbol // TODO (suggested): using a loop and button tags, update their texts and "onClick" listeners to TicTacToeActivity; remember to disable the button if…
- this is the themes xml code activity_main.java package com.example.Appaimport androidx.appcompat.app.AppCompatActivity;import android.os.Bundle;public class MainActivity extends AppCompatActivity {@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);}}--------- <resources xmlns:tools="http://schemas.android.com/tools"><!-- Base application theme. --><style name="Theme.Appa" parent="Theme.AppCompat.DayNight.DarkActionBar"><!-- Primary brand color. --><item name="colorPrimary">#FF0000</item><item name="colorPrimaryVariant">@color/purple_700</item><item name="colorOnPrimary">@color/white</item><!-- Secondary brand color. --><item name="colorSecondary">@color/teal_200</item><item name="colorSecondaryVariant">@color/teal_700</item><item name="colorOnSecondary">@color/black</item><!-- Status bar color.…A web page developed using jQuery includes riddles and their solutions, paragraph elements of the “solution” class that are hidden when the page loads. You want to display the solutions when the user clicks on the “reveal” image element. The following code to display them is correctly written.$("img#reveal").click ( () => { $("p.solution").hide();}) Select one: True Falsepackage com.example.ett;import androidx.appcompat.app.AppCompatActivity;import android.view.LayoutInflater;import android.view.View;import android.support.NonNull;import java.lang.reflect.Field;import androidx.recyclerview.widget.LinearLayoutManager;import androidx.recyclerview.widget.OrientationHelper;import androidx.recyclerview.widget.RecyclerView;import androidx.recyclerview.widget.StaggeredGridLayoutManager;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import android.widget.TextView;import android.os.Bundle;import java.util.ArrayList;import java.util.List;import lombok.NonNull;public class UniversityAdapter extends RecyclerView.Adapter<UniversityAdapter.ViewHolder> {private List<University> universities;public UniversityAdapter(List<University> universities) {this.universities = universities;}@NonNull@Overridepublic ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {View view =…
- WebscrapingV3.py example file for part 2 from urllib.request import urlopenfrom bs4 import BeautifulSoupimport matplotlib.pyplot as pltimport matplotlib.image as mpimimport requestsimport shutilimport sysdef openHtmlFile(htmlfile):f = open(htmlfile, "r")contents = f.read()return BeautifulSoup(contents, 'html.parser')def openHtmlSite(htmlsite):html = urlopen(htmlsite)return BeautifulSoup(html, 'html.parser')soupf = openHtmlFile("index.html") #local fileprint(soupf.prettify())print(soupf.h2)print(soupf.head)print(soupf.li)print("HTML: {0}, name: {1}, text: {2}".format(soupf.h2, soupf.h2.name,soupf.h2.text))print(25*'=-')souph = openHtmlSite('https://climate.nasa.gov/evidence/')print(souph.prettify())print(souph.h2)print(souph.head)print(souph.li)print("HTML: {0}, name: {1}, text: {2}".format(souph.h2, souph.h2.name,souph.h2.text))print(25*'=-')# headers and listsprint(soupf.h2)print(soupf.head)print(soupf.li)print("HTML: {0}, name: {1}, text: {2}".format(soupf.h2,…Instructions This assignment uses the logic from the recent quiz and assignment. You can see some of that code in there.What is different? The sequence of operations, spending and finding money, is totally controllable with buttons.This makes the program very flexible. Update the Code below with the following: Add 2 new event functions: buyTortilla() and addFoundMoney(). Add 2 new buttons that trigger buyTortilla() and addFoundMoney(). STARTER CODE <!DOCTYPE html><html><head><style>p {font-family: arial; font-size: 20px;} </style></head><body> <button onclick='buyApple()'>Purchase Appple</button><button onclick='buyOrange()'>Purchase Orange</button> <!-- This marks space for a paragraph that we can update during the program --><p id="balance"></p> <script>// javascript code begin// Step 1. initialize variables:change=100 // starting balanceapple=10 // price of 1 appleorange=20 // price of 1…package com.example.myapplication;import androidx.appcompat.app.AppCompatActivity;import android.os.Bundle;import android.view.View;import android.widget.Button;import android.widget.ListView;public class PlayerActivity2 extends AppCompatActivity {ListView simpleList;String SerialNo[] = {"1", "2", "3", "4", "5", "6","7","8","9","10"};int flags[] = {R.drawable.image1, R.drawable.image2, R.drawable.image3, R.drawable.image4, R.drawable.image5, R.drawable.image6, R.drawable.image7, R.drawable.image8, R.drawable.image9, R.drawable.image10};String Names[] = {"mmm", "nnn", "aaa.", "bbb", "ccc", "ddd","eee jk"," ijk","Virgil jk","gil jklk"};String Score[] = {"1", "2","3", "5", "4", "3","5","5","5","5"};@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity2);simpleList = (ListView)findViewById(R.id.simpleListView);//ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this,…
- can you varify the address for example if i do not have a "-" or a "st" then it prints out invalid so if i put 32-12 46st then it should be valid if anything else it says invalid PLEASE DO NOT COPY THE OTHER GUYS THAT DID THIS <!DOCTYPE html> <html> <head> <title>document</title> </head> <body> <input type="text" id="Address"> <label id="AddressLbl"></label> <br><br> <button onclick="clickme()">Click Here</button> <script> function clickme() { if (document.getElementById("Address").value == "") { document.getElementById('AddressLbl').innerHTML = 'Mandatory'; } else if (document.getElementById("Address").value == "-" || document.getElementById("Address").value == "st") { document.getElementById('AddressLbl').innerHTML = 'valid'; } else {…<!DOCTYPE html><html><head><style>p {font-family: arial; font-size: 20px;} </style></head><body> <button onclick='buyApple()'>Purchase Appple</button><button onclick='buyOrange()'>Purchase Orange</button> <!-- This marks space for a paragraph that we can update during the program --><p id="balance"></p> <script>// javascript code begin// Step 1. initialize variables:change=100 // starting balanceapple=10 // price of 1 appleorange=20 // price of 1 orangetortilla=30 // price of 1 tortillafoundMoney=25 // pretend found $25// initialize the user-interface when this page loads:document.getElementById("balance").innerHTML = "$"+change;// Step 2. define event functions for each buttonfunction buyApple(){change -= apple;document.getElementById("balance").innerHTML = "$"+change;}function buyOrange(){change -= orange;document.getElementById("balance").innerHTML = "$"+change;}// Make 2 more functions here,…After u created the Restaurant website. The home page must contains carousel (bootstrap) And add Greeting/welcome statement that change dynamically each 10 second. The menu page should contain cards of the meals.The card contains image, description, the price of the meal and button to buy or choose this meal. Apply these changes using JS when submitted the form: 1- Apply the validation for each input (make sure all inputs are required). 2- Change all inputs text to uppercase (onchange). 3- Change all inputs text color (onchange). 4- Create new paragraph element at the bottom of the form to notify the user that the form has been submitted successfully. Feel free to add your creativity. Please do some search before you start and visit some restaurant websites. CSS: -Don’t forget to do the reset CSS. -Use components from bootstrap. JS: -If the user hover on price the font-size of price will increase. -If the user clicks on the buy/choose button, change the image of the meal…