Think of one of your Math homework. How can you use program to reveal the answer? Write a calculation program with atleast ten(10) variable statements calculating a problem.. Your program should include: Variables for each part of problem. See example below: Eg. $apple = 10, $orange = 15, $discount = 0.2 <!DOCTYPE html> <html> <body> <?php $apple = 10; $orange = 15; $discount = 0.2; echo ($apple + $orange) * $discount; ?> </body> </html>
Q: Write a Java program to calculate the corresponding Y value for an X input value by performing…
A: I have provided JAVA CODE along with CODE SCREENSHOT and OUTPUT…
Q: 04 what is the result of following if: a=3, b=3? i- ab iv- a>=b V- a==b vi- a!=b
A: Implementing the above statements through C++ langauge. #include <iostream>using namespace…
Q: Write single JavaScript statements to accomplish the following a. Create a variable…
A: A) Create a variable myNum and assign it to the value 25 Answer: var myNum = 25;
Q: Programming C++ As a programmer, someone requested you to make a receipt of orders in Starbucks…
A: ALGORITHM:- 1. Print the receipt. 2. Calculate the total amount. 3. Take input for the amount user…
Q: You are assigned to create a simple ordering Menu System. Create a C++ program by choosing a menu…
A: Solution:-- 1)As the given question has required for the solution to be provided as in the C++…
Q: Imagine that you run a local store that has an electronic pad located at the exit of the store that…
A: Below is a required program in python: Program Approach: Display a message to the user to enter…
Q: Question pinned below
A: Following is the c++ program:Define a character array named input and take input from user.Secondly,…
Q: Watson likes to challenge Sherlock's math ability. He will provide a starting and ending value…
A: function squares(a, b) { let arr = [], limit1 = 0, limit2 = 0; limit1 =…
Q: 3.1 How many seconds are in an hour? Use the interactive interpreter as a calculator and multiply…
A: 3.1 How many seconds are in an hour? Use the interactive interpreter as a calculator and multiply…
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: ative integers to be used as indices into a sequence, such as a string. If string s has length n,…
A: Code: n = [1, 2, 3, 4, 5]k = -2print('n[k]: ', n[k]) j = k + len(n) print('n[j]: ', n[j])
Q: 1. Create a java program that accept Three (3) Student number with Three (3) Student Name. After…
A: Let's understand step by step : 1. First of declare stu1,stu2,stu3 of integer type to store…
Q: I need the detailed solution as how this following java web assignment should be done as I don't…
A: Answer : I hope , you know that how to create an web service application in Netbeans. For creating…
Q: What is the output of the following code, show your work on white paper and attach it in the…
A: Code Numbered, N=7 S = "Wireline Drilling Testing Artificial Lift" Do Until ( N < 3 ) S =…
Q: What the following program does? START: LDA 2050H MOV В, А LDA 2051H CMP JC OTHER STA 2052H JMP END…
A: Step 1 The answer is given in the below step
Q: Develop a Java web service that supports method “double add(double x, double y)” for returning the…
A: As per the instructions provided If the posted question contains more than one questions we are…
Q: Question 2 Suppose that s1, s2, s3, and s4 are four strings, given as follows: String s1 = "Welcome…
A: //program to find results of the given exressionspublic class Main{ public static void main(String[]…
Q: All coding is done is JAVA. I am using IntelliJ Idea if it helps. 13. Mobile Service Provider: A…
A: I provide the code in Java along with output and code screenshot
Q: Write a program in Java to compute the highprice and lowprice of a stock using the following…
A: Please find the answer below
Q: Implement the following: 1) Request a user input for the variable, direction. 2) Write an…
A:
Q: 23. Write a JavaScript function to print the correct answer on the screen. Is today Tuesday? YES…
A: According to the Question below the solution: Output:
Q: Imagine that you run a local store that has an electronic pad located at the exit of the store that…
A: Below is the required python program: - Approach: - Prompts the user to enter the positive clicks…
Q: Write a Javascript function that would accept two numbers and return the swap of two numbers.…
A: the answer is given below:
Q: What seems the problem here? Im using Programiz's Javascript compiler
A: You can't read data from user/console in the online editors because you can't install any libraries…
Q: You are assigned to create a simple ordering Menu System. Create a C++ program by choosing a menu…
A: // Used for input & output functions#include <stdio.h> // USed for exit() function#include…
Q: **This is programming with Java. Im a bit confused.. When answering if you could be kind enough to…
A: Answer: Our instruction is answer the first three part from the first part and I have done code…
Q: Java code for this: In a triangle, the sum of the 1st and 2nd side must always be greater than the…
A: start input three side call check validity function that checks whether three sides forms triangle…
Q: 13. Write a program that lets the user play Rock-Paper-Scissors against the computer. There should…
A: Since no programming language is mentioned, I am using python Algorithm: Start Read input from user…
Q: Write a program to calculate the total employee salary (basic salary + overtime + house rent) based…
A: Task :- Write an program to calculate the total salary for an employee. (Note :- As programming…
Q: Draw the JSP diagram of this program?#include using namespace std; int main ( ) { int age; cout>age;…
A: Code :- #include<iostream> using namespace std; int main ( ) { int age;…
Q: Write a Java conditional statement that implements the following table, where grade is an integer…
A: Please find the answer below :
Q: 11 12 13
A: SCOPE OF VARIABLE Scope refers to the visibility of variables. Local variables are declared inside…
Q: : Which fast food restaurant provides the healthiest food: 1. McDonalds 2. Jack in the Box 3.…
A: #include <iostream>using namespace std; // This function prints the menuvoid menu() { cout…
Q: Step 3. Test your program by computing the distance between Orlando and Tampa. The latitudes and…
A: We need to write a Java code for the given scenario.
Q: Write a program to print the lyrics of the song “Old MacDonald." Your program should print the…
A: Step 1 : Start Step 2 : Using a print() statement to print the first verse of the lyrics. Step 2 :…
Q: 3.1 How many seconds are in an hour? Use the interactive interpreter as a calculator and multiply…
A: >>> 60 * 603600
Q: You are assigned to create a simple ordering Menu System. Create a C++ program by choosing a menu…
A: Simрle Fооd Оrder System is bаsed оn а соnсeрt оf оrdering fооd items аnd generаting…
Q: Write a program that will reverse the order of words on the given string below. Insert the…
A: ANSWER:-
Q: need just the typed letter of the below screen shots Just mention screen shot 1 and type the exact…
A: Required: I need just the typed letter of the below screen shots Just mention screen shot 1 and…
Q: Write the CellPhoneService program for Horizon Phones, a provider of cellular phone service. Prompt…
A: import java.util.Scanner; public class CellPhoneService { public static void main(String[] args)…
Q: Consider the following Java code fragment: String one = "baseball"; String two = String three =…
A: //first lets analyze the given code //string declarations and initializations String one =…
Q: JAVA CODE OF THIS: In a triangle, the sum of the 1st and 2nd side must always be greater than the…
A: As given, I need to write a Java program that takes input of 3 positive integers of as 3 sides of…
Q: In this project you are asked to write the Python program to compute the solutionstroots or zeros)…
A: python program 1) define function quadsol() 2) take input as value a, b ,c 3) Function call
Q: Write à program that takes a first name as the input, and outputs a welcome message to that name.…
A: Hi, here in this question programming language is not mentioned, so here I am doing it is Java and…
Q: (PYTHON) For Checkpoint B, you will extend your code from Checkpoint A by calculating the WCT for…
A: Objective: According to the given question, the input validation check for the number of locations…
Q: This assignment requires FIVE separate Java programs in ONE project. Use descriptive variable names…
A: SOURCE CODE public class Program1{ public static void main(String[] args) { // Numbers without…
Q: THIS IS IN JAVA. A restaurant serves breakfast before 11 am, after which they serve lunch. Which…
A: Ternary operator ( ?:) A ternary operator is a short form of the java if-else conditional statement.…
Q: Write single JavaScript statements to accomplish the following a. Create a variable myNum and…
A: You can use + as concatenation operator to join two strings. to find remainder use mod operator %
Q: Write a program that converts a time from 24-hour notation to 12-hour notation. The following is a…
A: Let us consider a Java program that converts a time from 24-hour notation to 12-hour notation and…
Think of one of your Math homework. How can you use program to reveal the answer? Write a calculation program with atleast ten(10) variable statements calculating a problem..
Your program should include:
- Variables for each part of problem. See example below:
Eg. $apple = 10, $orange = 15, $discount = 0.2
<!DOCTYPE html>
<html>
<body>
<?php
$apple = 10;
$orange = 15;
$discount = 0.2;
echo ($apple + $orange) * $discount;
?>
</body>
</html>
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Write a program that determines an integer value the user had in mind. Your program first asks the user to enter the lower and upper bounds of the range that the integer belongs to, and then presents a series of questions “Is the number greater than x?” with yes/no answers to the user in order to determine the integer value that the user had in mind. For instance, if the integer in mind is 5 and the interaction between the user and your program is: Please enter the lower bound: -10 Please enter the upper bound: 50 Is the number greater than 20 (Y/N)? n Is the number greater than 4 (Y/N)? y Is the number greater than 12 (Y/N)? n Is the number greater than 8 (Y/N)? n Is the number greater than 6 (Y/N)? n Is the number greater than 5 (Y/N)? n Your program should then print: The number you had in mind is 5 Your program should ask roughly log2(upper_bound − lower_bound) questions. Your program A3_1.py should include a main() function and may include other functions that you prefer.…Imagine you are working for a lumber company, and your employer would like a program that calculates the cost of lumber for a customer order. The company sells pine, fir, cedar, maple, and oak lumber. The lumber is priced by board feet. One board foot equals one square foot that is one inch thick. The price per board foot is given in the following table: Pine 0.89 Fir 1.09 Cedar 2.26 Maple 4.50 Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). Create a blank c++ Give the customer instructions and then ask the user (customer) to identify the items they wish to purchase by inputting the type of wood, the length, width, & heights of the board, and the number of boards they desire. Allow the user to…How do I solve this problem in java programming language? After all loan information is input, the program should output the loans in the following format: Sanchez Construction Loan #1 Name: Joe $10000.0 for 5 year(s) at 9% interest Loan #2 Name: Sara $5000.0 for 3 year(s) at 10% interest Loan #3 Name: Mike $975.0 for 1 year(s) at 10% interest Loan #4 Name: Jane $7000.0 for 5 year(s) at 9% interest Loan #5 Name: Peter $300.0 for 1 year(s) at 9% interest
- Can you please find the correct answer or answers for the question below? Program is in Python. def area(side1, side2): return side1 * side2s1 = 12s2 = 6Identify the statements that correctly call the area function. Select ALL that apply. Question 5 options: result = area(side1,side2) print(f'The area is {area(s1,s2)}') answer = area(s1,s2) area(s1,s2)You are working for a lumber company, and your employer would like a program that calculates the cost of lumber for an order. The company sells pine, fir, cedar, maple, and oak lumber. Lumber is priced by board feet. One board foot equals one square foot that is one inch thick. Theprice per board foot is given in the following table: Pine 0.89Fir 1.09Cedar 2.26Maple 4.50Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). An entry from the user will be in the form of a letter and four integer numbers. The integers are the number of pieces, width, height, and length. The letter will be one of P, F, C, M, O (corresponding to the five kinds of wood) or T, meaning total. When the letter is T, there are no…Can you please help me answer the following question? Thank you ! Program is Python. def area(side1, side2): return side1 * side2 s1 = 12 s2 = 6 Identify the statements that correctly call the area function. Select ALL that apply. Question options: a) answer = area(s1,s2) b) result = area(side1side2) c) print(f'The area is{area(s1,s2)}') d) area(s1,s2)
- Write a program to perform the following? Ask the user for the name? Ask the user to input five test scores and calculate the total of the test scores and Average of the test Scores. Using the following 10-point grading scale for the average tests score, display the grade and reward the gift certificate using the formula. Average testscore Grade Gift Certificate formula 90 and above A 120% of average testscore 80–89 B 60% of average testscore 70–79 C 20% of average testscore 60–69 D 0% of average testscore Please display Name of the user, five test scores, total, Average test score, Grade and the Gift Certificate amount based on above user input and calculations.Please do this in Python Programming and provide Screenshots The output should be exact same like in the examples. If the output in the example is in 2 decimals, then it should be like that. 1c - Othello 1 Othello, is a 2-player deterministic (no use of dice), perfect information (no information only known to one of the players) board game, similar to chess or go. The goal of this assignment is to give some information about the outcome once an Othello game has finished. This information is obtained by two measurements: The percentage of black pieces of all the pieces on the board. The percentage of the board that is covered in black pieces. The Othello board measures eight squares by eight squares, making the total number of squares sixty-four. Write a program that takes the number of white pieces followed by the number of black pieces as input. Print the two percentages as output. Enter the number of white pieces on the board: 34Enter the number of black pieces on the board:…Write a program in C language to simulate tossing a “fair” coin. Allow the user to enter the number of tosses.Print the number of tosses that yield heads and the number of tosses that yield tails.What should be the percentage distribution of heads and tails? (Use the function rand_int)
- The manager of Mama Calari’s Pizza Palace wants a program that calculates and displays the number of pizza slices into which a circular pizza can be divided. The manager will enter the radius of the entire pizza. For this exercise, use 14.13 as the area of a pizza slice, and use 3.14 as the value of pi. Desk-check your solution’s algorithm using 10 as the pizza’s radius; then desk-check it using 8. (Hint: For the first desk-check, the number of pizza slices should be a little over 22.)You are working for a lumber company, and your employer would like a program that calculates the cost of lumber for an order. The company sells pine, fir, cedar, maple, and oak lumber. Lumber is priced by board feet. One board foot equals one square foot that is one inch thick. Theprice per board foot is given in the following table: Pine 0.89Fir 1.09Cedar 2.26 Maple 4.50Oak 3.10 The lumber is sold in different dimensions (specified in inches of width and height, and feet of length) that need to be converted to board feet. For example, a 2 x 4 x 8 piece is 2 inches wide, 4 inches high, and 8 feet long, and is equivalent to 5.333 board feet (2 * 4 * 8 = 64, which when divided by 12 = 5.333 board feet). An entry from the user will be in the form of a letter and four integer numbers. The integers are the number of pieces, width, height, and length. The letter will be one of P, F, C, M, O (corresponding to the five kinds of wood) or T, meaning total. When the letter is T, there are no…In C++ Programming. Solve the following problem statements by simulating the given values of the variables below. int X = 5, Y = 10, Z = 15; int A = 2, B = 4, C = 6; 1. If X = Y; X = Z what is the value of X? 2. If B = C; A = X; Y = Z what is the value of A? 3. If A = B; B = C; C = X what is the value of A? 4. If Z = Y; Y = X; Y = Z what is the value of Z? 5. If X = B; X = C; what is the value of X?