Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Assignment help?  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new here, I have registered with you guys for a little guidance since my school decided to put me in a class that I have no clue what's going on. I have an assignment due at midnight and I don't even know where to start. I have tried to drop the class and they won't let me and I'm afraid I'm stuck for another 10 weeks. It goes as follows. Any help would be appreciated.

1. Write a program that asks the user to enter a String and perform a series of Character, Math and String functions on this input String.  Use “printf” to print all your output.

2. Create a zip file that contains your Java programs.  Include a screenshot of each program execution.  You can either paste the screenshot into a Word document or simply paste it into the Comments field when submitting your homework.

Attached is a screenshot that the professor provided.
download.png
[Thumbnail for download.png]
 
Marshal
Posts: 62881
203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I suggest you need to divide that task into subtasks. Start by getting that text from the keyboard. For a simple thing like that I would probably use an instance of this. Do that, show us that it is working, and then ask again, but I shall be asleep by then and doubtless somebody else will help you.
 
Sheriff
Posts: 12994
217
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, read through the String class API documentation: https://docs.oracle.com/javase/8/docs/api/java/lang/String.html

You'll find all the methods you need to call to do the things your instructor's output screenshot shows.

Good luck.
 
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!