Input age and identify the hours lived and hours slept using the formula below. HL = Age X 24 Hours X 365 days HL divided by 3 HS
Q: In cell D7, multiply the monthly payment for the loan by the number of payments to get the total…
A: Total amount to be paid: Formula to get the total amount to be paid is (monthly payment * number of…
Q: A person buys a product from XYZ shop. you have to input quantity of a product and price of one…
A: Pseudo-code: Pseudo-code is a writing up of the machine instructions in an informal and…
Q: Fill in the appropriate relational and logical operators to complete each of the following…
A: Since programming language is not mentioned, I am assuming python. Relational operators include…
Q: Draw flowchart to input the year a person has joined a job in a company. Also input the salary. Find…
A: Required:
Q: Input the Product name in upper case if the quantity is less than or equal to 20, and lower case if…
A: product name=input("enter the name") quantity=int(input("enter the value") if (quantity<=20):…
Q: Write an Algorithm and Flowchart to find the visa processing fee for tourists based or age of the…
A: Start Input age If Age<40, then Print 50 OMR Else If Age<60, then Print 40 OMR Else Print 30…
Q: x3 x5 x7 + Where x and n is to be dntered by the user. + .......... 3! 5! 7! n! A function should be…
A: power is following one pattern, i.e 1,3,5,7 and so on. denominator is also following the same. use…
Q: Excel Project How do create a formula to calculate daily totals in dollars. Multipy the value in the…
A: Excel is a software program developed by Microsoft. Excel has an electronic spreadsheet to organize…
Q: Input age from user and check if user eligible to vote or not. eligible if age>=18. Not eligible if…
A: Take input age from user and use 'if'-'else' to check if age is greater than 18 or not. Print…
Q: ponring table the followoing gramman Buld CLR E-> E+T/T T→ T*F/F
A: Given Grammar : E -> E + T E -> T T -> T * F T -> F F -> ( E ) F -> id
Q: Flowchart to calculate the average from 25 exam scores.
A: The answer is given below:-
Q: There are 60 students enrolled in CENG 104 class. Students take 1 quiz, 1 midterm exam and 1 final…
A: It is defined as an interpreted, object-oriented, high-level programming language with dynamic…
Q: Assignment or equal operator is used for comparing two values Select one: O True False
A: Hello Student. Warm welcome from my side. Hope you are doing great. I will try my best to answer…
Q: Where True Value = Approx. Value Approx.Value (2) Approx.Value (h) Approx. Value (2) - Approx.Value…
A: Program: #include <iostream> using namespace std; int main() { int half; cout << "Enter…
Q: A chemical company will be charged RMI,200.00 per Kilogram for the first 100kg of a. waste they send…
A: CurrentDisposedWeight = 0 Enter the amount of waste to be disposed If CurrentDisposedWeight > 100…
Q: sing C# 1. The user shall be able to enter the following values: a. Gross monthly income (before…
A: the code is an given below :
Q: Q1 Determine the stress of a concrete cube with 150 mm dimension, if the determined stress equal or…
A: Find the required code in VB given as below and output :
Q: C Code The salary of a company is paid according to working hours: Within 4 hours, including 4…
A: Algorithm: Start Read number hours hrs Initialize wages to 0 if hrs>0 and hrs<=4 calculate…
Q: enter the total square feet in a tract of land and calculates the number of acres in the tract.…
A: C++ used to answer this question
Q: QUESTION 1 Melody Piano Club provides a piano course for a student based on lesson hours. The…
A: NOTE: The output image contains an error in the total charge calculation its shows Total charge is…
Q: Choose the correct answer: the following operators from lowest to highest A\ * , ^ , ( ) B\ ^ , *…
A: Step 1:- Given:- Choose the correct answer: the following operators from lowest to highest A\ * , ^…
Q: price 49 txt "The price is () dollars" print(txt.format (price))
A: The matplotlib code is
Q: There are 60 students enrolled in CENG 104 class. Students fake 1 quiz, 1 midferm exam and 1 fin…
A: It is defined as an interpreted, object-oriented, high-level programming language with dynamic…
Q: An ISBN (International Standard Book Number) is a 10 digit number that is used to identify a book.…
A: Step 1 : Start Step 2 : In the main function , Declare a character array to store the ISBN Number.…
Q: Prompt the user to enter a value for yards, which must be greater than 0 and not greater than 10 For…
A: Solution :
Q: SLOPE A LINE This will determine the slope of a linear equation in the form: ax + by = c Enter a: 3…
A: First, input the value of a, b, c. As we know that y = mx + c where m gives the value of slope.…
Q: Formula for Total Price Total Price = Product Price x Quantity x (1 + Value Added Tax) + Mark Up…
A: WE HAVE TO WRITE A PROGRAM TO CALCULATE , Wholesale spot petroleum prices, 05/05/22 of products like…
Q: the summation of two degrees, Find the grade using xt box,use the grades (very good, good, passed)
A: Form Design:
Q: When the user clicks the Get Retail button, the program should do the following: Verify that the…
A: The solution is given below for the above given question:
Q: b. Plaintext ="BOX", e = 3, and n = 50 You should encode each character as two digits. You should…
A: Step 1:- Given:- Plaintext =Box First, encode each character of plaintext A is written as 2, B is…
Q: A chemical company will be charged RM1,200.00 per Kilogram for the first 100kg of а. waste they send…
A: Given: We are given a problem where the chemical company is being charged cost 1200 for first 100kg…
Q: Question 1: Ask user to enter age, sex ( M or F ), marital status ( Y or N ) and then using…
A: I have provided JAVA CODE along with CODE SCREENSHOT and also provided OUTPUT…
Q: number = input() while number!=id: print("This is not your ID number.") number = input()…
A: Actually you can do without f strings too. Just put whatever you want to put after "...ID…
Q: Write an Algorithm and Flowchart to find the visa processing fee for tourists based on age of the…
A: Algorithm to find Visa processing fee: Step1: start Step2: read age from user Step3: if age less…
Q: WHite ction to pront the float value Kauing two digits after decmal 10.000000 only.
A: Print the float value 10.00000 such that there are only two digits after decimal in the result.…
Q: 11. Calculate the total amount customer needs to pay for a set of lunch meal and a set of kid's meal…
A: Tax=10 Total without tax= Lunch meal quantity * lunch meal rate + Kid meal quantity * Kid meal rate…
Q: Input age from user and check if user eligible for vaccination or not. eligible if age>=18. In C++.…
A: Take input the age and use if condition to check if age>=18 or not. If age>=18 then print that…
Q: Draw flowchart to input the year a person has purchased a new car. Also input the price of the car.…
A: Required:
Q: y=2 while y<=99: print (y) i+=7 is the increment value.
A: The specified code contains the increment value is the value zero (0) because the variable y is not…
Q: XIII. Convert the following NFA into Regular expression (please follow the procedure in textbook The…
A:
Q: Where x and n is to be dntered by the user. ....... 3! 5! 7! n! A function should be used to…
A: Pattern observation:- Numerator:- 1, 3, 5 , 7.... and so on . Denominator:- 1!, 3! , 5! and so on.…
Q: Prompt the user to enter the principal amount(p), the annual rate of interest in percentage(r).…
A: As you have not mentioned the language to solve I tried it in java and here is the answer. import…
Q: determine the value of y=a^3+b^+c^3+3abc(a+b+c).Take variable a,b and c from user.Display the value…
A: code: #include <iostream>using namespace std; int main() { int exponent=3; int a, b, c;…
Q: Tax_rate=10% Sample Run 1: Enter the car model: BMW Enter your name: Sam Enter the type of the…
A: you have not specified the programming language so according our policy we have provided you answer…
Q: Assuming x is 5, y is 6, and z is 8, indicate whether each of the following relational expressions…
A: Note: There are multiple questions are given in one question. According to the rule, you will get…
Q: D, and E. Then, display the average value, minimum value and
A: flow chart for avg of 5 number Start|Input A<B<C<D<E|Sum<- A + B + C + D +…
Q: A company has 45 employers, 25 work as system developers (D) and (N) work as sales representer while…
A: Below is the flowchart:
Q: Please answer in C++ Code Admission to college is just beginning and Chef has also just finished his…
A: Coded using C++.
Q: My Solution Tax Calculator (conditional flow control) The simplest income tax calculation for a…
A: function…
Java code for the problem.
Step by step
Solved in 2 steps
- Input age from user and check 1f user e11g1b1 eligible if age>=18. | Not eligible if ageissignment Portion - hand in your wo nce completed "4.2 (Geometry: gneat circle distance) The great circle distance is the distance between two points on the surface of a sphere. Let(x1,y1)and(x2,y2)be the geographical latitude and longitude of two points. The great circle distance between the two points can be computed using the following formula: \[ d=\operatorname{radius} \times \arccos \left(\sin \left(x_{1}\right) \times \sin \left(x_{2}\right)+\cos \left(x_{1}\right) \times \cos \left(x_{2}\right) \times \cos \left(y_{1}-y_{2}\right)\right) \] Write a program that prompts the user to enter the latitude and longitode of two points on the earth in degrees and displays its great circle distance. The average radius of the earth is6,371.01 km. Note you need to convert the degrees into radians using the Math, toRadi ans method since the Java trigonometric methods use radians. The latitude and longitude degrees in the formula are for north and west. Use negative to indicate south and…Computer Science The user should enter his/her latest math course. If that course meets the computer science BAS requirements, congratulate the user. If the highest math course taken is not enough, recommend the next math course to take. - If the user input either of these math course (MATH &146MATH &148MATH &151MATH &152MATH &163 ) congratulate the user - if the user input either of this math course (MATH 081MATH 084MATH 085MATH 097MATH 098MATH 099MATH &107MATH 116MATH &141MATH &142) recommend the next math course to take in order. Html/Javascript
- Which of the following C# expressions means, If itemNumber is not 8 or 9, add TAX to price? If(itemNumber !=8 || itemNumber !=9) price = price + Tax; If(itemNumber ! = 8 If(itemNumber ! = 8 Two of theseQuestion: For the following code: for ( a = 1, b = 5, c = 3; a < 4; a++, b++ ) { c = a * b + c; } Indicate what values for the following variable will be when the code endsPlease check work for A = B = C =Please due in C++ The user should give the company name and numbers. If possible can you give a comment on the code please and thank you A sample run is as follows: Enter the company name: TC Energy Enter TC Energy's stock symbol: TRP.TO Enter TC Energy's current stock price: 55 Enter TC Energy's annual dividend per share: 3.24 Enter the company name: Canadian Utilities Enter Canadian Utilities's stock symbol: CU.TO Enter Canadian Utilities's current stock price: 31.70 Enter Canadian Utilities's annual dividend per share: 1.76 Enter the company name: Bank of Nova Scotia Enter Bank of Nova Scotia's stock symbol: BNS.TO Enter Bank of Nova Scotia's current stock price: 70.08 Enter Bank of Nova Scotia's annual dividend per share: 3.60 Enter the company name: TransAlta Renewables Enter TransAlta Renewables's stock symbol: RNW.TO Enter TransAlta Renewables's current stock price: 21.75 Enter TransAlta Renewables's annual dividend per share: 0.94…
- The user should be able to test different monthly deposit amounts, interest rates, and lengths oftime to see how increases and decreases impact their investment growth.4. Your code will need to account for the following:a. Month: The number of months based on user input in the “Number of Years” fieldb. Opening Amount: The initial investment amount as well as the opening balance eachmonth, which includes interestc. Deposited Amount: The dollar amount the user plans to deposit each month. This valuewill be the same every month for the duration of the investment.d. Total: The sum of the opening and deposited amountse. Interest: Money earned based on the “annual interest” rate input by the user. Theinterest based on an opening amount of $1 and a deposited amount of $50 with aninterest rate of 5% compounded monthly is:(Opening Amount + Deposited Amount) * ((Interest Rate/100)/12)OR(1 + 50) * ((5/100)/12)Note: Dividing by 100 converts the interest rate percentage to a decimal.Note: 12 is the…Please answer the following question. You can choose multiple letters from A to J.For the code below can you varify the card number, card exp date, card cvv and address for example the card number should be 13 numbers if any more it should say "invalid" for the card exp date it should be like 12/35 if not then its invalid for card cvv it should only be 3 numbers and address should be like 11-11-11st as long as it has the "-" and "st" also when ever its invalid can you make it print on the bottom of the box like the example in the image below. thank you <!DOCTYPE html> <html> <head> <style> input { height: 25px; border-radius: 5px; } </style> <script> function validate() { if (!validateVal(document.getElementById("number").value)) { alert("Please Enter the number"); return; } var num = parseInt(document.getElementById("number").value); if (num < 1 || num > 9) { alert("Enter a number between 1 and 9(Including 1 and 9)"); return; } if (!validateVal(document.getElementById("name").value)) {…
- Program Purpose - Professional Athletes often hire other professionals to help take care of matters for them. We will group them in four categories: Lawyers, Personal Assistants, Agents, and Trainers. They all get paid a percentage of the athlete's total yearly salary. Lawyers - 10%, Personal Assistants - 3%, Agents - 7%, and Trainers - 5% . Prompt the user to enter the athlete's salary for the year (ensure that the entered value is positive). The user should then enter the name and category of each of the hired professionals. The athlete should be able to hire as many professionals in each category as he/she wants, even if it is more than he/she can afford. Based on the category, calculate the amount that each professional should be paid. After all data has been entered, print the names of each professional hired, how much each is being paid, the total amount the athlete paid, and how much the athlete has left.…Welcomes user to the Windchill Temperature (WCT) Weather Report calculator. Prompts the user to enter the decimal precision (within range 1--4) at which WCT will be reported. If a user inputs an out-of-range value for 'decimal precision' then print a message and exit (see samples below). Prompts the user to enter the name of location for which WCT will be calculated. Prompts the user to enter the air temperature and wind velocity for this location. You can assume that the user always enters a valid float value for these. Prints the WCT at the desired precision. WCT can be calculated using the National Weather Service calculation given at the bottom of this figure1. Declare the required variables, then ask user to enter employee’s full name, id and monthly salary from keyboard, then display the values like this: Employee's name is James Cook, employee's id is 34256, and employee's monthly salary is $4533.5