The____________ statement is used to make decisions.
Q: Last mon th Joe purchased 100 shares of stock for $45 .50 per sha re and paid hisstock broker a…
A: #include <iostream>#include <iomanip> using namespace std; int main(){ int…
Q: Best Computers Store is a store that specializes in selling desktop computers and computer monitors.…
A: Here is the Flowchart:-
Q: Please use Visual Studio or Xcode to create a function called: double calculate_mpg (double miles,…
A: Please find the answer below :
Q: A) (Assume the user enters George Washington .)string userlnput;cout << "What is your…
A: A) Here the input is George Washington But the cin command will store all character of a single…
Q: Mobile Service ProviderA mobile phone service provider has three different subscription packages for…
A: code: #include <iostream>using namespace std;int main(){ char ch; int mins, extra_min; double…
Q: Mobile Service Provider Write a flowgorithm program that will calculate a person’s mobile phone…
A: Please find the answer in the following steps. Flowchart: => It is a picture of the separate…
Q: Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2 per mile. Write a…
A: Answer :
Q: V/ This pseudocode segment is intended to compute and display // the average grade of three tests…
A: The program is made up of 3 components called by the primary program. These components are:…
Q: You have to calculate the total price. Write a function which will take the name of the burger and…
A: Program Explanation: Import the Scanner class Define a public class for ordering a burger Declare…
Q: Create a VB.NET Console Application that does the following: Create a variable of Integer data type,…
A: ### CODE ### Module GradeConverter Sub Main() Dim marks As Integer Dim grade As…
Q: 1. Suppose you have a group of people who need to be transported on buses and You can charter a bus…
A: start print "TRANSPORTATION CENTER\n"; cout<<"---------------------------------------\n";…
Q: Pasty1.py You do NOT need to use functions or a restart feature. You D0 need comments! Welcome to…
A: I have provided , PYTHON CODE along with CODE OUTPUT and also provided OUTPUT…
Q: C++ Please Create a simple program that asks user to enter their name and displays the name with an…
A: The program creates two character array with maximum size of 10. Then the user is asked to input a…
Q: 2 J <"The <input type="datetime-local Creates a control in which the user can enter a date and time…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
Q: C++ Do not use any global variables. The presentValue function must have the following signature:…
A: Below is the required C++ program: -
Q: eclare variables ame = "" ilyCookies = 0 eklyCookies = 0 ays = 0 al = 0 alDifference = 0 Fice = sk…
A: Required: I need 2 bugs in this
Q: #include using namespace std; int main() { int A,B,C,D; cout > A; cout > B; cout > C; cout > D;…
A: 1. Explain what the program does? This program is a simple C++ program to read or input 4…
Q: Write a flowgorithm program that will calculate a person’s mobile phone bill based on plan chosen…
A: Here is the solution:
Q: An Internet service provider has three different subscription packages for its customers: Package A:…
A: The solution for the above-given question is given below:
Q: S. A company provides loans to new college graduates based on the following conditions: The…
A: The above question is answered in step 2 :-
Q: Write a program that prompts the user to enter his/her age as an integer. The program should then…
A: #Program to identify is user status based on age criteria #prompts the user to enter his/her age as…
Q: C++ Code: Oj is a cruel but wise student of his class. Because of his bad habits, one day his math…
A: ALGORITHM:- 1. Take input for the number of test cases. 2. Take input for the number for each test…
Q: Project 9-1: Interest Calculator Create a program that calculates the interest on a loan. Console…
A: Here I have used an infinite loop. Inside the loop, I have taken input from the user and then…
Q: displayed as a result of executing the code segment
A: displayed as a result of executing the code segment
Q: The following declaration, program, and program segment has errors. Locate as many as you can.…
A: Answer: The "function header" is a portion of the function definition. It denotes, Function's…
Q: Body Mass Index (BMI) is one of the criteria that is used to calculate whether one is fit or not…
A: Given Body Mass Index (BMI) is one of the criteria that is used to calculate whether one is fit or…
Q: C++ Create a program for a new school where it promps the user for a student number in the school…
A: We need to write a C++ code for the given scenario.
Q: I need to draw a flowchart for this cod #include #include using namespace std; int…
A: A flowchart is a graphical representation of a series of measures. It is commonly used to illustrate…
Q: Complete the flowgarithm/pseudo code for the following scenario and upload into drop box Program…
A: pseudo code is the steps required to solve a particular problem in informal language. It uses common…
Q: Please help me debug my C++ code. My code is: //include statement(s) #include //using…
A: The following is the solution
Q: 4-5 A Girl Scout needs to calculate the total dollar amount of her cookie orders. User input should…
A: Given :- 4-5 A Girl Scout needs to calculate the total dollar amount of her cookie orders. User…
Q: Complete the flowchart & then write pseudo-code while taking manual attendance in a class
A:
Q: program that uses diferent operators; • Use the methods of the Math class. tructions: 1. Create a…
A: here is your Program that uses different operators and uses the methods of the math class.
Q: Create a VB.NET Console
A: /*If the marks obtained by a student in five different subjects are input through the keyboard,find…
Q: How do you write the income tax calculator in python
A: Algorithm: Start Read amount If amount is valid, print 0.04*amount Else print error message and…
Q: Y = a + 2b + 3c value for each of 50 (a, b, c) (integer a, b, c) value groups calculating. Y values…
A: Spark is a lightning-fast cluster computing designed for fast computation. It was built on top of…
Q: Q2 A local club sells boxes of three types of cookies: shortbread, pecan sandies, and chocolate…
A: #include <iostream> #include<iomanip> using namespace std; int main() { int…
Q: Lulu Hypermarket wants you to create a program that they can use to compute for the discounts to be…
A: Required: Lulu Hypermarket wants you to create a program that they can use to compute for the…
Q: 7. (Medium) (Financial application: initial deposit amount) Suppose you want to deposit a certain…
A: c++ program #include<math.h>#include <iostream>using namespace std; //driver functionint…
Q: C++ program Vs Coding please!! General Crates, Inc. builds custom-designed wooden crates. With…
A: #include <iostream>#include <iomanip> using namespace std; int main(){ double len;…
Q: C# and I half to use what's given below using System; using static System.Console; using…
A: C programming describes the task of writing computer applications based upon the C programming…
Q: reate a flowchart that will accept the name and grade of a student in computer programming for…
A: Following is the flowchart of the above question:
Q: Question 18 Guessing Game Code a solution for the following problem. Post your program in the…
A: Given: Given a coding question ,we need to write the C++ code for it .
Q: C's if statement executes the statement inside its body if a specified O a. condition, true O b.…
A:
Q: 2. Suppose you have a group of people who need to be transported on buses and vans. You can charter…
A: According to the Question below the Solution: Output:
Q: Project 10-3: Interest Calculator Create a program that calculates the interest on a loan. This…
A: Below is the solution, we have used import of regular index to index K and make it 100.
Q: A function used to display the argument list on the monitor. It sometimes needs the control string…
A: The answer is given below.
Q: Every variable must have two things: O flowgarithm and console memory space and allocation O…
A: Variables in programming: The variable is defined as the containers that hold the information and…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
The____________ statement is used to make decisions.
Step by step
Solved in 2 steps
- Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2 per mile. Write a program named MoveEstimator that prompts a user for and accepts estimates for the number of hours for a job and the number of miles involved in the move and displays the total moving fee.In Chapter 1, you created two programs to display the motto for the Greenville Idol competition that is held each summer during the Greenville County Fair. Now write a program named GreenvilleRevenue that prompts a user for the number of contestants entered in last years competition and in this years competition. Display all the input data. Compute and display the revenue expected for this years competition if each contestant pays a $25 entrance fee. Also display a statement that indicates whether this years competition has more contestants than last years.18. Tom and Jerry opened a new lawn service. They provide three types of services: mowing, fertilizing, and planting trees. The cost of mowing is $35.00 per 5,000 square yards, fertilizing is $30.00 per application, and planting a tree is $50.00. Write an algorithm that prompts the user to enter the area of the lawn, the number of fertilizing applications, and the number of trees to be planted. The algorithm then determines the billing amount. (Assume that the user orders all three services.) (9)
- Phython assignment Exercise 1: Oreo cookies Check out the nutritional values of an Oreo cookie (Koppelingen naar een externe site.). Write code that does the following: calculate how much one Oreo cookie is concerning: calories, sodium, carbohydrate, fat create a user input that asks how much cookies you ate calculate how much calories, etc. you consumed warn the user that if he/she surpasses 2000kcal he/she should stop eating these darn delicious cookies use variables!Assignment 2 is worth 20% of the final module grade and is due at the end of Week 2 by 11.59 p.m. (23.59) VLE (UTC) OVERVIEW Create a simple currency converter that converts the user’s input from US Dollars (USD) to British Pound (GDP) DELIVERABLES Required elements of application A message to prompt user input A fixed variable that stores the most recent exchange rate of the British Pound (£) User input (variable) should be used to calculate the exchange rate and display it back to the user.def area(side1, side2): return side1 * side2s1 = 12s2 = 6 Identify the statements that correctly call the area function. Select ALL that apply. Question options: A print(f'The area is {area(s1,s2)}') B answer = area(s1,s2) C result = area(side1,side2) D area(s1,s2)
- Input and output part2 #include <iostream>using namespace std;int main(){int A,B,C,D;cout << "please enter value A:";cin >> A;cout << "please enter value B:";cin >> B;cout << "please enter value C:";cin >> C;cout << "please enter value D:";cin >> D;cout << "\nInserted values =" <<endl;cout << "value A = " << A <<endl;cout << "value B = " << B <<endl;cout << "value C = " << C <<endl;cout << "value D = " << D <<endl;return 0;} QUESTIONS 4.3.1 Explain what the program does ?4.3.2 What is the output?You want to order Burger from Chillox through the FoodPanda App. You have to calculate the total price. Write a function which will take the name of the burger and place(Mohakhali/Outside of Mohakhali) as input. Use default argument technique for taking place input.Question: Party budget planning - complex Prompt the user to enter their current budget and the number of people who need to share a meal. You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3 Calculate and print out all the options of meals where the budget is used entirely(where possible) and each person has an equal number of items to eat. They may eat different things, but everyone gets the same number of food items, e.g. 2 tacos or 1 empanada and 1 taco or 2 empanadas. Hints: Here are some things that might help you in your solution. If total items purchased does not equally divide by the number of diners, then abandon that combination. It may help to calculate the max number of empanadas that the budget can buy and also the max number of tacos that the budget could buy. These can be thought of as upper bounds in your loops. In your solution, keep track of items per person Also, keep track of total number of viable solutions, as that might…
- Question: Party budget planning - complex Prompt the user to enter their current budget and the number of people who need to share a meal. You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3 Calculate and print out all the options of meals where the budget is used entirely(where possible) and each person has an equal number of items to eat. They may eat different things, but everyone gets the same number of food items, e.g. 2 tacos or 1 empanada and 1 taco or 2 empanadas. Hints: Here are some things that might help you in your solution. If total items purchased does not equally divide by the number of diners, then abandon that combination. It may help to calculate the max number of empanadas that the budget can buy and also the max number of tacos that the budget could buy. These can be thought of as upper bounds in your loops. In your solution, keep track of items per person Also, keep track of total number of viable solutions, as that might…C++ Do not use any global variables. The presentValue function must have the following signature: double presentValue(double futureValue, double interestRate, int numberYears) Create multiple functions to find the present value. The formula used needs the future value (F) and annual interest rate (r) and the number of years (n) the money will sit in the account, unchanged. You will be calculating the present value (P). P = F / ( (1 + r) ^ n) In the above expression the value (1 + r) needs to be raised to the nth power. Assume that ^ is the power function and x^2 is x to the 2nd power (x squared) You must have functions to read in the future value, the annual interest rate, and the number of years. That would be three different functions. Give these functions meaningful names. Note that the order of the values will be future value, annual interest rate, and number of years. In all cases you need to return any valid value back to the calling function. For all three functions you will…Mobile Service Provider Write a flowgorithm program that will calculate a person’s mobile phone bill based on plan chosen and the data used. The program should perform the following: Ask for customer’s mobile plan Ask for the number of gigabytes of data used Display an error message if the plan choice is invalid or the gigabytes used is less than zero (0) Mobile data plans are: Plan A 19.99/month, with 4 gigabytes data, additional data $10/gigabyte Plan B 29.99/month, with 8 gigabytes data, additional data $5/gigabyte Plan C 39.99/month, unlimited data Remember the following: use clear prompts for your input label each output number or name use comment box for your name, lab name and date at the top of the flowgorithm use other comments where appropriate use appropriate constants