Computers and Technology, 06.12.2019 20:31 rubensanchez625
The code below uses the space macro which simply displays the number of blank spaces specified by its argument. what is the first number printed to the screen after this code executes? (ignore the . from canvas)
main proc
push 4
push 10
call rcrsn
exit
main endp
rcrsn proc
push ebp
mov ebp, esp
mov eax,[ebp + 12]
mov ebx,[ebp + 8]
cmp eax, ebx
jl recurse
jmp quit
recurse:
inc eax
push eax
push ebx
call rcrsn
mov eax,[ebp + 12]
call writedec
space 2
quit:
pop ebp
ret 8
rcrsn endp
Answers: 1
Computers and Technology, 22.06.2019 21:00
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr.nextdouble(); minutestraveled = scnr.nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system.out.println("miles: " + milestraveled); } }
Answers: 2
Computers and Technology, 24.06.2019 09:50
Create a string list. 2. use console.readline() to collect values of firstname, lastname, street, city, state, zip, save them to list. 3. write a simple linq statement, call method uppercasewords() to change first letter to uppercase. 4. create a foreach statment to display the information. public static string uppercasewords(string value) { char[] array = value.tochararray(); if (array.length > = 1) { if (char.islower(array[0])) { array[0] = char.toupper(array[0]); } } for (int i = 1; i < array.length; i++) { if (array[i - 1] == ' ') { if (char.islower(array[i])) { array[i] = char.toupper(array[i]); } } } return new string(array);
Answers: 3
Computers and Technology, 25.06.2019 08:50
1. define independent-set as the problem that takes a graph g and an integer k and asks whether g contains an independent set of vertices of size k. that is, g contains a set i of vertices of size k such that, for any v and w in i, there is no edge (v,w) in g. show that independent-set is np-complete.
Answers: 3
Computers and Technology, 25.06.2019 18:30
Write a function float computearea(int *v1, int *v2, int shape )that computes the area of fourbasicgeometric entities. the geometric entity will be identified by the argument shape which is 1 for triangle, 2 for square/rectangleand 3 for circle. the arguments v1 and v2 are pointers to the two arguments defining the shape. for circle v1 is a pointer to the diameter of the circle, v2 is null, for rectangle/square, v1 and v2 are pointers to the height and width for triangle v1 is a pointer to the the base and v2 points to the height of the triangle.
Answers: 2
The code below uses the space macro which simply displays the number of blank spaces specified by it...
Mathematics, 20.09.2020 14:01
English, 20.09.2020 14:01
Computers and Technology, 20.09.2020 14:01
English, 20.09.2020 14:01
Business, 20.09.2020 14:01
Health, 20.09.2020 14:01
Mathematics, 20.09.2020 14:01
Mathematics, 20.09.2020 14:01
Mathematics, 20.09.2020 14:01
Mathematics, 20.09.2020 14:01
History, 20.09.2020 14:01
History, 20.09.2020 14:01