C#编程写一个方法: [英] C# programming write a Method:

查看:180
本文介绍了C#编程写一个方法:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果满足以下所有条件,手机被认为是一部好手机: -



1.制造商必须是诺基亚,三星,摩托罗拉之一,索尼或HTC。

2.手机的型号名称必须是单个字。例如,Razr,Omnia或N8将计数,但C6 01,EVO 3D或Xperia Arc S不会。

3.必须有Android或Windows作为其操作系统。

4.如果CPU类型为ARMv11,那么cpu速度必须至少为1024 MHz。

5.如果CPU速度低于1024 MHz,那么它必须只有一个GPU和Android操作系统。

6.至少应该有30个运营商销售这款手机沃达丰必须是其中之一。

写一个方法:





boolean isGoodPhone(String model ,字符串制造商,字符串os,int CPUSpeed,字符串CPUType,布尔值hasGPU,字符串[]运营商)

A phone is considered a good phone if all of the following conditions are satisfied:-

1.The manufacturer must be one of Nokia, Samsung, Motorola, Sony or HTC.
2.The model name of the phone must be a single word. For example, "Razr", "Omnia" or "N8" will count, but "C6 01", "EVO 3D" or "Xperia Arc S" won''t.
3.It must have either ''Android'' or ''Windows'' as its operating system.
4.If the CPU is of type "ARMv11" then the cpu speed must be atleast 1024 MHz.
5.If the CPU speed is less then 1024 MHz, then it must have a GPU and "Android" os only.
6.There should be atleast 30 carriers selling this phone and "Vodafone" must be one of them.
Write a method:


boolean isGoodPhone(String model, String manufacturer, String os, int CPUSpeed, String CPUType, boolean hasGPU, String[] carriers)

推荐答案

它在这里不起作用。



以下是询问者的预期:

1. 先尝试你想做什么!你可能会发现它并不那么难。

2.制定你所做的事情看似问题/不工作。



尝试一下,告诉你是否面临问题。

各位会员非常乐意为此提供帮助。
It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it''s not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.


这篇关于C#编程写一个方法:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆