logotransparent.png

Legion of Learners

www.lol-101.com

  • Home

  • Classrooms

  • Courses

  • About Us

    • Executive Team
    • Board Members
  • Resources

  • More

    Use tab to navigate through the menu items.
    To see this working, head to your live site.
    • Categories
    • All Posts
    • My Posts
    sfolax6776
    Sep 16, 2021
      ·  Edited: Sep 17, 2021

    1-10 Chapter 1 Test

    in AP Computer Science A

    Questions 1–3 refer to the Time class





    Questions 5–8 refer to the following Date class.




    9. See below:


    10. What will be print out by this program?

    11. Design and code a class Money to handle both CND and USD. Your code should include:

    1. all private instance variables

    2. one static double variable that save the exchange rate from USD to CND, assume this variable has the updated rate, which is 1.5

    3. two constructors

    4. all setters and getters

    5. public double toCND( ) method which always return the money value in CND

    6. public double toUSD( ) method which always return the money value in USD


    Please email your answer to sfo.lax6776@gmail.com by 19:00 September 16, 2021. Answers to 1-10 should be clearly labeled by question number. Question 11 should be submitted as a link to your code in repl.it.

    1 comment
    0
    sfolax6776
    Sep 19, 2021

    Here are the answers to 1-10:

    1.D 2.B 3.E 4.C 5.B 6.C 7.E 8.E 9.B

    10. 9 27

    6 3

    11. https://replit.com/@APCS21-22/Chapter1Test#Money.java

    0
    1 comments

    Questions? Email us at legionoflearners@gmail.com or join our WeChat group!

    • lol-101dotcom

    ©2020 Legion of Learners