subject

1.16 ** zyLab: ASCII Art In this lab, you will produce some ASCII art. As with the previous lab, use Diff Checker to compare your programs output to that of the examples before submitting to zyBooks for grading. (1) Output this house. * * * * ** * * * * * ** * * * * * _ * * | | * * | | * * * * * * (2) Below the house, output two blank lines followed by this cat and the caption afterwards. /\___/\ (= '.' =) ("") ("") I live in the "big" house above! Hint: A backslash \ in a string acts as an escape character, such as with a newline \n or a tab* \t. So, to print an actual backslash, escape that backslash by prepending another backslash. Ex: The following prints a single backslash: System. out. println("\\"); Similarly, since " denotes the beginning or end of a string literal in Java, to include within a string literal precede with a backslash i. e (\") (3) Program commenting and style is not meant for the compiler which only requires that you use correct syntax. Programmers use good program commenting and style to ensure that their source code is easily read and understood by people. See CS 200 Style Guide. Created by: Suleman

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:40
Consider the simple 3-station assembly line illustrated below, where the 2 machines at station 1 are parallel, i.e., the product only needs to go through one of the 2 machines before proceeding to station 2.what is the throughput time of this process?
Answers: 2
question
Computers and Technology, 22.06.2019 23:50
You need to design a circuit that implements the functions in the following table: s0 s1 function0 0 a + 10 1 a – b1 0 a + b1 1 a – 1s0 and s1 are 1-bit control inputs to select the function of the circuit. inputs a and b are 4-bitnumbers in 2s complement form. the output is also a 4-bit number in 2s complement form.you are allowed to use only one ttl 7483 4-bit adder to implement all the functions. but anynumber of other components (except the adder) can be used.hint: design a combinational logic circuit to modify the input b and the “carry input” of theadder depending on the control inputs s0 and s1.important: lab grade will depend on the working of the circuit & will be checked of by your labinstructor.1. is the output valid for the following input combinations: a. s0 = 0, s1 = 0, a = 7, b = 3? b. s0 = 0, s1 = 1, a = 7, b = 3? c. s0 = 1, s1 = 0, a = -4, b = -5? d. s0 = 1, s1 = 1, a = -8, b = 6? 2. what is the range of inputs (for both a and b) that will produce the valid output for all the functions?
Answers: 3
question
Computers and Technology, 23.06.2019 03:10
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
question
Computers and Technology, 23.06.2019 06:40
How many nibbles can be stored in a 16-bit word?
Answers: 1
You know the right answer?
1.16 ** zyLab: ASCII Art In this lab, you will produce some ASCII art. As with the previous lab, use...
Questions
question
Mathematics, 06.03.2020 18:57
question
Health, 06.03.2020 18:57
Questions on the website: 13722367