- Read these instructions repeatedly until you understand, then begin your project. If something is not clear, ask.
- Log in to GitHub.
- Fork this repo(sitory). See this video on how to carry out this step and step
3
. - Clone your fork, using either the web site or the GitHub Desktop client.
- Checkout your personalized branch, the one with your name and GitHub handle.
For this assignment, you’ll be writing a single program that creates a string based on temperature and random factors.
- Your program should print your first and last initials in large block letters. Use each letter’s corresponding characters to form the letters. (See the Example Output section below.)
- Next, ask the user to enter a number in Fahrenheit. Your program should convert the value to Celsius and save it. For example, entering
32
should yield0
. - Now take input from the user in the form of a 5-character string, then save the string in reverse without the first and last characters. In other words, trim the outside characters. For example, if the user enters
abewz
, your program would saveweb
. - In this penultimate step, generate and save a random number between 32 – 16,384, inclusive.
- And, finally, combine the results of steps 2 – 4 and print it to the screen. Again, see the Example Output section below.
This repo contains the following files, all required to carry out this assignment. Before you start working, ensure you understand the role of each file below.
Makefile
— Runmake
in your command line interface, or CLI, from this repo’s root folder to build your assignment. As you test input, runmake run
to only run a previously-compiled Java program, not compile it..editorconfig
— Everything in this file is a redundancy of what’s already in the.editorconfig
file you installed in your home folder. It’s here to make sure you’re working with the formatting rules defined in.editorconfig
, as this is part of your grade. Do not move this file. Also, ensure EditorConfig is working in VS Code, before beginning this assignment..gitignore
— Do not modify this file.Assignment1.java
— Where you will do your assignment. Do not write your code in anything other than this file.
If I was creating this program, it would look like this:
RRRRRRRR VVV VVV
RRR RRR VVV VVV
RRR RRR VVV VVV
RR RRR VVV VVV
RRR RRR VVV VVV
RRR RRR VVVVV
RRR RRR VVV
Please enter a 5-character string:
abewz
Please enter a number in Fahrenheit:
32
Random number generated. Continuing...
Your new string is 0.0web15769
Item | Points |
---|---|
Program works according to instructions | 34 |
Code compliant with EditorConfig rules | 33 |
Code is neat and variable names are logical | 33 |
Wednesday, 8 February 2023, at 5:00 PM.
You will need to issue a pull request back into the original repo, the one from which your fork was created for this project. See the Issuing Pull Requests section of this site for help on how to submit your assignment.
Note: This assignment may only be submitted via GitHub. No other form of submission will be accepted.