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
Vinvika [58]
3 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]3 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
When using a public computer or network, you should always _______. A. install a firewall. B. run an anti-virus program beforeha
SpyIntel [72]
Answer is c log out of any sites you have logged into ..bc it's a public computer
5 0
3 years ago
Read 2 more answers
10 points
Bingel [31]

Answer:

cool this is cool

Explanation:reEEEEEEE

6 0
3 years ago
Consider the code block below. What is the value of amount when this method is called twice, the first time using cookieJar(7) a
RUDIKE [14]

Answer:

C. 22

Explanation:

Given that the argument is being passed by value, there is no memory to consider.  So cookieJar(7) returns 7 and cookieJar(22) returns 22.

If the argument parameter was passed by reference or pointer, then perhaps the value from cookieJar(7) would be considered with cookieJar(22).

Note, this code block really isn't doing anything other than returning the value passed into it.  The "amount" variable is immediately set to 0, and then the value passed in is added to amount (which is 0), and returns.  The following code could replace this function:

public static int cookieJar(int addCookies){

return addCookies;

}

The above code will return an equivalent output to the given code.

Notice, the function is not dependent on any previous call, so the value for each is unique to the call itself, i.e., cookieJar(22) returns 22 and cookieJar(7) returns 7.

So, C. 22 would be correct.

3 0
3 years ago
Ecommerce sites sell this to generate income
prisoha [69]
They sell products through ads.
7 0
3 years ago
Different he launc.<br>in function are available with MS-Excel<br>Many​
Kruka [31]

functions are available with MS-Excel..

1.count and sum

2.cell references

3.data and Time

4.text

5.lookup and reference

6.finanical

7.round

8.array formula

7 0
3 years ago
Other questions:
  • What is the first stage of perception
    6·2 answers
  • Key Categories: more libraries and thousands of functions
    7·1 answer
  • Which of the following agricultural clusters would require administrative and financial training? biotechnology agribusiness sys
    8·1 answer
  • Complete the following statements by choosing the correct answer from the drop-down menus.
    14·1 answer
  • I need help in creating a Java Program; To calculate the chapter from which you solve the programming exercise, below are the re
    7·1 answer
  • Examine the following algorithm.
    9·1 answer
  • What episode and Season of Simpsons is this
    10·1 answer
  • List how much hard disk capacity you recommend, and write a sentence explaining why.
    8·1 answer
  • Which device do engineers use to drive a system of gears?
    15·2 answers
  • Why isn't image display working on wacom tablet.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!