Assume that speed = 10 and miles = 5. What is the value of each of the following expressions? A. speed + 12 - miles * 2 B. speed + miles * 3 C. (speed + miles) * 3 D. speed + speed * miles + miles E. (10 - speed) + miles / miles
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: Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2 per mile. Write a…
A: Answer :
Q: In the below table, if a sale man attain a sale volume of $6000, he will be paid $6000x15% -$900.00.…
A: Let's see the solution in the next steps
Q: 1. Kilometer Converter Write a program that asks the user to enter a distance in kilometers, then…
A: Both python programs are coded in the next steps.
Q: Write a program that asks the user for an angle, entered in degrees. The program should then display…
A: According to the asked question, the solution is given below with a proper explanation.
Q: 10. Future Value Suppose you have a certain amount of money in a savinggs account that earns com-…
A: Required:
Q: What would be displayed as the daily dosage of medicine to be administered to a dog weighing 1O…
A: The correct answer is given below with step by step explanation
Q: In PyCharm, write a program that prompts the user for their name and age. Your program should then…
A: Here I have first of all taken input from the user. Then, I have subtracted the age from 2020 to get…
Q: Visual Basic. Write an expression that evaluates to true if the value of the integer variable…
A: In visual basic we use the Mod operator to check the remainder of a division.
Q: Exercise 1 Write an application that displays the numbers 1 to 4 on the same line, with each pair of…
A: GIVEN:
Q: Steven bought 375 shares of stock at a price of RM35.00 per share. He must pay her stockbroker a 2…
A: As no programming language is mentioned, it is solved using basic C++
Q: 4. A variable should hold all the letters of the alphabet. Which data type should the variable be?…
A: GIVEN: 4. A variable should hold all the letters of the alphabet. Which data type should the…
Q: The three main logical operators are and And, Or, Not False, And, True And, Not, If O Or, Not, If In…
A: Solution: AND, OR, NOT are the three are the three main logical operators in the system
Q: Assume that the following variables contain the values shown: numberBig = 100 numberMedium = 10…
A: Given Data numberBig = 100numberMedium = 10numberSmall = 1wordBig = "Constitution"wordMedium =…
Q: Body Mass Index (BMI) is a measure of health on weight. It can be calculated by taking your weight…
A: Below I have provided Java Programming. Also, I have attached the screenshot of the code and output…
Q: Body Mass Index (BM) is a measure of health on weight. It can be calculated by taking your weight in…
A: The above question is solved in step 2 :-
Q: A hotel computes the room price as following: Taxed price = total price x ( 1 + tax rate) • Total…
A: Using scanner class to read input from user.
Q: PLEASE USE FLOWGORITHM DOES NOT HAVE TO BE COMPLEX In Chapter 2 you learned that in many…
A: Here is the answer with explanation:-
Q: а. int int=10;. b. int Double=20;. c. int class=1;
A: the variable name should start with alphabet and _ and is not of any keyword or datatype name.
Q: Meadowdale Dairy Farm sells organic brown eggs to local customers. It charges $3.25 for a dozen…
A: Program code: //Import the required Java package import java.util.Scanner; //Class definition class…
Q: This code needs to be written in C#: If the user guesses the number in 3rd try you will assign:…
A: C# Programming Language : C# is a broadly useful, multi-worldview programming language enveloping…
Q: The variable data refers to the string "No way!". The expression data[3:6] evaluates
A: Substring is the part of the string, which is printed by giving the index. In python to get the…
Q: What will be displayed by the following statement? (Hint: Indent the statement correctly first.) int…
A: Output of the code for if else if loop is detailed in step 2
Q: write a program named MarshallsRevenue
A: The following program named MarshallsRevenue that prompts a user for the number of interior and…
Q: blem: Meal gift card. Your favorite campus restaurant sells meals for $13 each meal. The restaurant…
A: Note: Answering the question in java as no language is mentioned. Input : Amount value. Output :…
Q: Compute the income tax due on taxable income entered by the user, given the data as shown in the…
A: Solution:: // C code to determine tax on income #include <stdio.h> #include <math.h>…
Q: Create a program that calculates the interest on a loan. This program should make it easy for the…
A: According to the information given: We have to follow the instruction to get the desired outcome-
Q: What will the following segment of code output if the value 11 is entered at the keyboard? int…
A: According to the Question Complete Solution in Step 2 and Step 3
Q: The following table shows the approximate speed of sound in air, water, and steel: Write a program…
A: formula: Time = Distance / 1,100 formula: Time = Distance / 4,900 formula: Time = Distance /…
Q: Q1 Answer the following: L It is possible in visual basic 6.0 to detect the errors while the…
A: The Answer is in given below steps
Q: A program has the following variable definitions. long miles; int feet; double inches; Write a single…
A: cin statement that reads a value into each of these variables is given below:
Q: Number 3: Write a pseudocode and draw a flowchart to read age of a user. You should display the…
A: Step 1:- Note:-I am writing the program in c++ programming language. The flowchart is a graphical…
Q: Write an application that computes a business's potential profits each year for 20 years using the…
A: Source Program: //header files #include<iostream> #include<conio.h> //main body int…
Q: The monthly payment on a loan may be calculated by the following formula: N Rate * (1 + Rate)* * L/;…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED C++ FOR THE SOLUTION. Define…
Q: a) You need to complete a flowchart that determines whether a temperature is below or above the…
A:
Q: Q1 Answer the following: 1- It is possible in visual basic 6.0 to detect the errors while the…
A: (1) In visual basic , there are three categories of errors : Syntax error , Run time error and logic…
Q: The monthly payment on a loan may be calculated by the following formula: Rate-(1+Rate)N Раутеnt 3D…
A: #include<iostream>#include<math.h>using namespace std;int main(){ int n; float…
Q: If the intNum1 and intNum2 variables contain the numbers 10 and 7, respectively, the condition…
A: Explanation: Given, the value of “intNum1” is 10 and “intNum2” is 7. The given condition is…
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: public class SoftwareSales { public static void main( String[] args ) { Scanner…
Q: 4. Pete's Pizzeria wants a program that displays an employee's weekly gross pay, given the number of…
A: Code in c++ as no coding language is mentioned: #include <iostream>using namespace std;int…
Q: Scientists measure an objects mass in Kilograms and its weight in newtons. If you know the mass of…
A: Here I have created 3 functions getInput() , calculateWeight(), and showResult(). getInput()…
Q: You need to complete a flowchart that determines whether a temperature is below or above the…
A: Steps Order Start Read Temperature If Temprature > 0o C Yes ( Left Edge ) No (Righ Edge) Above…
Q: Ajax Manufacturing needs a program for employees to calculate gross pay themselves in order to have…
A: Working of the flowchart Prompt user to enter hours worked Read hours Prompt user to enter pay rate…
Q: Evaluate expression. Assume the following variable definitions exist in a program: int a = 2, b = 5;…
A: Evaluate expression. Assume the following variable definitions exist in a program: int a = 2, b = 5;…
Q: A car’s miles-per-gallon (MPG) can be calculated with the following formula:MPG 5 Miles driven…
A: C++ program is given below
Q: What will the following segment of code output if the value 11 is entered at the keyboard? int…
A: The given C++ code has to perform the following tasks. It declares the variable “number” in type of…
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: Since you have not mentioned the programming language, we have provided the code in Python language.
Q: a runner runs 14 kılometers in 45 minutes and 30 sec- onds. Write a program that displays the…
A: => Here in the program ask for a calculating average speed in miles per hour.
Q: reate the pseudocode for a program that are able to measure or sense the car speed in kilometers per…
A: the program is given below:-
Q: 3. Write a program named Admission for a college’s admissions office. The user enters a numeric high…
A: using System.IO; using System; class Program { static void Main() {…
Assume that speed = 10 and miles = 5. What is the value of each of the following expressions?
A. speed + 12 - miles * 2
B. speed + miles * 3
C. (speed + miles) * 3
D. speed + speed * miles + miles
E. (10 - speed) + miles / miles
Note : As per guidelines, we can author only 3 sub questions, please repost other sub questions.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
- The temperature of an object changes when it absorbs or loses thermal energy. It is possible to relate the amount of heat transferred, denoted by a variable q with units of joules, to the quantity of the substance m, by the following equation: q = mCsΔt Write a script that calculates amount of heat transferred for any amount of aluminum. Aluminum has a specific heat Cs = 0.897. The program should prompt the user to enter values for Δt and m, and should return the amount of heat transferred in units of joules. Test the program with values of 20 ℃ and 100 g.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.Assume that the population of Mexico is 128 million and the population of the United States is 323 million. Write a program called Population that accepts two values from a user: an assumption of an annual increase in the population of Mexico and an assumption for an annual decrease in the U.S. population. Accept both figures as percentages; in other words, a 1.5 percent decrease is entered as 0.015. Write an application that displays the populations of the two countries every year until the population of Mexico exceeds that of the United States, and display the number of years it took. An example of the program is shown below: Enter the percent annual increase for Mexico population Enter as a decimal. For example, 0.5% is entered as 0.005 Enter the value >> 0.008 Enter the percent annual decrease for U.S. population Enter as a decimal. For example, 0.5% is entered as 0.005 Enter the value >> 0.002 Mexico population U.S. Population 1 129.024 million 322.354 million 2…
- TOPICS: Data and Expressions MUST BE IN JAVA. PLEASE USE COMMENTS AND WRITE THE CODE IN SIMPLEST FORM. Write an application that reads a value representing a number of seconds, then displays the equivalent amount of time as a combination of hours, minutes, and seconds. For example, 9999 seconds is equivalent to 2 hours, 46 minutes, and 39 seconds. Hint: This requires using the % modulus operator. The trick with multiple units of measure like this is to start with the largest unit (hours) and work down. Testing: Submit testing exhibits using the following inputs: 0, 1, 60, 3600, 3661, and 9999TOPICS: Data and Expressions MUST BE IN JAVA. PLEASE USE COMMENTS AND WRITE THE CODE IN SIMPLEST FORM. Write an application that prompts for and reads the numerator and denominator of a fraction as integers, then displays the decimal equivalent of the fraction. Hint: This requires casting from integer to double before dividing. Testing: Submit testing exhibits using the following inputs:0, 1 giving 0.0; 1, 2 giving 0.5; 3, 8 giving 0.375; 2, 3 giving 0.666...; 25, 7 giving 3.57128...The following code intends to input a user’s first name, last name, and age.However, it has an error. Fix the code.string fullName;int age;cout << "Enter your first and last name." << endl;cin >> fullName;cout << "Enter your age." << endl;cin >> age;cout << "You are " << age << " years old, " << fullName << endl;
- **THE CODE SHOULD BE IN JAVA** Write an application that prompts a user for the number of years the user has until retirement and then the amount of money the user can save annually. If the user enters 0 or a negative number for either value, reprompt the user until valid entries are made. Assume that no interest is earned on the money. Display the amount of money the user will have at retirement. An example of the program is shown below: How many years until retirement? >> 5 How much can you save annually? >> 1200 If you save $1200 for 5 years, you will have $6000Problem: Meal gift card. Your favorite campus restaurant sells meals for $13 each meal. The restaurant requires members to pre-pay any amount of money they wish, and then purchase as many meals accordingly. You are required to write a java program correctly that would ask the user for the amount that they will pay, then display a message indicating how many meals that user will be able to purchase as well as how much funds will remain in the gift card after that. Using exactly 1 integer constant, 3 integer variables, and 1 Scanner variable make sure to fulfill the following points: 1. Declare the following constant integer: PRICE and set it to 13. 2. Declare 3 unassigned integer variables amount, meals, balance. 3. Declare 1 Scanner variable that will record keyboard inputs. 4. Prompt the user in the console for the amount that they will pay and assign to amount (use same format and wording as in the sample outputs below). Assume the user will enter an integer value. 5. Assign to…good day I would like some help with an assignment please for introduction to programming.. Instructions Write an application that asks a user to enter an integer. Display a statement that indicates whether the integer is even or odd. and this question Instructions Meadowdale Dairy Farm sells organic brown eggs to local customers. It charges $3.25 for a dozen eggs, or 45 cents for individual eggs that are not part of a dozen. Write a program that prompts a user for the number of eggs in the order and then display the amount owed with a full explanation. For example, typical output might be, You ordered 27 eggs. That’s 2 dozen at $3.25 per dozen and 3 loose eggs at 45 cents each for a total of $7.85. Save the program as yourname +Eggs.java. you need to use integer division and % remainder These are answered in Net beans JAVA
- Declare a constant named YEAR, and initialize YEAR with the value 2050. Edit the statement myNewAge = myCurrentAge + (2050 − currentYear) so it uses the constant named YEAR. Edit the statement cout << "I will be " << myNewAge << " in 2050." << endl; so it uses the constant named YEAR. Execute the program by clicking the Run button at the bottom of the screen. Subject: Java Programmingplease code in JAVA Declare an integer variable named rank. Write the formula to calculate rank,which is the product of score and number divided by level. Please dont use advanced coding.. Keep it basicJava ---There are 3 parts to each question. Please give me the code for all the 3 parts . Any kind of help is appreciated . Thank you. Question 1 : Write an application that converts temperatures between the Fahrenheit and Celsius scales. The interesting aspect of the application is that the input controls which direction (i.e., calculation) to calculate. The user isprompted to enter both the temperature and the scale it is in (as the words “Cel” or “Fahr” in upper, lower, or mixed case);if the scale is invalid, display an error message. The result is the conversion in the alternate scale (see examples). Formulas: F → C: (F – 32) * (5/9) = CC → F: C * (9/5) + 32 = F OUTPUT: Run 1: Temperate and scale: 10.10 CelConversion: 50.18 Fahrenheit Run 2 : Temperate and scale: -40.0 FAHRConversion: -40.00 Celsuis Part 1-Complete a well-structured & well-written program as described above. -You can include methods that help reduce the complexityof the main() method. Include commenting,…