1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
adelina 88 [10]
3 years ago
12

// This program is supposed to display every fifth year // starting with 2017; that is, 2017, 2022, 2027, 2032, // and so on, fo

r 30 years. start Declarations num year num START_YEAR = 2017 num FACTOR = 5 num END_YEAR = 30 year = START_YEAR while year <= END_YEAR output year endif stop 1. What problems do you see in this logic? 2. Show corrected pseudocode to fix the problems. 3. Is there another way the code can be corrected and still have the same outcome? If so, please describe. 4. Implement your pseudocode in either Raptor or VBA. (submit this file) 5. Does it work? You must test your code before submitting and indicate if the program functions according to the assignment description. Explain.
Engineering
1 answer:
svp [43]3 years ago
5 0

Answer:

Explanation:

1. The problems in the above pseudocode include (but not limited to) the following

1. The end year is not properly represented.

2. Though, the factor of 5 is declared, it's not implemented as increment in the pseudocode

3. Incorrect use of control structures. (While ...... And .......Endif)

2.

Start

Start_Year = 2017

Kount = 1

While Kount <= 30

Display Start_Year

Start_Year = Start_Year + 5

Kount = Kount + 1

End While

Stop

3. Yes, by doing the following

* Apply increment of 5 to start year within the whole loop, where necessary

* Use matching control structures

While statement ends with End While (not end if, as it is in the question)

4. Using VBA

Dim Start_Year: Start_Year = 2017 ' Declare and initialise year to 2017

Dim Counter: Counter = 1 ' Declare and Initialise Counter to 1

While Count <= 30 ' Test Value of Counter; to check if the desired number of year has gotten to 30. While the condition remains value, the following code will be executed.

msgbox Start_Year ' Display the value of start year

Start_Year = Start_Year + 5 'Increase value of start year by a factor of 5

Counter = Counter + 1 'Increment Counter

Wend

5. Yes

You might be interested in
Consider the following set of processes, with the length of the CPU burst given in milliseconds:Process Burst Time PriorityP1 2
Iteru [2.4K]

Answer and Explanation:

The answer is attached below

6 0
3 years ago
Biomedical, electrical and civil engineering essay
ArbitrLikvidat [17]

Answer:

7th A good time for you arshpreet May God bless you live a long life of shapes in which class do read it and I am asking you are nagre andg my replying sooner than later this month to you arshpreet May God bless you live a long life of shapes in which class do read it and I am asking you are nagre andg my replying sooner than later this month to you arshpreet May God bless you live a long life of shapes in which class do read it and I am asking you are nagre andg my replying sooner than later this month to you arshpreet May God bless you live a long life of shapes in which class do read it and I am asking you are nagre andg my replying sooner than later this month to you arshpreet May God bless you live a long life of shapes in which class do read it and I am asking you are nagre andg my

3 0
3 years ago
A technique for resolving complex repetitive waveforms into sine or cosine waves and a DC component is known as:
tatiyna

Answer:

(A) Fourier Analysis

Explanation:

Fourier Analysis  

It is the form of study of the way a general functions can be represented via the sum of the simple trigonometric functions .

It is named after Joseph Fourier , who represented a function as a sum of its trigonometric functions and it simplifies the study of the heat transfer .

Hence ,  

The technique for resolving the complex repetitive waveforms into the sine or the cosine waves and the DC component is known as the Fourier Analysis .

7 0
4 years ago
4. Lockout/tagout (LOTO) is a safety procedure that ensures dangerous machines are properly shut off and not started up again pr
klemol [59]

Answer:true

Explanation:

5 0
4 years ago
An automobile tire with a volume of 0.8 m3 is inflated to a gage pressure of 200 kPa. Calculate the mass of air in the tire if t
saveliy_v [14]

Answer:

2.83 kg

Explanation:

Given:

Volume, V = 0.8 m³

gage pressure, P = 200 kPa

Absolute pressure = gage pressure + Atmospheric pressure

= 200 + 101 = 301 kPa = 301 × 10³ N/m²

Temperature, T = 23° C = 23 + 273 = 296 K

Now,

From the ideal gas equation

PV = mRT

Where,

m is the mass

R is the ideal gas constant = 287 J/Kg K. (for air)

thus,

301 × 10³ × 0.8 = m × 287 × 296

or

m = 2.83 kg

3 0
4 years ago
Other questions:
  • A 0.9% solution of NaCl is considered isotonic to mammalian cells. what molar concentration is this?
    10·1 answer
  • Take water density and kinematic viscosity as p=1000 kg/m3 and v= 1x10^-6 m^2/s. (c) Water flows through an orifice plate with a
    13·1 answer
  • How do you prevent a process B, that was forked from parent process A, from becoming a zombie? Choose one of the following:
    6·1 answer
  • Determine the wattmeter reading when it is connected to resistor load.​
    11·1 answer
  • Does anyone know the answer to this ??? It’s 16 points
    8·1 answer
  • Hello it's my new id<br>I am numu ​
    15·1 answer
  • Answer my question I will mark brainliest
    13·2 answers
  • Visual perception can be improved through perceptual skills development.<br> False<br> True
    7·1 answer
  • 4. A banking system provides users with several services:
    8·1 answer
  • a) find the state-space representation of the system. b) is the system controllable? why? c) is the system observable? why
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!