How many bytes the variables utilize in the following program? (a) varl WORD 60 DUP (0) (b) var2 DWORD 20 DUP (?) (c) var3 BYTE 5 DUP("CORONA") (d) var4 WORD 6 DUP(“VACCINE") (e) var5 DWORD 10,20,30,40,50
Q: a-) Write a pseudocode that receives a positive number from the user, and then, starts printing and…
A: a) import java.util.Scanner;//to read input from userpublic class Main{ /* pseudocode: n =…
Q: Write a Python Program that reads 4 numbers from the keyboard and finds the mean and standard…
A: Solution: Given: A program that reads 4 numbers from the keyboard and finds the mean and standard…
Q: Scenario: You are tasked with writing a program to process students'end of semester marks. For each…
A: Generate student semester calculation Need to take student id and subject marks. If the student…
Q: What does the variable someVar store at the end of execution? A. It is the number of words in the…
A: Correct Answer will be Option C Explanation: At the end of the execution someVar is going to store…
Q: Draw the flowchart for this python program ? def new_game(): guesses = []…
A:
Q: You decide to start a new lemonade stand business. Your lemonade recipe for one jar of lemonade…
A: Input : Cost of 1 lemon 1 cup of sugar Output : Cost of one serving
Q: السؤال you have the following variable string name = "John"; To print a combination of a text…
A: In this question, we are asked what is the correct method to print a combination of a text 'Your…
Q: Create a Vb.net program that will convert Celsius to Fahrenheit and Fahrenheit to Celsius…
A:
Q: 1. What is the order of calculations in the conversion of a temperature? Write an ordered list of…
A: Note :- As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: Create a program that inputs a last name and prints Lane # according to the first of the last name.…
A: Since the question doesn't include the programming language use to code the problem so I am using…
Q: input the source code (code1)to the program below(code 2), make sure the program can run with these…
A: The code has been placed at its required place.
Q: 4. Write a program that takes data one line at a time and reverses the words of the line. For…
A: Source Code: #include<stdio.h>#include<string.h> /* Program that reverses the words in…
Q: You are tasked with writing a program to process students’ end-of-semester marks. For each student…
A: The answer is given below:-
Q: Create a program that will display the table below: 1 2 4 X 1 1 1 2 4 8. 16 9 27 81 ... ... ... ...…
A: Given: To write the C++ Code.
Q: Write, compile and test a program that displays the following patterns on the screen b) 1 12 a) ***…
A: I have answered this question in step 2.
Q: function area = calculateArea (x, y) % Function to calculate an area given two lengths (x, y) area =…
A: **I am using an online simulator, but the answer will be the same as Matlab compiler. octave:1>…
Q: 5. Write a program that prints a Christmas tree, as shown below. Remember to use escape sequences.…
A: The above program is solved using Java Program below:
Q: Assume that a0 and al holds the base address of str and strdst, respectively. int i = 0; While…
A: Here is the solution:-
Q: 2. Write a program calculating the statistics for tests of a hospital by getting data from the user…
A: Algorithm Start Var t, pt, nt, ptr, ntr Accept total test in t Accept total positive test in pt…
Q: Explain the flow of this program ? def new_game(): guesses = [] correct_guesses = 0…
A: The given code is a quiz application where the program displays 4 questions one by one with its…
Q: 1- Write the "Matlab" program code from the keyboard that calculates the area of the triangle with…
A: Solution 1:- MATLAB Code:- % Proceeding user input of the sides and the angleval = input('Enter…
Q: Finding Errors. Identifying the line/s containing errors that can cause the program not to run.…
A: Program Errors: Errors are obstacles that prevent a program to be successfully compiled and…
Q: Write a program that converts U.S. dollars toCanadian dollars, German marks, and British pounds, as…
A: Program: import java.text.NumberFormat; import java.util.Locale; import…
Q: Here's the C++ Programming Exercise: The population of town A is less than the population of town B.…
A: The population of town A is less than the population of town B. The population growth rate of town…
Q: 1. What will the following program print out: >>> x - 15 >>> x- x +5 print(*) >>> a. 20 b. 15 с. 5…
A: As given, we need to find out the output of the following code - x = 15 x = x + 5 print(x)
Q: 1. Hello (9 Lines) The very basic of programming is input and output, write a program that asks the…
A: Note: According to Bartleby guidelines we are allowed to answer only 1 question please repost the…
Q: 4. Write a program that resembles a phone book, which stores and displays the names, the addresses…
A: In the code we take the students of number 20. We declare the name , address and telephone number…
Q: Module 2: 2.1.a) Write a JavaScript program to check two given integer values and return true if one…
A: Write a JavaScript program to check two given integer values and return true if one of the numbers…
Q: The following program segment generates several lines of output. Which of the following is NOT a…
A: Given code: int lcv=32;while(lcv>0){ int x = lcv - 4; int fx = x - 6;…
Q: Question 1 a) Write a program that reads in the radius and length of a cylinder and computes volume…
A: Question 1) a) SOLUTION:- CODE:- import java.util.Scanner; public class Main { public static void…
Q: Write what will be printed on the computer screen after execution This part of the program: Dim…
A: The machine has completed the startup process: This same BIOS chip instructs it to hunt for a…
Q: Which of the following is not one of the three operations that most computer programs perform?…
A: The given problem is related to Operating system processing and the reuqirment is to identify the…
Q: Create a program that will display the table below: 1 2 3 4 X 1 1 1 1 4 8. 16 3 9 27 81 ... ... ...…
A: - We need to highlight the code for the asked table.
Q: the variable x stores the value 10, what will be stored in y after the following statement is…
A: Please find the answer below :
Q: Create a program that reads a duration from the user as a number of days, hours, minutes, and…
A: Start Take the input of number of days, hours, minutes, and seconds. Read the input values. Compute…
Q: QUESTION 3: Execute the given program in MARS and answer the following short questions. .text main:…
A: add $t0,$t1,$t2 # reg[t0] = reg[t1] + reg[t2] # add as signed (2's complement)…
Q: 4. Sum of Everything by Jemar Jude Maranga Write a program that will repeatedly ask the user to…
A: Program is in step 2. In the program, as you said input should be in series and output is the sum of…
Q: 4. The dimensions (width and length) of room1 have been read into two variables: width1 and length1.…
A: Here in this question we have asked to write a program which take two room dimar width1, length1 and…
Q: Given a string “Your_Name Your_Surname Your_Age”, divide it to 3 separate strings
A: Note: The C programming language is agreeable to Arduino. // C program# include <stdio.h>//…
Q: Write a program that displays the following table (notethat farenheit = celsius * 9/5 + 32):Celsius…
A: Note: Since it is not mentioned which programing language to be used so i prefered to use java…
Q: 4. What is the value of a in below program? int main(){ int a, b=20 ; a = 90/b ; return 0 ; } a) 4.5…
A: As a is integer,it gives value of a as 4. Option c)4 is answer
Q: Q1) input the source code (code1)to the program below(code 2), make sure the program can run with…
A: We have been given the two C language codes. We have to add Code 1 in the Code 2 in such a way that…
Q: Task 8 Write Python code of a program that reads an integer, and prints the integer if it is a…
A: Given:
Q: What is the output of the following codes? String[] words = new String[5]; System.out.println("word…
A: The problem is based on finding the output of the java code.
Q: Write a program that reads in a five-digit integer and determines whether it is a palindrome
A: EXPLANATION - A program is created . A number is declared named as n and taken as an input from…
Q: asked to write a program that converts from Celsius to Fahrenheit and Fahrenheit to Celsius, what…
A: As per company guidelines we are suppose to answer only 1 question. Kindly re-post other…
Q: Write a program that extracts from a text all dates written in format DD.MM.YYYY and prints them on…
A: re is the module in python to implement functions related to regular expressions findAll function…
Q: at a certain school, student email addresses end with @student.college.edu, while professor email…
A: Given below is the python program for the same. Note: while copying please take care of the proper…
Q: (Intro to Python) 5. Variables in Python are case sensitive so a variable X and a variable x…
A: Given : A) Variables in Python are case sensitive so a variable X and a variable x refer to two…
Q: Scanner keyboard new Scanner (System.in); String s = keyboard.next (); System.out.println (s);…
A:
COAL - Computer organization and assembly language
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
- (1) Prompt the user to enter two words and a number, storing each into separate variables. Then, output those three values on a single line separated by a space. (2) Output two passwords using a combination of the user input (3) Output the length of each password (the number of characters in the strings)to b? What value will be assigned to c?4. What will the following program display?def main():x = 1y = 3.4print(x, y)change_us(x, y)print(x, y)def change_us(a, b):a = 0b = 0print(a, b)main()Create a program that reads a duration from the user as a number of days, hours, minutes, and seconds.Compute and display the total number of seconds represented by this duration
- USE PYTHON A small shop sells 280 different items. Each item is identified by a 3 – digit code. All items that start with a zero (0) are cards, All items that start with a one (1) are sweets, All items that start with a two (2) are stationery and All items that start with a three (3) are toys. Write a program which inputs the 3 – digit code for all 280 items and outputs the number of cards, sweets, stationery and toys.Write the following task using the C programming language: Write a C program that counts "the number of occurrences of a specific word" in a previously written text file. The output is the number of occurrences of that specific word (i.e. text file content: I told you to do the dishes but you didn't -> output: The number of occurrences of the word you is: 2)Draw the flowchart for this python program ? def new_game(): guesses = [] correct_guesses = 0 question_num = 1 for key in questions: print("-------------------------") print(key) for i in options[question_num-1]: print(i) guess = input("Enter (A, B, C, or D): ") guess = guess.upper() guesses.append(guess) correct_guesses += check_answer(questions.get(key), guess) question_num += 1 display_score(correct_guesses, guesses) # -------------------------def check_answer(answer, guess): if answer == guess: print("CORRECT!") return 1 else: print("WRONG!") return 0 # -------------------------def display_score(correct_guesses, guesses): print("-------------------------") print("RESULTS") print("-------------------------") print("Answers: ", end="") for i in questions: print(questions.get(i), end=" ") print() print("Guesses: ", end="") for i in…
- ????????:Blissful number: a number where every digit is greater than its immediate left digit is called a Blissful number. (e.g. 12345 is a blissful number). A single digit number is not a blissful number.Now write a python program that takes a number from the user and checks whether it is a blissful number or not.========================================================Sample Input135789Sample Output135789 is a blissful numberExplanation1:5 is greater than 3. 7 is greater than 5. 8 is greater than 7. And 9 is greater than 8. In other words, every digit is greater than its immediate left digit. Therefore, 35789 is a blissful number================================Sample Input211Sample Output211 is a normal numberExplanation2:Here, 1 is not greater than 1. That is why it is not a blissful number.================================Sample Input35Sample Output35 is a normal numberExplanation3:Single digit number is not blissful numberC++ What does the following segment of code output to the screen (be precise)? int a = 3; if (a % 2) cout << "* * * * * * * *\n" ; cout << "* * * * \n"; a = 4; if (a % 2) cout << "* * * * * * * *\n"; cout << "* * * *\n";**** In Java Please **** Task : Please write a program or a code to calculate the frequency percentage of the occurrences of the characters in a text file.
- Create a program with c++ that allows you to view and edit the sales amounts for each month of the current year. Example of how the program should look: Console Monthly Sales program COMMAND MENU add - Add sales for a specified month view - View sales for specified month edit - Edit sales for specified month totals - View sales summary for the year exit - Exit program Command: add Three-letter Month: jan Sales Amount: 10317 Sales amount for Jan is 10,317.00. Command: add Three-letter Month: feb Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: view Three-letter Month: jan Sales Amount: 14317 Sales amount for Jan is 14,317.00. Command: edit Three-letter Month: jan Sales amount for Jan is 14,317.00. Command: totals Yearly total: 29,610.00 Monthly average: 14,805.00 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye!…Java or C++ program to display the given output -----Library System----1. Add a Student2. Add a Book3. Display All Students4. Display All Books5. Search a Student6. Search a Book7. Borrow a Book8. Display Borrowed Books9. Return a Book10. Exit ➢ When 1 is chosen, ask the user to enter the student’s information(5-digit ID number,surname, first name, age, and sex)➢ When 2 is chosen, ask the user to enter the book’s information(5-digit book number,Title, Author’s name(Surname, first name), date of purchase, and status (available/notavailable))➢ When 3 is chosen, display list of all students(5-digit ID number, surname, first name,age, and sex)➢ When 4 is chosen, display list of all books(5-digit book number, Title, Author’sname(Surname, first name), date of purchase, and status (available/not available)➢ When 5 is chosen, ask the user if he wants to search the list by Surname or IDnumber. If record is found, display the corresponding record, else display anappropriate prompt.➢ When 6 is…Which line of code reserves space in memory and which line puts a value into memory?LINE 1: int x;LINE 2: x = 1;