The Middletown Wholesale Copper Wire Company sells spools of copper wiring for $100 each and ships them for $10 apiece. Write a program that displays the status of an order. It should use two functions. The first function asks for the following data and stores the input values in reference parameters. The number of spools ordered. The number of spools in stock. Any special shipping and handling charges (above the regular $10 rate).
Q: Write a function named yearCalc() that has an integer parameter representing the total number of…
A: PROGRAM CODE: #include <iostream> // include header file for input…
Q: Q1: Write a function that receives marks received by a student in 3 subjects and returns the average…
A: Since the programming language is not mentioned in the question, we will answer this question in the…
Q: Fill in the blanks
A: The given function definition is: void FullName(char F, char M, char L[]) {…
Q: Write a function
A: Source Code: #creating the functionin_dollor_bidask <- function(price,bid){ #calcu;ate bid-ask…
Q: The Middletown Wholesale Copper Wire Company sells spools of copper wiring for $100 each and ships…
A: The Middletown Wholesale Copper Wire Company sells spools ofcopper wiring for $100 each and ships…
Q: In this lab, you complete a partially wri Cornwall's Country Inn. The program is described in…
A: Check the answer as well as meal plan whether they are valid or not In case of invalid strings…
Q: I want answer in C Language Write a function to convert temperature from Fahrenheit to Celsius…
A: Define the function "ConvertFtoC( )" and passing the one double value for fahrenheit argument.…
Q: 2. Write a program that accepts the price of a meal and the tip percent as a whole number. The…
A: read sale price of meal read tip percent calculate tip amount=sale price*tip/100 display sale amount…
Q: Write a function named Quotient with 2 Integer parameters (originally from text boxes) and a Double…
A: Visual Basic .Net is modern and uses the .Net Common Language Runtime (.Net CLR). Visual Basic .Net…
Q: rite a function in_out (xs, ys, side) which takes three numbers as input, where the side is…
A: We need to define the function in_out() as given below :
Q: You are writing a program to calculate the average overall scores for two divers in a diving…
A: Please find the java program using the function in C++ without using the array.
Q: Using C++ Write a set of functions that calculate the cost of movie tickets for a family. Using…
A: The program contains two functions: 1. charges() which will calculate charges based on the age…
Q: Write a program that consists of two functions The first function calculates the area of the…
A: Given a cone with height h and radius r, volume can be calculated as Volume = 13×(πr2)×h where πr2…
Q: Write a program that contains a function that displays "Welcome to CS127-8L!" Then, it asks for a…
A: Below i have written program:
Q: Q2) write a program to read the information of employee(identifier number, name ,salary,…
A: Since no programming language is mentioned, I am using c++ Algorithm: Start Create a struct…
Q: The prompt asks me to design a program that asks the user to enter a month (in numeric form), a day,…
A: Following is the c++ program which takes input from user the day, month and year of date. If else…
Q: Write a function to convert temperature from Fahrenheit to Celsius named “Convert F to C” that takes…
A: As no programming language is mentioned, it is solved using basic C++
Q: Q1: Write a function that receives marks received by a student in 3 subjects and returns the average…
A: The given scenario is programmed by C language. The program takes the input from the user where it…
Q: Write a function that would calculate an item's sale price based on the item's purchase price plus…
A: Note: since programming language is not mention we are providing solution in c++. please repost the…
Q: 2. Write a function named “MyInfo ()". Now pass three parameters to your function i.e. your name,…
A: Please find the answer below :
Q: Write a program that calculates the letter grade of students. User should input midterm and final…
A: The program is implemented in C programming language with structured approach. The main function has…
Q: Write a non-void function named myletter that accepts two integers, x and y as parameters, and…
A: logic define a function myletter which takes two int parameter x and y. Inside function, check…
Q: Write a function named Quotient with 2 Integer parameters (originally from text boxes) and a Double…
A: Given : Write a function named Quotient with 2 Integer parameters (originally from text boxes) and…
Q: Write a pay-raise program that requests a person's first name, last name, and current annual salary…
A: You didn't define language for problem, So i am doing it in C++ programming language #include…
Q: Python Programming question
A: PROGRAM: #Defining the function calc_function def calc_average(sc1,sc2,sc3,sc4,sc5): #Calculating…
Q: Write a function named biggest that receives three integer arguments and returns the largest of the…
A: Given: Biggest of three numbers.
Q: Write a program that calculates and displays the total travel expenses of a businessperson on a…
A: Write a program that calculates and displays the total travel expenses of a businessperson on a…
Q: In C programming language: Write a function that takes one double parameter, and returns a char.…
A: 1) Below is C Program that defines function that takes one double parameter, and returns a char,…
Q: Write a split_check function that returns the amount that each diner must pay to cover the cost of…
A: According to the information given:- we have to create a split_check function to divide the dinner…
Q: AIMurooj school is a new school opening in Oman. It provides classes for KG1 and KG2. To attract new…
A: Use an if condition to check the class name and based on the class name return the discount After…
Q: In python, write a function that receives three parameters: name, weight, and height. The default…
A: In this question we need to write a python program to print the BMI of a person. We need to create a…
Q: Write a function that takes two numbers are parameters and returns their product. Create a program…
A: C++ used to answer this question
Q: You are writing a program to calculate the average overall scores for two divers in a diving…
A: The code implementation is given below.
Q: Write a program that asks the user to enter five test scores. The program should display a letter…
A: PROGRAM INTRODUCTION: Create a definition for a method to call other methods that are present in…
Q: Using Python, write an application that will calculate a loan payment. To complete this, you are…
A: Program code: def LoanPayment(loan_amount,n,i): #The discount factor is {[(1 + i)^n] - 1} / [i(1…
Q: Which of the following is false?a. A function can receive information either by value or by…
A: Explanation: Function: A function is a part of the program that performs specific task.it is also…
Q: Write a function that displays the changes in a given amount of dollars. void displayChanges(double…
A: C program to solve the given problem is below.
Q: write a program that asks the users to input three numbers (x,y,z) and calculate the sum,…
A: Dear Student, as no language was mentioned I have done the program in c++
Q: Given the following: printf ( “Enter your age in years: “ ); scanf ( “%d”, &age_in_years );…
A: When the age is 33 then the value of is_voting_age variable and is_drinking_age variable will be 1…
Q: I am facing some issues with this c++ question. any help would be appreciated.
A: Program approach: Create main function. The while loop is used to repetitively input. Input gender…
Q: Write a program that has three functions. The first ask the user to enter a temperature in degrees…
A: Program: //include the required header file #include <stdio.h> //declare the functions float…
Q: Modify the code you had previously so that the function print_bill outputs the actual names of the…
A: The Answer is
Q: Write a program with the following functions: 1- A function named avg that have two float…
A: Here we are calculating average of two scores using avg function. I am using Python language since…
Q: Write a program that prints a pyramid made of letters in the middle of the screen. Use functions…
A:
Q: Write a set of functions that calculate the cost of movie tickets for a family. Using a loop,…
A: /******************************************************************************…
Q: Write a set of functions that calculate the cost of movie tickets for a family. These functions…
A: Step 1 : Start Step 2 : Define a Function calc_RunningTotal() to calculate the running_total after…
Q: Write a program that: 1. Prompts the user to input the number of buckets of change to calculate. 2.…
A: #include<stdio.h> typedef struct change; void getchange(int,int); void computechange(int);…
Q: // // Write a function that calculates the amount of money a person would earn over // a period of…
A: Program plan: Define a function named totalEarned() with years as a parameter. Declare and…
The Middletown Wholesale Copper Wire Company sells spools of
copper wiring for $100 each and ships them for $10 apiece. Write a
program that displays the status of an order. It should use two
functions. The first function asks for the following data and stores
the input values in reference parameters.
The number of spools ordered.
The number of spools in stock.
Any special shipping and handling charges (above the regular
$10 rate).
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- The Middletown Wholesale Copper Wire Company sells spools ofcopper wiring for $100 each and ships them for $10 a piece. Write aprogram that displays the status of an order. It should use twofunctions. The first function asks for the following data and storesthe input values in reference parameters.The number of spools ordered.The number of spools in stock.Any special shipping and handling charges (above the regular$10 rate). The second function receives as arguments any values needed tocompute and display the following information: The number of ordered spools ready to ship from current stock.The number of ordered spools on backorder (if the numberordered is greater than what is in stock).The total selling price of the portion ready to ship (the number ofspools ready to ship times $100).Total shipping and handling charges on the portion ready to ship.Total of the order ready to ship.The shipping and handling parameter in the second function shouldhave the default argument 10.00.Write the function truck_adjustment_factor(truck_proportion, terrain_type) that takes the proportion of trucks using the motorway and the terrain type as inputs and returns the adjustment factor that is used for calculating the highway capacity. The adjustment factor is calculated according to the following formula: adju stment factor = tprupurtime x(furtor-1) Where proportion is the proportion of trucks and the factor is the car equivalent factor for the given terrain. You should be calling your car_equivalent_factor function to get the factor - don't reinvent the wheel! For example, for rolling terrain and a truck proportion equal to 0.12: adjustment factor = 1/(1 + 0.12 x (4.0 - 1)) = 0.735 Notes: You should include (and call/use) your car_equivalent_factor function in your answer o In general, you should paste in your whole module so far in each question as later functions will call earlier functions. • You can assume the function will always be called with one of the three valid…There is only 1 ques with 2 part. Please answer the questions ( Answer in python ) Part I: Cities. Write a function called describe_city which accepts the name of a city and its country. The function should print a simple sentence as shown in the output example. Give the parameter for the country a default value. Make 5 calls to the function using the following arguments: Reykjavik, Iceland Pittsburg Ontario, Canada Cairo, Egypt Miami, USA Output Example : ( FOLLOW THE OUTPUT SAME AS GIVEN BELOW ) Reykjavik is in Iceland Pittsburg is in USA Ontario is in Canada Cairo is in Egypt Miami is in USA Part II: Blastoff!!! Write a function called count_down which has 1 integer parameter. The function should countdown from that parameter value to 1. Each step in the countdown should be printed on the same line followed by ‘Blastoff!!!’ also on the same line. All of this should happen in the function. Make 3 calls to the function with the following arguments: 3 5 10 Output…
- Complete the function quarts_to_liters() that has one parameter as a volume in quarts. The function returns the volume converted to liters, given that 1 quart = 0.946353 liters. Ex: If the input is 69, then the output is: The number of liters is 65.298Write a function named max_year that, given one parameter of origin ( value in OdName), returns the year with the maximum immigrants.Retrieve information from this webpage "https://www.chewy.com/b/dry-food-294", Dry Dog Food. The information you need is 1) the brand and the name of the products, 2) the price for auto ship, and 3) the regular price. For Q1 and Q2, you may need the function trimws() or gsub() to remove unwanted characters. Can i have the code you use please
- Write a function called daysOver that takes three arguments: a dictionary, a location (such as ‘Sydney’, ‘Adelaide’,etc) and a temperature and returns the number of days that were over the given temperature for the given location. For example, if we call the function using the line: total = daysOver(dictionaryData, ‘Adelaide’, 40) total will hold the number of days that Adelaide had a temperature greater than 40 celsius in the data. As a test, there were 54 days over 40 celsius in the data. Check that total is 54 for the example when you run your code. Use the daysOver function to print the number of days over 35 celsius for each of the following cities: 'Adelaide','Perth','Melbourne','Canberra','Sydney','Brisbane','Darwin' Which of the Australian cities has the most number of days over 35 celsius?Consider the following code. How many times is the function rec_func_2( ) called in total? Question options: 0 1 2 3 4 5 6 7 8 None of these optionsH Step 6: Descriptive Statistics: Points Scored By Your Time in Home Games The management of your team wants you to run descriptive statistics on the points scored by your team in the games played at your team's venue i 2015. Calculate descriptive statistics including the mean, median, variance, and standard deviation for points scored by your team played at Home. following edits to the code block below: 1. Replace ??MEAN_FUNCTION?? with the name of Python function that calculates the mean. 2. Replace ??MEDIAN_FUNCTION?? with the name of Python function that calculates the median. 3. Replace ??VAR_FUNCTION?? with the name of Python function that calculates the variance. 4. Replace ??STD_FUNCTION?? with the name of Python function that calculates the standard deviation. After you are done with your edits, click the block of code below and hit the Run button above. print("Points Scored by Your Team in Home Games (2013 to 2015)") print(" ") your_team_home_df =…
- In this coding challenge, you will be retrieving email usernames from a string. You will write a function named get_usernames () that takes in a string as it's input parameter, and returns a list of email usernames in the string. The input strings will contain 0 or more emails in the format and the '@' symbol will only appear in the context of an email. The order of usernames should match the order in the input text. username@domainname, For example: EXAMPLE 1 text: "If you need help on an assignment, email help@ucsd.edu or support@gmail.com" return: ['help', 'support'] EXAMPLE 2 text: "Good morning! I hope you're having a great time with CSE 8A!" return: [] EXAMPLE 3 text: "I've been having a lot of trouble reaching you, can you please email me at cse@ucsd.edu? return: ['cse', 'cse'] Here is the problem description: Function Name: get_usernames Parameter: text - A string corresponding to a piece of text containing 0 or more emails. Return: A list of the email usernames in the input…Write three functions that are the “inverses” of to_secs:1. hours_in returns the whole integer number of hours represented by a total number ofseconds.2. minutes_in returns the whole integer number of left over minutes in a total number ofseconds, once the hours have been taken out.3. seconds_in returns the left over seconds represented by a total number of seconds.You may assume that the total number of seconds passed to these functions is an integerSuppose you have to make a game which 3 users can play. Write a function set_details that will ask the user to set their password. Then in main function you have to apply a loop upto 10 iterations in which the random number is generated between the range of 1-3. . Apply switch statement on the above generated random number to call the function of each player's total score. (Hint: You have to make a function for each player.) Now in the total score function the program should ask the user his password. If he enters correct password, then he is capable of entering a number form 1-9 otherwise the function will display wrong password. Finally, after terminating from the loop program should display the total numbers of each player. Note: Solve in c programming language.