Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN: 9781337102124
Author: Diane Zak
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
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
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");
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 MarkThis question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
bartleby
Step by stepSolved in 2 steps
Knowledge Booster
Background pattern image
Recommended textbooks for you
- Text book imageProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningText book imageCOMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE LText book imageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- Text book imageNew Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage LearningText book imageText book imageNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
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
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage