Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes 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
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Duke: Java Programming Coursera

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who else takes or have taken this course here? Would gladly needs your assistance about strings in java. TIA
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello John Paul, welcome to the Ranch.

I'm not taking the course, but: can you explain what exactly would like to know? If you do then we can explain and give you a useful answer.
 
John Paul Rano
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's this course in coursera using blueJ. I have this Quiz but I can't figure out the problem with my code. There are ten sets of questions. Divided into two. Here's the first set

1. Using the algorithm in the assignment for last lesson Storing All Genes, how many genes are in the GRch38dnapart.fa file?
2. Using the algorithm in the assignment for the last lesson Storing All Genes, how many genes in the file GRch38dnapart.fa are longer than 60 nucleotides?
3. Using the algorithm in the assignment for the last lesson Storing All Genes, how many genes in the file GRch38dnapart.fa have a C-G-ratio greater than 0.35?
4. In the file GRch38dnapart.fa, how many times does the codon CTG appear in the strand of DNA?
5. Using the algorithm in the assignment for this lesson Processing DNA Strings, what is the length of the longest gene in the collection of genes found in the file GRch38dnapart.fa?

http://www.dukelearntoprogram.com/course2/files.php

Here's my code:

 
Marshal
Posts: 6824
182
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A few quick things about posting code:

* Always use code tags. I've added them for you this once.
* Don't double space.
* Indent and format your code correctly. Look at our Style Guide for pointers.
 
Knute Snortum
Marshal
Posts: 6824
182
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Using the algorithm in the assignment for last lesson Storing All Genes, how many genes are in the GRch38dnapart.fa file?


I'm assuming you've been given the file "GRch38dnapart.fa". Does your program have a method or methods to read the file and count the genes?
 
John Paul Rano
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Knute Snortum wrote:

Using the algorithm in the assignment for last lesson Storing All Genes, how many genes are in the GRch38dnapart.fa file?


I'm assuming you've been given the file "GRch38dnapart.fa". Does your program have a method or methods to read the file and count the genes?



Yes. It is on this link. http://www.dukelearntoprogram.com/course2/files.php and we are using Bluej for debugging it. Still can't solve it.
 
Knute Snortum
Marshal
Posts: 6824
182
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you launch it? What errors does it get? What does or doesn't happen?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even I am stuck in Week 2... Can anyone please help.
 
Knute Snortum
Marshal
Posts: 6824
182
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Knute Snortum wrote:How do you launch it? What errors does it get? What does or doesn't happen?


Can you be specific with what help you need? Read this on how to ask for help on this forum.
 
Rancher
Posts: 3656
34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Bandita Panigrahy You should start your own thread instead of hi-jacking someone else's thread.
 
We noticed he had no friends. So we gave him this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!