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
fgiga [73]
4 years ago
12

// This pseudocode is intended to display // employee net pay values. All employees have a standard // $45 deduction from their

checks. // If an employee does not earn enough to cover the deduction, // an error message is displayed. // This example is modularized. start Declarations string name string EOFNAME = "ZZZZ" while name not equal to EOFNAME housekeeping() endwhile while name not equal to EOFNAME mainLoop() endwhile while name not equal to EOFNAME finish() endwhile stop housekeeping() output "Enter first name or ", EOFNAME, " to quit " return mainLoop() Declarations num hours num rate num DEDUCTION = 45 num net output "Enter hours worked for ", name input hours output "Enter hourly rate for ", name input rate gross = hours * rate net = gross - DEDUCTION if net > 0 then output "Net pay for ", name, " is ", net else output "Deductions not covered. Net is 0." endif output "Enter next name or ", EOFNAME, " to quit " input name return finish() output "End of job" return
Computers and Technology
1 answer:
Vikki [24]4 years ago
3 0

Answer:

C++ code is given below

Explanation:

#include<iostream>

#include <cstring>

using namespace std;

int housekeeping(string EOFNAME);

int mainLoop(string name,string EOFNAME);

int finish();

void main()

{

  string name;

  string EOFNAME = "ZZZZ";

  cout << "enter the name" << endl;

  cin >> name;

  if (name != EOFNAME)

  {

      housekeeping(EOFNAME);

  }

  if (name != EOFNAME)

  {

      mainLoop(name , EOFNAME);

  }

  if (name != EOFNAME)

  {

      finish();

  }

  system("pause");

}

int housekeeping(string EOFNAME)

{  

  cout << "enter first name " << EOFNAME << " to quit " << endl;

  return 0;

}

int mainLoop(string name, string EOFNAME)

{  

  int hours;

  int rate,gross;

  int DEDUCTION = 45;

  int net;

  cout << "enter hours worked for " << name << endl;

  cin >> hours;

  cout << "enter hourly rate for " << name << endl;

  cin >> rate;

  gross = hours*rate;

  net = gross - DEDUCTION;

  if (net > 0)

  {

      cout << "net pay for " << name << " is " << net << endl;

  }

  else

  {

      cout << "dedections not covered.net is 0.";

  }

  cout << "enter next name or " << EOFNAME << " to quit" << endl;

  cin >> name;

  return 0;

}

int finish()

{

  cout << "end of job"<<endl;

  return 0;

}

You might be interested in
Explain any two computer technologies that has improved e commerce
Elena-2011 [213]
1- AI and chatbots for customer communications -

Artificial Intelligence plays an important role in everyday life, having a major impact on how we live and work. There are several examples of AI and automation tools with customer service applications for your business, including voice-powered assistants such as Apple’s Siri, Google’s home and Amazon Echo. Research shows that 45% of millennials are already using this type of voice activated search for online shopping.

Chatbots and virtual assistants represent the future for businesses. Some are already integrating chatbots in their systems to improve their customers’ experience and boost brand image.

With the help of Chatbots you can order food, check in luggage at the airport, book a hotel room, schedule your flight, and get recommendations for almost anything you can think of. The Starbucks chatbot for example gives customers details regarding their order status, payment details etc.

2- Image search-

Ecommerce businesses are integrating image search technology on their websites so customers can easily photograph products they are interested in and find similar examples on other sites that may be offering better deals.

Imagine someone sees a beautiful couch, but it costs too much for them. If your business offers similar products at a more reasonable price, integrating image search into your website will allow you to potentially pick up on this sale, creating an extra revenue stream.
6 0
3 years ago
A program that will read each player’s name and golf score as keyboard input,
PtichkaEL [24]
Use for loop and question inside it
7 0
3 years ago
How to see where files get ripped to windows?
Artist 52 [7]
File Explorer

AKA: Where to find files
6 0
4 years ago
In Java please:
topjm [15]

Answer:

import java.util.Scanner;

public class Supermarket

{

public static void main (String[] args)

{  

String item;

double pounds, ounces, price,

total, unit;

Scanner scn = new Scanner(System.in);

System.out.print("Please enter the name of item ");

item = scn.nextLine();

System.out.print("Please enter the price of "  + "the item per pound : ");

price = scn.nextDouble();

System.out.print("Enter the weight of "  + "the item in pounds and "  + "ounces respectively : ");

pounds = scn.nextDouble();

ounces = scn.nextDouble();

unit = price/16;

total = price * (pounds + ounces/16);

System.out.print("The unit price of "  + "the products sold is : "  + unit);

System.out.print("\nThe total cost of the "  + "amount purchased is : "  + total);

}

}

Explanation:

  • Ask the user to enter the price of  the item and the weight.
  • Calculate the unit and the total price.
  • Display the unit and the total price.

6 0
3 years ago
Read 2 more answers
Which of the following combines something you know, such as a password, with something you are (a biometric device such as a fin
yulyashka [42]

Answer:

c. Two-factor authentication

Explanation:

Two-factor authentication is also known as 2FA. It is an extra form of security put in place aside the use of username and password to ensure the authenticity of someone trying to access an online platform with a registered account.

First the user enters his or her username and password, then they will also have to provide some extra information before finally gaining access. Such information could be ones place of birth, name of pet, something one has or know, etc.

2FA helps to still keep an account safe even if a device or password is been stolen. Two-factor authentication could be SMSbased, hardware token, software token, etc.

4 0
4 years ago
Other questions:
  • What is the circular motion that the earth makes in its orbit around the sun
    14·1 answer
  • Which statement correctly describe the FAFSA
    5·2 answers
  • Select the strategies below that are likely to increase audience attention.
    14·2 answers
  • Describe the six clauses in the syntax of an SQL retrieval query. Show what type of constructs can be specified in each of the s
    14·1 answer
  • What is the output of the following code snippet? double salary = 55000; double cutOff = 65000; double minSalary = 40000; if (mi
    6·1 answer
  • Which type of microscope can only be used to view non-living specimens?
    10·2 answers
  • The auto fill feature of excel only allows the user to fill cells with a series using the existing formatting options of the cel
    10·1 answer
  • IN WHICH COUNTRY DO THEY LET YOU PLAY MINECRAFT IN SCHOOL?
    8·2 answers
  • Please help!! i need this asap &lt;3 <br> (the boxes have the same answer choices in both)
    7·2 answers
  • An editing functions used to move selected text or objects to the Clipboard, from which they may be pasted elsewhere in the pres
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!