Tags:
tag this topic
create new tag
view all tags
---++ First Lab, ITSC 121, Spring 2020 ---+++Overview Write 3 different programs dealing with selection and things from chapter 4. ---+++Details of program 1 This is problem 4.12. Write a program that prompts the user to enter a hex digit and displays the corresponding binary number. For an incorrect input, display invalid input. Here are two sample runs: * Enter a hex digit: <b>B</b> * The binary value is 1011 <br> * Enter a hex digit: <b>G</b> * G is an invalid input. ---+++Details of program 2 This is problem 4.15. The international standard letter/number mapping can be found on most telephones. Write a program that prompts the user to enter a lower or uppercase letter and displays its corresponding number. For a non-letter input, display invalid input. Here is one sample run: * Enter a letter: <b>A</b> * The corresponding number is 2 ---+++Details on program 3 This is problem 4.23. Write a program that reads the following information and prints a payroll statement: * Employee's name (e.g. Smith) * Number of hours worked in a week (e.g. 10) * Hourly pay rate (e.g. 9.75) * Federal tax withholding rate (e.g. 20%) * State tax withholding rate (e.g. 9%) A sample run is a follows:<br><br> Enter employee's name: <b> Smith</b><br> Enter number of hours worked in a week: <b>10</b><br> Enter hourly pay rate: <b>9.75</b><br> Enter federal tax withholding rate: <b>0.20</b><br> Enter state tax withholding rate: <b>0.09</b><br><br> Employee name: Smith<br> Hours Worked: 10.0<br> Pay Rate: $9.75<br> Gross Pay: $97.50<br> Deductions<br> Federal Withholding (20.0%): $19.5<br> State Withholding (9.0%): $8.77<br> Total Deduction: $28.27<br> Net Pay: $69.22 ---+++Details about all programs 1. Include proper comments for all 1. Use proper formatting, etc. 1. Test with more than one set of data 1. Get the correct data outputted on all programs before worrying about formatting ---+++Submissions 1. Create a software development report that includes the following for each program: * A problem summary (the big picture) * A list of requirements. (Things that this particular implementation of a solution must do) * A list of steps your program does * A testing report: What exact input you used and what output you got. * How long it took to write the program * Who you got help from (if you got help) * Changes (if any) you would make if you had more time and/or skill * At least two things you learned while writing all the programs 1. Create a <b>zip</b> folder with your software development report(s) and your java files and submit that to canvas. 1. Due date can be found on canvas
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2021-11-03
-
cathybareiss
Home
Site map
Assessment web
BethelAIResources2026 web
CenterForComputing web
ChatGPT web
Intro2AIatBethel web
Main web
Sandbox web
TWiki web
CenterForComputing Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback