Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
Bartleby Related Questions Icon

Related questions

Question

please help me I have to type what's in these pictures to convert the pictured code to text

[画像:// Populate the jumpCodes HashMap jumpCodes.put(key: "null", value: "000"); jumpCodes.put(key: "JGT", value:"001"); jumpCodes.put(key: "JEQ", value:"010"); jumpCodes.put(key: "JGE", value: "011"); jumpCodes.put(key: "JLT", value: "100"); jumpCodes.put(key: "JNE", value:"101"); jumpCodes.put(key: "JLE", value:"110"); jumpCodes.put(key: "JMP", value: "111"); // Populate the compCodes HashMap // a = 0 (21 computations) compCodes.put(key: "0", value: "0101010"); compCodes.put(key: "1", value: "0111111"); compCodes.put(key:"-1", value: "0111010"); compCodes.put(key: "D", value: "0001100"); compCodes.put(key: "A", value: "0110000"); compCodes.put(key:"!D", value: "0001101"); compCodes.put(key: "!A", value: "0110001"); compCodes.put(key: "-D", value: "0001111"); compCodes.put(key: "-A", value: "0110011"); compCodes.put(key: "D+1", value: "0011111");]
expand button
Transcribed Image Text:// Populate the jumpCodes HashMap jumpCodes.put(key: "null", value: "000"); jumpCodes.put(key: "JGT", value:"001"); jumpCodes.put(key: "JEQ", value:"010"); jumpCodes.put(key: "JGE", value: "011"); jumpCodes.put(key: "JLT", value: "100"); jumpCodes.put(key: "JNE", value:"101"); jumpCodes.put(key: "JLE", value:"110"); jumpCodes.put(key: "JMP", value: "111"); // Populate the compCodes HashMap // a = 0 (21 computations) compCodes.put(key: "0", value: "0101010"); compCodes.put(key: "1", value: "0111111"); compCodes.put(key:"-1", value: "0111010"); compCodes.put(key: "D", value: "0001100"); compCodes.put(key: "A", value: "0110000"); compCodes.put(key:"!D", value: "0001101"); compCodes.put(key: "!A", value: "0110001"); compCodes.put(key: "-D", value: "0001111"); compCodes.put(key: "-A", value: "0110011"); compCodes.put(key: "D+1", value: "0011111");
[画像:J Cinstruction.java > Cinstruction public class CInstruction extends Instruction { private static HashMap<String, String> jumpCodes = new HashMap<>(initialCapacity: private static HashMap<String, String> compCodes = new HashMap<>(initialCapacity:: static // Populate the destCodes HashMap destCodes.put(key: "null", value: "000"); destCodes.put(key: "M", value: "001"); destCodes.put(key: "D", value: "010"); destCodes.put(key: "MD", value: "011"); destCodes.put(key: "A", value: "100"); destCodes.put(key: "AM", value:"101"); destCodes.put(key: "AD", value: "110"); destCodes.put(key: "AMD", value: "111"); // Populate the jumpCodes HashMap jumpCodes.put(key: "null", value: "000"); jumpCodes.put(key: "T", value: "001"); jumpCodes.put(key: "JEQ", value: "010"); jumpCodes.put(key: "JGE", value: "011"); jumpCodes.put(key: "JLT", value: "100"); jumpCodes.put(key: "JNE", value:"101"); jumpCodes.put(key: "JLE", value: "110"); jumpCodes.put(key: "JMP", value:"111");]
expand button
Transcribed Image Text:J Cinstruction.java > Cinstruction public class CInstruction extends Instruction { private static HashMap<String, String> jumpCodes = new HashMap<>(initialCapacity: private static HashMap<String, String> compCodes = new HashMap<>(initialCapacity:: static // Populate the destCodes HashMap destCodes.put(key: "null", value: "000"); destCodes.put(key: "M", value: "001"); destCodes.put(key: "D", value: "010"); destCodes.put(key: "MD", value: "011"); destCodes.put(key: "A", value: "100"); destCodes.put(key: "AM", value:"101"); destCodes.put(key: "AD", value: "110"); destCodes.put(key: "AMD", value: "111"); // Populate the jumpCodes HashMap jumpCodes.put(key: "null", value: "000"); jumpCodes.put(key: "T", value: "001"); jumpCodes.put(key: "JEQ", value: "010"); jumpCodes.put(key: "JGE", value: "011"); jumpCodes.put(key: "JLT", value: "100"); jumpCodes.put(key: "JNE", value:"101"); jumpCodes.put(key: "JLE", value: "110"); jumpCodes.put(key: "JMP", value:"111");
Expert Solution
Check Mark
Knowledge Booster
Background pattern image
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Cengage Learning
Text book image
CMPTR
Computer Science
ISBN:9781337681872
Author:PINARD
Publisher:Cengage
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage