answer.
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
Vinvika [58]
2 years ago
15

Draw a flowchart and write pseudocode to represent the logic of a program that allows the user to enter a value for hours worked

in a day. The program calculates the hours worked in a five-day week, and the hours worked in a 252-day work year. The program outputs all the results.

Computers and Technology
1 answer:
vova2212 [387]2 years ago
5 0

Answer:

Pseudo code:

1. declare a variable "hour_worked".

  1.1 read the hours worked in a day by user and assign it to "hour_worked".  

2.Calculate total work in a five-day week as "Week_work=5*hour_worked".

3.Calculate total work in a 252-day year as "year_work=252*hour_worked".

4. print the value of "Week_work" and "year_work".

5.End the program.

// here is implementation in c++.

#include <bits/stdc++.h>

using namespace std;

int main()

{

   float hour_worked;

  cout<<"enter hours worked in a day: ";

   cin>>hour_worked;

   cout<<"5-day week work is: "<<5*hour_worked<<endl;

   cout<<"252-day year work is: "<<252*hour_worked<<endl;

   return 0;

}

Output:

enter hours worked in a day: 5.5

5-day week work is: 27.5

252-day year work is: 1386

Flowchart:

You might be interested in
Without using any additional variables, and without changing the values of ndays or the elements of the parkingTickets array, wr
dusya [7]

Answer:

Explanation:

mostTickets=0;

for (k=0; k< ndays; k++){

if (parkingTickets[k]>mostTickets) mostTickets=parkingTickets[k];

}

7 0
2 years ago
Write a loop that outputs the numbers in a list named salaries. The outputs should be formatted in a column that is right-justif
GalinKa [24]

Answer:

Following is the loop statement in the Python programming language

salaries=[93.85967,4232.32,13343.3434] #storing the values in salaries

for k in salaries:#iterating the loop

   print("%12f"%round(k,2))# print the width of 12 and a precision of 2

   Output:

  93.860000

4232.320000

13343.340000

Explanation:

Following is the description of the statement

  • Declared a dictionary "salaries" and initialized some values into it.
  • iterating the for a loop .
  • In this for loop print the width 12 and a precision of 2 .The print statement in python will
  •  print the data with  width 12 and a precision of 2 in the console window

7 0
2 years ago
What is illustrated in the cells to the right of the Fourth Quarter column?
beks73 [17]
Photosynthesis is illustrated in the cells to the right of the fourth column
5 0
2 years ago
Read 2 more answers
Always refill your gas tank well before____.
mash [69]

Aloha~. My name is Zalgo and I am here to be of assistance with your problem. The answer to your question is D. The minimum amount of gas you can leave in your vehicle is 1/4 Full or 3/4 Empty. The most amount you will need is quite close to when your gas tank is full (so 1/4 Empty or 3/4 Full).

Hope this helps.

"Stay Brainly and stay proud!" - Zalgo

4 0
2 years ago
Read 2 more answers
Ethan is a systems developer. He is working on a system where he will implement independent solutions for different processes. W
Igoryamba
The correct answer for this question is this one: " c.huge initial investment"
<span>Ethan is a systems developer. He is working on a system where he will implement independent solutions for different processes. The possible drawback of using such a system is that </span><span><u>huge initial investment</u>
</span>
Hope this helps answer your question and have a nice day ahead.
8 0
2 years ago
Other questions:
  • In cell B16, enter a function to calculate the total attendance for the years 2014 through 2018 using the totals in the range B1
    10·1 answer
  • In evaluating the precedence rules used by Python, what statement is accurate? a. Addition and subtraction are evaluated after a
    8·2 answers
  • A _________________________ can use SOAP headers to carry meta information in its messages. A. Web service B. REST Service C. Co
    14·1 answer
  • He volume of a sphere is 4/3πr3, where π has the value of "pi" given in Section 2.1 of your textbook. Write a function called pr
    5·1 answer
  • Based on virtualization technologies, how many types can we classify them? Please give a brief statement on each of them?
    14·1 answer
  • Create a procedure named FindLargest that receives two parameters: a pointer to a signed doubleword array, and a count of the ar
    13·1 answer
  • Design an application for Bob's E-Z Loans. The application accepts a client's loan amount and monthly payment amount. Output the
    8·1 answer
  • Why is it important for element IDs to have meaningful names?
    11·1 answer
  • Is cheque money? give reason​
    9·1 answer
  • Explain the emerging trends in microcomputer technology in relation to size​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!