Financial Management

时间限制:3000 ms  |  内存限制:65535 KB
难度:1

描述
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.

输入
The input 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. 
输出
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.00
489.12
12454.12
1234.10
823.05
109.20
5.27
1542.25
839.18
83.99
1295.01
1.75
样例输出
1581.42
来源
[张洁烽]原创
上传者

张洁烽

01.#include<stdio.h>
02.int main()
03.{
04.int i;
05.float a[12],sum=0;
06.for(i=0;i<12;i++)
07.{
08.scanf("%f",&a[i]);
09.sum=sum+a[i];
10.}
11.printf("%.2f",sum/12);
12.return 0;
13.}

转载于:https://www.cnblogs.com/leishitou/p/5436234.html

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. 题目1148:Financial Management

    /*** 题目描述:Larry graduated this year and finally has a job. He's making a lot of money, but somehow n ...

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

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

  8. 题目1141(1148):Financial Management

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

  9. ZOJ Problem Set - 1048 Financial Management

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

  10. ZOJ 1048|POJ 1004|HDU1064 Financial Management

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

最新文章

  1. Visual Studio 2015 编译与使用Boost库进行文件与目录的操作
  2. 如何修改远程桌面连接3389端口
  3. CCF202009-1 称检测点查询
  4. html5 android6.0摄像头,HTML5调用手机前置摄像头或后置摄像头拍照,canvas显示,经过Android测试...
  5. SpringDataJPA入门就这么简单
  6. JUnit5 预期的异常 – assertThrows()示例
  7. 自然语言处理——语言模型(二)
  8. 在SQL Server中添加供应用程序使用的帐号
  9. numpy库学习总结
  10. linux安装mysql菜鸟教程_[新手教程]Linux环境部署MYSQL过程
  11. 【机器人学习】abb机器人运动学分析与轨迹规划(三维模型+matlab代码+word报告)
  12. 为什么我停掉孩子所有的兴趣班,也没停掉编程!
  13. 从零开始学习idea开发vue
  14. 解题:POI 2009 Lyz
  15. 初中级前端面试题目汇总和答案解析
  16. File---文件、文件夹的创建
  17. 【Math ML】Newton-Raphson.python 牛顿拉夫森方法
  18. 山大华特卧龙学校第一届ACM赛后总结_题目
  19. 鸟哥的Linux私房菜-基础学习篇(第四版):鸟哥-电子书
  20. 【leetcode题解——动态规划之完全背包】518.零钱兑换II(python版本详解+表格+dp五部曲)

热门文章

  1. boost线程指南手册
  2. python java go 区别 一句话概括
  3. Kubernetes 小白学习笔记(12)--搭建一个kubernetes集群-安装dashboard和heapster并验证集群安装结果
  4. nvcc fatal : '--ptxas-options=-v': expected a number
  5. mysql 5.7.9 winx64_Windows 7 安装配置 mysql-5.7.17-winx64 方法-Fun言
  6. mysql utf8转gbk cmd_修改xampp的mysql数据库utf8mb4为gbk以解决cmd内中文显示为问号
  7. combobox的method是get为什么发的请求是post_深入理解http get和post请求的区别,读完之后,大部分程序员收藏了...
  8. 7-7 mmh学长的大数模板 (20分)
  9. 阶段5 3.微服务项目【学成在线】_day01 搭建环境 CMS服务端开发_03-项目概述-技术架构...
  10. LGOJP1850 换教室