Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace ConsoleApp10
- {
- // Ex02 - P026
- class Game
- {
- // part a
- private int code;
- private String name;
- private int minAge;
- private int gamesCount;
- private int gamesError;
- // part b
- public double errorPercent()
- {
- return (double)gamesError / gamesCount * 100;
- }
- public int getCode() { return this.code; }
- public int getMinAge() { return this.minAge; }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement