/***
题目描述:Larry graduated this year and finally has a job. He's making a lot of money, but somehow never seems to have enough. Larry has decided that he needs to grab hold of his financial portfolio and solve his financing problems. The first step is to figure out what's been going on with his money. Larry has his bank account statements and wants to see how much money he has. Help Larry by writing a program to take his closing balance from each of the past twelve months and calculate his average account balance.输入:Each case will be twelve lines. Each line will contain the closing balance of his bank account for a particular month. Each number will be positive and displayed to the penny. No dollar sign will be included.输出:For each case, the output will be a single number, the average (mean) of the closing balances for the twelve months. It will be rounded to the nearest penny, preceded immediately by a dollar sign, and followed by the end-of-line. There will be no other spaces or characters in the output.样例输入:100.00489.1212454.121234.10823.05109.205.271542.25839.1883.991295.011.75样例输出:$1581.42*/
import java.io.IOException;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.util.Scanner;class Main
{public static final boolean DEBUG = false;public static void main(String[] args) throws IOException{Scanner cin;double sum;if (DEBUG) {cin = new Scanner(new FileReader("d:\\OJ\\uva_in.txt"));} else {cin = new Scanner(new InputStreamReader(System.in));}while (cin.hasNextDouble()) {sum = 0;for (int i = 0; i < 12; i++) {sum += cin.nextDouble();}System.out.printf("$%.2f\n", sum / 12);}}
} 

题目1148:Financial Management相关推荐

  1. Introduction to Financial Management

    Recently,i am learning some useful things about financial management by reading <Essentials of Co ...

  2. NUC1011 Financial Management【数学计算+水题】

    Financial Management 时间限制: 1000ms 内存限制: 10000KB 问题描述 Larry graduated this year and finally has a job ...

  3. SAP FICO - Functional Area/ Financial Management Area(FM Area)

    Functional Area 是功能范围,是一个对基于活动发生的费用排序的组织单位. 例如:生产,管理,销售,研发等. 功能范围允许建立符合要求的财务报表. 如果该组织遵循销售成本会计,那必须在SA ...

  4. HFM student Hyperion Financial Management

    HFM student  Hyperion Financial Management https://docs.oracle.com/cd/E57185_01/index.htm <Oracle ...

  5. Oracle Hyperion Financial Management工具介绍及脚本使用

    oracle HFM工具介绍及脚本使用 一.oracle HFM工具介绍 Oracle Hyperion Financial Management提供了财务整合和报告功能,使您能够快速整合和报告财务结 ...

  6. 题目1141(1148):Financial Management

    时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:585 解决:331 题目描述: Larry graduated this year and finally has a job. He's ...

  7. 财务管理c语言oj,九度OJ 1141:Financial Management (财务管理) (平均数)

    时间限制:1 秒 内存限制:32 兆 特殊判题:否 提交:939 解决:489 题目描述: Larry graduated this year and finally has a job. He's ...

  8. ZOJ Problem Set - 1048 Financial Management

    我承认这是一道水的不能再水的题,今天一下就做到了,还是无耻的帖上来吧 #include <stdio.h>int main() {double sum=0;for(int i=1;i< ...

  9. ZOJ 1048|POJ 1004|HDU1064 Financial Management

    https://zoj.pintia.cn/problem-sets/91827364500/problems/91827364547 题解: C++版本一 /* *@Author: STZG *@L ...

最新文章

  1. VS2015调试时没有启动IIS Express Web服务器 或者停止调试时 IIS Express 跟着关闭
  2. ABAP调试器脚本的一个具体应用
  3. 1!+2!+3!+…+10!的和
  4. 部署redis主从复制
  5. UE3 使用光源函数
  6. 电动车爬坡时究竟应该用最快档还是用最慢档?
  7. 为什么高级程序员尤其讨厌条条框框的束缚?
  8. append 注意事项
  9. DEV、SIT、UAT、PRD的意思
  10. 线图神经网络(Line graph neural network, LGNN)
  11. (转)TeamViewer三种许可证的区别是什么?
  12. 解决电视盒子占用wifi带宽问题
  13. 无法启动此程序,因为计算机中丢失api-ms-win-crt-runtime-l1-1-0.dll。尝试重新安装该程序以解决此问题。
  14. 芯片市场混乱,教你几招辨别真假
  15. VS Code 高效“摸鱼”插件推荐
  16. 【工具】Linux--word转PDF工具大全
  17. 移动哨兵远程监控系统方案
  18. 【IT-Windows】Windows命令
  19. 【Javscript Java】解决CSV中文乱码的问题
  20. ssis的數據分流,mark一下

热门文章

  1. python基础教程第三版电子版百度云-《python基础教程第三版》高清版PDF免费下载...
  2. 使用python完成的一个烟花小程序-人人都可以写的可视化Python小程序第二篇:旋转的烟花...
  3. python常用函数-python常用函数精讲
  4. 关于python的一些好的书籍推荐-推荐几本关于的Python好书
  5. python序列类型-Python(第八课,序列类型)
  6. python命令大全下载-Python pip 常用命令汇总
  7. python常用命令大全-Python pip 常用命令汇总
  8. python运行程序-用Python执行程序的4种方式,编程必备
  9. python编程软件在哪里下载-Thonny(Python编程工具)
  10. 编程爱好者学vb还是python-Python语言为什么被称为高级程序设计语言?