Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1- Given that Mark worked 42 hours ( NumHours = 42 ) last week and makes $10.00 an hour ( Rate = 10 ),

Question 1-

Given that Mark worked 42 hours (NumHours = 42) last week and makes $10.00 an hour (Rate = 10), how much did he earn last week, before taxes (WeeklyPay)?

If (Rate >=10) AND (NumHours <=40) Then WeeklyPay = NumHours * Rate Else WeeklyPay = (40 * Rate)+(NumHours40) * Rate * 1.5 End If

$ 650
$ 500
$ 420
$ 430

Question 2-

This particular type of error causes the program to stop functioning or provides an unexpected result depending upon user input.

syntax
modular
logical

run-time

Question 4-

Which type of error causes a program to run but provides incorrect or unexpected results?

a run time error
a logic error
a modular error

a syntax error

Question 5-

You work for a retail store that sells sporting goods. It has been a slow few months and management wants to offer some incentive to increase sales. The pseudocode listed below is being used for the program that will help determine the bonus. When the user enters 1100, what is the bonus?

if sales > 1000 then  bonus = 0.1 * sales end if if sales > 750 then  bonus = 0.075 * sales end if if sales > 500 then  bonus = 0.05 * sales end if if sales > 250 then  bonus = 0.025 * sales else  bonus = 0 end if 
82.50
55
110
27.50

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions

Question

5. Structure your speech to make it easy to listen to

Answered: 1 week ago

Question

1. Describe the goals of informative speaking

Answered: 1 week ago