Write an if statement that assigns 20 to the variable y, and assigns 40 to the variable
Question:
Write an if statement that assigns 20 to the variable y, and assigns 40 to the variable z if the variable x is greater than 100.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 100% (1 review)
The following if statement assigns 20 to the variable y a...View the full answer
Answered By
John Aketch
I have a 10 years tutoring experience and I have helped thousands of students to accomplish their educational endeavors globally. What interests me most is when I see my students being succeeding in their classwork. I am confident that I will bring a great change to thins organization if granted the opportunity. Thanks
5.00+
8+ Reviews
18+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
1.Write an it statement that assigns 20 to the variable y and assigns 40 to the variable z it the variable x is greater than 100. 2. Write an if statement that assigns 0 to the variable b and assigns...
-
Specialist Printers Pty Ltd commenced business on 1 July 2018. o On 30 August 2018, the business purchased a second-hand truck for $38,500 (GST Inclusive) for deliveries. Stamp duty amounted to...
-
Write an if-else statement that assigns 20 to the variable y if the variable x is greater than 100. Otherwise, it should assign 0 to the variable y.
-
Discuss the advantages or disadvantages of subsidiary legislations in the Malaysian legal system in dealing with Covid-19 vaccination. Please write down the legal terms for discussion. Please do not...
-
Dillard Travey receives 5,000 tripods annually from Quality Suppliers to meet his annual demand. Dillard runs a large photographic outlet, and the tripods are used primarily with 35-mm cameras. The...
-
Consider the CT signal \(x(t)=\delta(t+4)-\delta(t-4)\). Sketch \(\int x(t) d t\) and find the energy of the signal (Fig. 1.89). Energy \(E=8\). Figure 1.89 -4 [18(1+4)-8(1-4)]dt 0 4 +
-
Refer to the information in QS 19-16. The company sells its product for $50 per unit. Due to new regulations, the company must now incur $2 per unit of hazardous waste disposal costs and $8,500 per...
-
Kincaid Company sells flags with team logos. Kincaid has fixed costs of $583,200 per year plus variable costs of $4.80 per flag. Each flag sells for $12.00. Requirements 1. Use the income statement...
-
Compute the Internet checksum value for these two 16-bit words: 01101111 11110001 10101001 11000111
-
Write a program that asks the user to enter an integer. The program should display Positive if the number is greater than 0, Negative if the number is less than 0, and Zero if the number is equal to...
-
You can write any program using only sequence structures.
-
What are techniques for reducing the risk of drop off, the distortion of a message being sent from top management to subordinates?
-
1) Your delivery business uses a rental truck. In an attempt to estimate future truck rental costs you have collected the following information: Month January February March April May June Miles...
-
Material aluminum copper iron nichrome platinum silver Resistivity (p 92 m) 2.82 x 10-8 1.72 x 10-8 9.68 x 10-8 100 x 10-8 10.0 x 10-8 1.63 x 10-8 Assume the problems below are at the same...
-
A motorboat travels at 12.4 m/s. It heads east straight across a river 168 m wide. A. If the water flows down (south) at a rate of 4.7 m/s, and the wind blows up (north) at a rate of 1.2 m/s, what is...
-
Consider the following algorithm: 1: COMPLEX (n) 2: j = 1 3: a - 0 4: 5: 6: 7: while j
-
A medium sized "air tanker" (water bomber) can drop 3000 gallons of water on a wildfire at a time. Suppose this plane was called into action when a wildfire caused by lightning strikes erupts in...
-
Refer to the Appendix to Chapter to identify the ISA related to disclosures of related party transactions. Locate that ISA using appropriate resources. Refer to paragraph A47 of the standard and...
-
Economic feasibility is an important guideline in designing cost accounting systems. Do you agree? Explain.
-
Assume that a program has two String variables named str1 and str2. Write a pseudocode statement that assigns an all uppercase version of str1 to the str2 variable.
-
Look at the following pseudocode function definition: a. What is the name of the function? b. What type of data does the function return? c. Given the function definition, what will the following...
-
What is the purpose of the isInteger and isReal functions described in this chapter?
-
Planet A has mass 3M and radius R, while Planet B has mass 4M and radius 2R. They are separated by center-to-center distance 8R. A rock is released halfway between the planets' centers at point O. It...
-
Jupiter has 67 confirmed moons. Four of the sixty-seven dominate the others (in terms of mass) and data of these four are given in the table. Based on the information given, calculate the mass of...
-
In the upper 10 km of the crust, the geothermal gradient is typically about 25C per km, but it can range from 15C/km to 50C/km. In the chart below, plot these three geothermal gradients (15C/km,...
Study smarter with the SolutionInn App