Write a subroutine subprogram to calculate the value of a factorial number,
Q: Write a program in e language to calculate two real numbers. The operation you are going to used are…
A: Write a program in c language to calculate two real numbers. The operation you are going to used are…
Q: ur name by character through base indirect addressing
A: Write an ALP that display a string of your name by character through base indirect addressing mode…
Q: Write Palindrome program in C.
A: Given program is Write Palindrome program in C.
Q: Debug C language main() { int num, rem, reverse_num, temp, start = 70, end = 100;…
A: Here I have assumed that main() is line number 1 and the remaining lines are 2, 3, 4 so on. Now the…
Q: If the integer sent into it is odd, it returns 1 if it is not 1 its returning 0 to backside. With c…
A: #include <stdio.h> //creating function int function(int n){ //check if n is odd…
Q: 14- In a Fortran program x=10.0, y=4.0 , w= 2.0, what is the value of Z if Z=(x+y)/(w**2+3.0) *
A: Program addreal :: x=10.0, y=4.0, w=2.10, zz=(x+y)/(w**2+3.0)print *,zEnd Program add
Q: Example: A simple program in Fortran 90 to divided two integers, and then display the integers and…
A:
Q: The amount of computer instructions required for each source-level statement is calculated by this…
A: Introduction: Anything that your high-level programming language alludes to as a ‘statement’ Much of…
Q: e a c++ code on hotel room reservation system
A: #include<iostream> #include<fstream> #include<windows.h> #include<string>…
Q: Create a c program that gives the user to display the sum of the first and second numbers,…
A: Here, Code instruction is given.
Q: Draw a block diagram of a microprocessor-based seismic instrumentation system (seismometer) using…
A:
Q: Create a program in the C++ programming language To calculate the value of the following equation: X…
A: Assuming you meant X=a3 +b2+c #include <iostream> using namespace std; int main(){ int…
Q: What is output (printed) by the program (pseudocode) shown below. Assuming pass-by-reference…
A: I have given an answer in step 2.
Q: Find the mistakes in this VB.net code using VB.net language Module Module1 Sub Main() Dim x…
A:
Q: Write a program in C++ to print the sum, difference, product, quotient and remainder of two numbers…
A: As per our guidelines we are supposed to answer only one question Kindly repost other question as a…
Q: 5. Design a C++ program that simulates a simple calculator using switch structure. rogram will take…
A: C++ code: # include <iostream>#include <cmath>using namespace std; int main(){ int…
Q: The new operator is used to reserve a number of bytes in the stack of the virtual address space of a…
A: Lets see the solution.
Q: D a. multiprogramm O b. sequential O c. concurrent
A: Multi tasking:
Q: In Fortran programming language: 1. Take input two integers x,y from user and print their sum in…
A: Write a Fortran program to : Take input two integers x,y from user and print their sum in output.
Q: C language:- Instructions Write a program to take inputs from user (Hours and Rate) then compute the…
A: The above question is solved in step 2 :-
Q: PROGRAM 5: Big Number! Write an HLA Assembly language program that prompts for a specific int8 value…
A: Here we have given c code with assembly language code for generating a pattern. you can find the…
Q: Write a C program to perform addition, subtraction, multiplication and division of two numbers using…
A: switch(expression) { case value-1: //statements break; case value-2:…
Q: Write c++ program type casting convert double to float and double to int.
A: We need to write a C++ program to typecast double to float and double to int data type.
Q: In Fortran language: 2. Take input two Integers a,b from user and print their sum in output.
A: Required:- In Fortran language: 2. Take input two Integers a,b from the user and print their sum in…
Q: The instructions that are used to call a subroutine from the main program and return to the main…
A: Role of CALL is to call a subroutine and RET is used for returning to main.
Q: Develop an ATM simulator using C programming language.
A: #include <stdio.h>unsigned long amount=2000, deposition, withdrawal;int pin, choice, k;char…
Q: convenient subroutine has a single entry point only a single exit point only O both of them
A: Subroutine is a sequence of program instructions which performs a specific task. This subroutine is…
Q: Assembly language Write an assembly language program that keeps on prompting user to enter a small…
A: .MODEL SMALL .STACK 100H .DATA PROMPT_1 DB \'Enter a small character : $\' PROMPT_2 DB…
Q: Give Examples of Immediate value.
A: Immediate value: It is a piece of data stored in register memory as a part of instruction. Some of…
Q: Create a C program that can do the following. 1. Create a C program for a Coffee shop business. The…
A: Program code in C is given in step 2
Q: The amount of computer instructions required for each source-level statement is determined by this…
A: The amount of computer instructions required for each source-level statement is determined by this…
Q: Create a C program that can do the following. 1. Create a C program for the Restaurant…
A: the perfect code is given below:-
Q: Write a subprogramme to find the largest out of three numbers (x1, x2, x3)
A: Program: Program Hello implicit none integer:: x1,x2,x3,large, counter=0 write(*,*)'Enter 3…
Q: Create a C program for a Coffee shop business. The system can do the following task: Can register…
A: I have worked with the program and got an implementation which works but few more modifications…
Q: 3-First statement in a FORTRAN is 4- Set x-2.0, a=2.0m and b-4.0. What is the value of y if…
A: Fortran is a programming language which is used in aeroplane structures and automation designs.
Q: rogramming language c Instruction Copy the code into the space provided below and correct…
A: 1) int main() is correct 2)a after single comma(,) is correct ,, is wrong 3)printf("enter first…
Q: Implement the following procedure in C language to generate prime numbers from 1 to 100 into a…
A: C code: #include<stdio.h> int main() { int i, j; int num[100];…
Q: O Fill out the blanks with an appropriate answer 1- A internal subroutine can be written in a main…
A: The Fortran subroutines are the block of code which are executed when it calls. The subroutines are…
Q: Please use C Language Write a program that writes any number of integer values in a field that is to…
A: C program: #include <stdio.h> #include <stdlib.h> int main(){ int i = 0; int x…
Q: T / F -The semantics of a PL describe the sequence of symbols that make up valid programs 7. T / F…
A: Given 6. T / F -The semantics of a PL describe the sequence of symbols that make up valid…
Q: Using box and pointer notation, draw a picture of the nodes created by the first loop in the tester…
A: this question is about creation of the node using box and pointer notation.
Q: Write a subprogramme to calculate the area and perimeter of a rectangle with dimensions (x1 and x2)…
A: Since no programming language is mentioned I am using c language. Algorithm: The formula used in…
Q: 2. In C++ an integer is of 4 Bytes. Write a C++ program to print the maximum and the minimum value…
A: In C++ an integer is of 4 Bytes. Write a C++ program to print the maximum and the minimum value that…
Q: 3. Paging mechanisms helps to translate logical addresses into a. Program addresses b. Stack c.…
A: Paging mechanisms helps to translate logical addresses into Physical address Paging is one of the…
Q: In Fortran F95 language prompt the user to enter the radius of a circle and in output print the…
A: Given: Radius of a circle taken input from user. Let it be stored in an REAL variable r.…
Q: Problem Statement: Design an 8-bit calculator in assembly language using emu 8086 that perform the…
A: 8085 program to add two 8 bit numbers: Example : Algorithm : Load the first number from memory…
Q: Lesson in Computer fundamentals of Pogramming please help, th
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it in…
Q: Using C++ oop Write a C++ program that takes a float number from the user then convert it to…
A: Implicit Type Conversion:- It's sometimes referred to as 'automatic type conversion.' Without any…
Q: In Fortran programming language: 1. Take input two integers x,y from user and print their product…
A: Write a Fortran Program to : Take input two integers x,y from user and print their product in…
Q: Design and write a C program that calculates the average for any number of subjects. The program…
A: #include <stdio.h> int main(){ float subjectCount=0, marksSum=0, average=0, inputMarks; int…
Step by step
Solved in 2 steps
- A string of readings is stored in memory locations starting at XX70H, and the end of the string is indicated by the byte 0DH. Write a program to check each byte in the string, and count the number of bytes in the range of 30H to 39H (both inclusive). Store the result in memory locations starting from XX90H Data(H) 35, 2F, 30, 39, 3A, 37, 7F, 31, 0D, 32write a statement that performs the specified task. Assume that double variables number1 and number2 have been declared and that number1 has been initialized to 7.3 . "Display the address stored in doublePtr . Is the address the same as that of number1 ?"31.Create a main function and do the following sequence of instructions: a. Declare two integer variables r and s. b. Declare two pointer to an integer variables a and b. c. Assign the following values: r = 50, s = 25 d. Let pointer a points to the address of r. e. Print the value and address of r using a. f. Increment the value of r by 15 using a. g. Let pointer b points to the address of s. h. Print the value and address of s using b. i. Add the value r to the value stored in s using their pointer variables. j. Let a points to the address pointed to by b. k. Change the value of s to 50 using a. l. Print the values and address pointed by a and b.
- Complete the following sentences by filling the right word To check if two string variables string1 and string2 refer to the same memory address we use the command ………Create a main function and do the following sequence of instructions: a. Declare two integer variables r and s. b. Declare two pointer to an integer variables a and b. c. Assign the following values: r = 50, s = 25 d. Let pointer a points to the address of r. e. Print the value and address of r using a. f. Increment the value of r by 15 using a. g. Let pointer b points to the address of s. h. Print the value and address of s using b. i. Add the value r to the value stored in s using their pointer variables. j. Let a points to the address pointed to by b. k. Change the value of s to 50 using a. l. Print the values and address pointed by a and b.Consider the following C++ code snippet: int cards[3]; for (int i = 0; i < 3; i++) cards[i] = 0; Choose the best statement: A) This code will compile and run but causes an out-of-range memory write. B) This code will compile and has no apparent issues. C) This code will not compile as written. D) This code shows an example of dynamic memory allocation.
- Input This program will create a date in the Microsoft Disk Operating System File Allocation Table (DOS FAT) date format. You should write a sequence of instructions which receives three variables in registers as input: M - a month between 1 and 12 (in register 1) D - a day between 1 and 31 (in register 2) Y - a four-digit year value between 1980 and 2127 inclusive (in register 3) Processing: You must start by validating that these values are all within the appropriate ranges (1-12, 1-31, 1980-2127). If not, place a value of minus one in register 0 and end the program. Then use shift and bitwise instructions to create a Microsoft DOS FAT file system date. This has the format: Year in bits 15..09 Month in bits 08..05 Day in bits 04..00 This is a 16-bit number. The upper bits (31..16) should be set to zero. Output: Output shall be placed in register zero. If any of the parameters are invalid, place a value of minus one in register 0. Grading: Correct output values for selected…You are required to make changes in the below programs and introduce the use of compaction where required. #include<stdio.h> #include<conio.h> main() { int ms, bs, nob, ef,n, mp[10],tif=0; int i,p=0; clrscr(); printf("Enter the total memory available (in Bytes) -- "); scanf("%d",&ms); printf("Enter the block size (in Bytes) -- "); scanf("%d", &bs); nob=ms/bs; ef=ms - nob*bs; printf("\nEnter the number of processes -- "); scanf("%d",&n); for(i=0;i<n;i++) { printf("Enter memory required for process %d (in Bytes)-- ",i+1); scanf("%d",&mp[i]); } printf("\nNo. of Blocks available in memory -- %d",nob); printf("\n\nPROCESS\tMEMORY REQUIRED\t ALLOCATED\tINTERNAL FRAGMENTATION"); for(i=0;i<n && p<nob;i++) { printf("\n %d\t\t%d",i+1,mp[i]); if(mp[i] > bs) printf("\t\tNO\t\t---"); else { printf("\t\tYES\t%d",bs-mp[i]);tif = tif + bs-mp[i]; p++; } } if(i<n) printf("\nMemory is Full, Remaining Processes cannot be accomodated"); printf("\n\nTotal…please help me answer this question I will give you a good rating Thank you! In c++ please 1 #include <sys/types.h> 2 #include <sys/wait.h> 3 #include <unistd.h> 4 #include <stdlib.h> 5 6 #include <iostream> 7 8 using namespace std; 9 10 11 // Given a number, this function should print the associated generation 12 // of the child. along with the child's process ID and the parent's process ID. 13 // 14 // Generations should be: 15 // 0 - Parent 16 // 1 - Child 17 // 2 - Grandchild 18 // 3 - Great Grandchild 19 // 4 - Great Great Grandchild 20 // etc. 21 // 22 // Examples: 23 // 24 // printGeneration(1): Child. pid: <pid>: ppid: <ppid> 25 // printGeneration(3): Great Grandchild. pid: <pid> ppid: <ppid> 26 // 27 void printGeneration(int generation) 28 { 29 // TODO: Add Implementation of printGeneration here 30 } 31 32 33 int main(int argc, char ** argv) 34 { 35 // TODO: The program should take a single numeric command line…
- Hello I need help with the following question, I have provided my work that I have done and an example of completed work from the class. This is the question I need help with. A system currently accessing 3.8 G bytes of RAM and 10 M bytes of ROM. Compute the number of address lines required to access the designated storage. For a given # of lines how many more storage space is accessible? Currently out of 3.8 G, 3 G is used by the system programs, .4 G by an application. Can we expand the memory by another 890 M to support a new application? show total storage use and available. Show all your work.Question 5 Write a program that reads 10 characters from the keyboard and then print the characters to the screen in reverse order. Use a loop, the keyboard interrupt 21h, the console interrupt 10h and the svstem stack to Implement your solution Full explain this question and text typing work only thanksWhat is the size of Tray in the C snippet shown below? (Assume that 1 character occupies 1 byte) typedef char x[5];x Tray[3]; Select one: a. None of the mentioned b. 3 bytes c. 8 bytes d. 12 bytes