أسئلة على لغة اسمبلي 1-Write a program to read a letter in lower case then convert this letter to upper case and print it (To convert from lower to upper subtract from the value 20h ). 2-Write a program that asks the user to enter grades for three courses (Course A, Čourse B, Course C) then Prints the average of these grades.
Q: Celsius to Fahrenheit: Write a program that converts Celsius temperatures to Fahrenheit…
A: Step 1:- Program Approach:- (i)Include two header file (ii) iomanip header file is used for fixed()…
Q: Write a program that calculates the average word length in a sentence entered by a user.
A: please do upvote for mt efforts thanks! answer: if __name__ == '__main__': s = input("Enter the…
Q: Converting pounds into kilograms Write a program that converts pounds into kilograms. The program…
A: Algorithm - Take Input User. Add the logic to convert pounds to kg.\ kilograms = pounds *…
Q: Q2: If you know that the marks should be included as follows: Brand The ratio A 100-90 B 90-80 C…
A: As the programming language is not mentioned here, we are using PYTHON The code and output…
Q: - If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of…
A: Actually, program is an executable software that runs on a computer.
Q: there are three seating categories at a stadium. for a softball game, class A seats are $30, Class B…
A: In the above code, it has been asked to print the how many tickets for each class of seats were sold…
Q: The area of a rectangle is the rectangle’s length times its width. Write a program that asks for the…
A: Note - Since you have not provided the language to write the code so I am using java language to…
Q: The following formula gives the distance between two points, (x1, Yı) and (x2, y2) in the Cartesian…
A: we have take two co-ordinates (x1, y1) and (x2, y2) of a two dimensional graph. Find the distance…
Q: Assume letters A/a, E/e, I/i, O/o, and U/u as the vowels. Write a program that prompts the user to…
A: Given: Assume letters A/a, E/e, I/i, O/o, and U/u as the vowels. Write a program that prompts the…
Q: 1- Write a program to enter average and find the grade rating() (Excellence, Very good, Good,…
A: NOTE NO PROGRAMMING LANUAGE IS MENTIONED SO I WAS USED C++ LANGUAGE 1) #include…
Q: C++ One acre of land is equivalent to 43,560 square feet. Write a program that asks the user to…
A: PROGRAM: //Header file #include <iostream> //Using namespace using namespace std;…
Q: The following formula gives the distance between two points, (x1, y1) and (x2, y2) in the Cartesian…
A: A required program is as follows, //Include header files #include<iostream>…
Q: +CC Q1/ Write a program to enter two number then enter one of the arithmetic operations(+,-,*,/,%),…
A: Code : #include <iostream>using namespace std; int main() { //Initializing variables…
Q: Excercise2: write a program to print the name of day when entering the number of the day. (For…
A: Since you have not mentioned programming language I'm doing this in c++
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: Algorithm: 1. Input unit sold 2. Check if quantity is not negative. 3. Check the condition for…
Q: · Exercise # 1: Wite a program that determines the day number (1 to 366) in a year for a date that…
A: Here, we have to write programs for the above programs.
Q: Write a Program to enter the numbers till the user wants and at the end it should display the count…
A: Code :
Q: Write the JS Code for the following Programs Test whether the Input Number is ODD or EVEN Test…
A: 1. Javascript program of the given problem is as follows: <!DOCTYPE…
Q: (Vowel or consonant?) Write a program that prompts the user to enter a letter and check whether the…
A: Code: import java.util.Scanner;//to read inputpublic class Exercise04_13{ public static void…
Q: Armstrong numbers between two intervals Write a program to print all the Armstrong numbers in the…
A: Find Your Code Below
Q: A customer in a store is purchasing five items. Write a program that asks for the price of each…
A:
Q: Write a program that asks for the user’s name and then the program will output the last 4 characters…
A: Note : Since the programming language is not mentioned , I have used C++ language Algorithm : 1 :…
Q: Find the even multiples of any number chosen by the user in a given range the user should specify…
A: Step-1: StartStep-2: Declare a variable num, minRange, maxRange and take input from userStep-3:…
Q: Exercise 6: Write a program that asks the user to enter number and read it. Then display the content…
A: As the programming language is not mentioned so I am writing a code in C++ language. If you want a…
Q: Drag and drop the appropriate statement to get the output shown below code segment Output message =…
A: To print the above output: you need stars space message space stars
Q: (Find the two lowest scores) Write a program of C++ that prompts the user to enter the number of…
A: Actually, c++ is a powerful general purpose language.
Q: Suppose a right triangle is placed in a plane as shown below. The right-angle point is at (0, 0),…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Define…
Q: statement is true, otherwise, write FALSE. If P and Q are true statements and R is a false…
A: The statement is (P ∧ Q) ∨ R ⇒ (¬Q) The truth value of P= true Q=true R=false
Q: Read student's grade 'A','B', 'C','D' or 'F' and print "Good job" when grade entered is either 'A',…
A: Based on the input value, you have to check the condition and you can do this using if statement
Q: Two points in a plane are specified using the coordinates (x1,y1) and(x2,y2). Write a program that…
A: We need to find the slope of a line through the two point which is non vertical and that point…
Q: Complete a program for counting digits and displaying their total count at the end of the program }
A: Complete code: #include <iostream>using namespace std;int main(){int n;int digits = 0;cin…
Q: Q2: If you knew that the signs should be listed as follows: The universal ratio Brand The ratio…
A: As the programming language is not mentioned here, we are using PYTHON The complete code and output…
Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: #Get the loan amount loan_amount=float(input("Loan Amount: ")) #Get the number of years…
Q: Q4) Write a program to enter a number from the keyboard, then check: -if the number is bigger than…
A: In this code, the number is entered by the user and correspondingly the number is checked according…
Q: Assume that a runner runs 15 kilometers in 50 minutes and 30 seconds. Write a program that displays…
A: #include<iostream> using namespace std; int main(){ int distanceTravelledInKMS=15;…
Q: Q1) Write a program to enter a number from the keyboard then print "YES" if the number is divisible…
A: Answer : #include <iostream> using namespace std;
Q: (Find future dates) Write a program that prompts the user to enter an integer for today’s day of…
A: Actually, integers are like whole numbers, also included negative numbers.. but not allows floating…
Q: 1- If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of…
A: The C programming language is a computer programming language that was developed to do system…
Q: 26.Temperature Conversion Write a program which prompts the user for a Fahrenheit temperature,…
A: the program is written below:- print("Enter 'x' for exit."); fah = input("Enter Temperature in…
Q: --s) write a program that asks the user to enter the temperature grades for the last ten days with…
A: import java.util.Scanner;public class Main{ public static void main(String[] args) { Scanner…
Q: 5. The user will input a Philippine amount, then the said amount will be converted to different…
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: Armstrong numbers between two intervals Write a program to print all the Armstrong numbers in the…
A: A=int(input()) B=int(input()) flag = False for i in range(A, B+1): x = len(str(i)) sum1 =…
Q: [Question Description] Enter any number of integers with three digits and determine whether they are…
A: Below is the complete solution with explanation in detail for the given question about palindrome.…
Q: (Find the number of years) Write a program that prompts the user to enter the min- utes (e.g., 1…
A: Code: (Find the number of years) Write a program that prompts the user to enter the min- utes (e.g.,…
Q: (Converting a given date to the day number in the year) Write a program that prints the day number…
A: Algorithm: Start Store the number of days of a normal year in a list named regYear and number of…
Q: 2- Write a program to enter(15) numbers by using inputbox function and then find the average of…
A: 1. declare two functions textbox and input box.2. in inputbox function take the 15 numbers from…
Q: One acre of land is equivalent to 43,560 square feet. Write a program that asks the user to enter…
A: Note: In this question, the coding language is not specified then we are doing this question in the…
اسئلة على لغة التجميع والكمبيوتر
Step by step
Solved in 3 steps
- Exercise I- Medicine Write a program that asks the user to enter the name of the medicine (t for ThroX, f for FeliX), his mass. The user should enter as well if he has a prescription or not. The program will calculate the dosage using: age and his ThroX without prescription -The max dosage should be 0.75 mL -The dosage = mass / 150 -The number of pills per day to take is 1 ThroX with prescription -The dosage =mass * 3 / 150 -The number of pills per day to take is 5 FeliX with prescription -The dosage = 0.77 mL FeliX without prescription -The dosage should be between 0.3 and 0.7 -The dosage = mass * 0.009 -The number of pills per day to take is 2 -The number of pills per day to take is 6 The program should display the dosage and the number of pills to be taken per day if the requirements are full filled, otherwise it display "Please check your doctor for a prescription". In case the medicine does not exist in the database, the program display “Your medicine is not in our database!"…السبت ۲ أكتوبر المحاولة رقم 1 :2 HW • Write a program that computes the average of 5 students grades which are entered by the user. Write a program that converts pounds into kilograms. The program prompts the user to enter a number in pounds, converts it to kilograms, and displays the result. One pound is 0.454 kilograms. محتوى إضافي؟ يمكنك إضافة نص وملفات تدعم إجاباتك. إضافة محتوی إرسال الحفظ لوقت لاحق1. Write a program that asks the user to enter three names, and then displays the names sorted alphabetically in descending order. For example, if the user entered "Charlie", “Leslie", and "Andy", the program would display: Leslie Charlie Andy Note that these three names are just an example. The names could be any words. 2. Write a program that asks the user to enter a year, and then displays whether that year is a leap year or not. Note that a year is a leap year if the year is a multiple of 400, or it is a multiple of 4 and not a multiple of 100. 3. Write a program to repeatedly read integers from the standard input until it reads -1 and exits. For each number before -1, if it is positive and odd, do the following: • Output a triangle like the one below with the integer being the width of the triangle's bottom or the number of asterisks of the bottom row. For instance, if the integer is 7, you would display the triangle below: *** ***** Or if the integer is not positive or not odd,…
- In Python Write a program that allows the user to type in a phrase and then outputs the acronym for that phrase. Note: The acronym should be all uppercase, even if the words in the phrase are not capitalized.لغة اسمبلي 1- Write a program to read a letter in lower case thenconvert this letter to upper case and print it (To convertfrom lower to upper subtract from the value 20h). 2. Write a program that asks the user to enter grades forthree courses (Course A, Course B. Course C) then Prints the average of these grades. 3- Write a program to convert from Celsius to Fahrenheit Tf=Tc*9/5+32French Articles: French country names are feminine when they end with the letter e, masculine otherwise, except for the following which are masculine even though they end with e: le Belize le Cambodge le Mexique le Mozambique le Zaïre le Zimbabwe Write a program that reads the French name of a country and adds the article: le for masculine or la for feminine, such as le Canada or la Belgique. However, if the country name starts with a vowel, use l’; for example, l’Afghanistan. For the following plural country names, use les: les Etats-Unis les Pays-Bas
- Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. Thus, the 405 services the 5, and the 290 services the 90. Your program will prompt the user to type a highway number ("Please enter a highway number, Ex: 65: "), read in the number typed by the user, and print out whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also your program must indicate if the (primary) highway runs north/south or east/west, that it is an invalid number if not between 0 and 999. Ex: If the input is: 90 the output is: The 90 is primary, going east/west. Ex: If the input is: 290 the output is: The 290 is auxiliary, serving the 90, going east/west. Ex: If the input is: 0 the output is: 0 is not a valid interstate highway number. #include <iostream>using…The date June 10, 1960, is special because when we write it in the following format, the month times the day equals the year: 6/10/60 Write a program that ask the user to enter a month in numeric format, a day and a two-digit year. The program should then determine whether the month times the day is equal to the year. If so, it should display a message saying the date is Magic. Otherwise, it should display a message saying the date is not Magic. Output should look as shown below. Create test data and place in a file. Name the code file Last Name + First Initial + "-MagicDates.s", for example "SmithJ- MagicDates.s". Name the test data file in a similar manner. Upload the program and test data files to the Dropbox. 6/10/60 is Magic! 6/10/70 is not Magic. 2/11/22 is Magic!Untitled Question Question 1 Write a program that finds the new salary of an employee after several years of work experience. Your program should ask the user to enter the name of the employee, the old salary and number of working years; then it should calculate and output the new salary using this equation: New salary Old salary + years 75 0.8 Sample run: Enter employee's name, old salary and years: John 900 5 Name New Salary John 1593.75 Your answer
- Task 1: Find the even multiples of any number chosen by the user in a given range - the user should specify the multiples of which number they want to print and a minimum and maximum value. The multiples printed should be within the [minimum, maximum] range. For example, if the user chooses the number 7 and would like to print all even multiples in the [15, 60] range, the program should print all the even multiples that are bigger than or equal to 15 (minimum), but smaller than or equal to 60 (maximum). The program should keep a count of how many numbers were printed and should output that count, as well as the numbers. The output then, for the example given, should be 28, 42, 56, and the count should be 3. Shell scripting1- If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of 4.5% of the money; otherwise, the interest rate is 3.0% of the money. Write a program to accept the number of years in the variable numYears and money in the variable money then display the correct interest rate, depending on the value input into numYears 2- Write a program that accepts a user-entered number and calculates the square. Before calculating, check that the number is negative, and isn't zero. If either condition occurs, display a message stating that the operation can't be calculated. 3- Write a program which accept a number of 2 digits and check if ones digit is greater than the tens digit print the number in reverse order, if each of the ones digit and the tens digit greater than 5 print the average of them (ones and tens), otherwise print the message( NOT valid ). 4- Write C++ program to accept a number num (with any number of digits). Then, if the number of digits equal…XYZ Company, LLC uses a program to manage the information of their employees. The program gets the name of the employee, number of hours worked and rate per hour. It computes the salary by multiplying the number of hours worked with rate per hour. If the salary is more than 1000, tax is computed as 5% of the salary, otherwise, tax is computed as 2% of the salary. The program will display the name of the employee, salary and tax.